Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2583067pxp; Tue, 22 Mar 2022 01:25:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyV0tdfyeGceOUkZyz3a6UEtZfVX+upBmPt1pj9tBirWdrg4nkqbkbQXmsTPjgUrzwxu0rp X-Received: by 2002:a17:906:d205:b0:6d1:4446:d950 with SMTP id w5-20020a170906d20500b006d14446d950mr23632179ejz.702.1647937506714; Tue, 22 Mar 2022 01:25:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647937506; cv=none; d=google.com; s=arc-20160816; b=yr+4Njaoh/dJgfcZG3sC+EiW6LmBUBDdEtG29sfYM/7tTAmX06Gqqs6geiocQpgZQ+ xEp4hMQRXaHq1+iF48zZ0yv7+ZSJSdpK7hYDnPNCKJIV0eF2rXQPRvFw5rU0BOe+4Ptp SOkogyMbD8F6qKMOemYjX1gKEx5fvX8QkoLFJDOSzeUJP5KmuOAlXjTSb/0P7VpGfVsH nljE++UXWU0mV1JBIgqbvbQa4YLG7FFx3nTN10+0KbSVAMycBXosS5d19KQG8vW/YYYS V+fDUSkRED3WYOadaMYTL+O+X4X+esN3xmFkIqbJSw0REh4gDVRq2oCVsJfRMF+mVKWH crew== 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=tV3Hw9vtZCnQEQCQdNjrkRP1CxfsD225kd33zAEemCY=; b=sqWqGk/GLuXaQ4RDQAz1yzMYP8mo0WZfSaaPxAJSNurErfQGmU1+fN5vuPHZLMrbpf dkiOBwxVA6uO3uFe1KPVAKwkC4oLLVLUIFyU4he79mVEl2ls0mKmiILppVlk6oisBWG7 fnWQ5wSSNdoWHtJI+QIxH+hpUa7SugZriipaBslLnIBZXnjfwU7y+El9es8T+TpHNrcM bQ/dF3XSEdBLl+9mrfqZLYmQvZLl9OTuAP48IqLscl5V33Uh46spnL2FBpIlg+uFDBlH L0jPbx5royibRdQ5BDTLPFBGLxcVN5YNfhk5kJJfGK2rlpS+Elc5EMU5MN8k/OJRSAMp /PhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=NN4NWGOt; 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 7-20020a170906020700b006df76385e31si8706865ejd.721.2022.03.22.01.24.38; Tue, 22 Mar 2022 01:25:06 -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=desiato.20200630 header.b=NN4NWGOt; 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 S229946AbiCVIKb (ORCPT + 99 others); Tue, 22 Mar 2022 04:10:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229893AbiCVIK1 (ORCPT ); Tue, 22 Mar 2022 04:10:27 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 79F705F79; Tue, 22 Mar 2022 01:08:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; 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=tV3Hw9vtZCnQEQCQdNjrkRP1CxfsD225kd33zAEemCY=; b=NN4NWGOtuSuulLNlSx2y4shPZd sDQdJY7eyxa7gyy0h0P2XofYSyAk/maBV8LmE69J4XXFwZ5DvMBrD5Wyk3onbytDbUM2HJVNJezVU a6JDP8inzbfQx3rntZump6glxWskwKWsCv3eTI+wqTLF7QVWzajIs1qotkUu8M5PrVPIWf893oKZQ iom2w+1/KInxupCSH1oS+eEes05e1LcLbTr4MxyrFSQ/mYjXiRyRu3IXLFa66vYmE15CJ33B87zk6 JbU5m1A4vyjO3csv+I9LOhztMmT/GRbdHdVQV0ER04LCcGk2HfFcxAfSlvqyb3/TGghUgFR2kqZxV kbZ6lExw==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1nWZZ3-003PDO-0v; Tue, 22 Mar 2022 08:08:25 +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)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id CFF163002E5; Tue, 22 Mar 2022 09:08:22 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id A8ACD2C6B2DD9; Tue, 22 Mar 2022 09:08:22 +0100 (CET) Date: Tue, 22 Mar 2022 09:08:22 +0100 From: Peter Zijlstra To: Masami Hiramatsu Cc: Stephen Rothwell , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Linux Kernel Mailing List , Linux Next Mailing List , rostedt@goodmis.org, ast@kernel.org, hjl.tools@gmail.com, rick.p.edgecombe@intel.com, rppt@kernel.org, linux-toolchains@vger.kernel.org, Andrew.Cooper3@citrix.com, ndesaulniers@google.com Subject: Re: linux-next: build warnings after merge of the tip tree Message-ID: References: <20220321140327.777f9554@canb.auug.org.au> <20220322143136.0e78366c3521b54b7b9385b8@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220322143136.0e78366c3521b54b7b9385b8@kernel.org> 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 Tue, Mar 22, 2022 at 02:31:36PM +0900, Masami Hiramatsu wrote: > > Also, I think both should fix regs->ss. > > I'm not sure this part. Since the return trampoline should run in the same > context of the called function, isn't ss same there too? It creates pt_regs on the stack, so the trampolines do: push $arch_rethook_trampoline push %rsp pushf sub $24, %rsp /* cs, ip, orig_ax */ push %rdi ... push %r15 That means that if anybody looks at regs->ss, it'll find $arch_rethook_trampoline, which isn't a valid segment descriptor, or am I just really bad at counting today? I'm thinking you want a copy of __KERNEL_DS in that stack slot, not a function pointer.