Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS, USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0EA0AC43381 for ; Mon, 25 Feb 2019 10:52:03 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C86F520842 for ; Mon, 25 Feb 2019 10:52:02 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="td17Q3tE"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="p13VSK58" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C86F520842 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=NPIAiMi8OCoBLEQcnvSUK/nuAnIpFb5GcvpWW9FYjyI=; b=td17Q3tEJS5rH3 FyY6NOlOKYofWVnCkwZgPkfsZ9+S3l2hVQGE+blpcESJat013Mg7XXHzqTVVQGoY6q+SinXqaTeMS p2D8Y4CjsOHq/u1S1nbHc5LHo8xC7+EXGByFqNTr/c+q5WCfcO41JLaeL15/gEy44Ta5pmGr7YTwV K+O5m3un8/MUve2N2PmjS08HTpaEe4O/goox+MO3OHVDzrgdPUn8mm7/KLAtmBwVv+yVkei6XXlF2 wknrGkkIm0R+vFoOptqUXjCQlOGBxyUB/zZK7pNUTC8qj5/m7sac5i3+AxYco4FA+qSWxUJIRSBSO LwrAijh6SGL1QUb8+zXg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gyDrZ-0006gW-2E; Mon, 25 Feb 2019 10:51:57 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gyDrX-0006gL-0g for linux-arm-kernel@bombadil.infradead.org; Mon, 25 Feb 2019 10:51:55 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; 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:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=dyMB1UGRka+d+pOPsE0a1FpRZDbWxoc9RebN6Ikwq0k=; b=p13VSK58r+U7IlWf7HmUUJzpp 9JS30ZytBbyct/D2QAWAw1o2xaKxz5eZfNboBLLyWPjhyhMp8pxTg5OUKrIw3s8XfivWgcmfqTthK I7nXd3atLJOjRvC488Yz5RrrLZ+vW+/jMWiYLixs643wOd8z0KnYElxS681LFNMU+Vl/P3+RSC4Ga gOJDCAgikEs7bhrsmJTu1q4jg25XRH+zhof/6+vv/v5BDBpecjYa/ZthDg26e/Qwwp054wtZnpqJL aDvcR9nmP/oYE2JAPuc11p6ldq86x8zJGS/1Xq2qjabt4+uI5na/YvfcYv/8tXhKWc5mWFU6H+QFz TXOA0Nw/w==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1gyDrP-0005rV-Ij; Mon, 25 Feb 2019 10:51:47 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id CAB6E2030E115; Mon, 25 Feb 2019 11:51:44 +0100 (CET) Date: Mon, 25 Feb 2019 11:51:44 +0100 From: Peter Zijlstra To: Andy Lutomirski Subject: Re: [RFC][PATCH] objtool: STAC/CLAC validation Message-ID: <20190225105144.GJ32477@hirez.programming.kicks-ass.net> References: <9e037d68-75e7-1beb-0c9c-33a7ffeced1b@zytor.com> <20190219090409.GW32494@hirez.programming.kicks-ass.net> <20190219124808.GG8501@fuggles.cambridge.arm.com> <20190222222635.GK14054@worktop.programming.kicks-ass.net> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Denys Vlasenko , Brian Gerst , Julien Thierry , Catalin Marinas , Josh Poimboeuf , Will Deacon , Linux List Kernel Mailing , valentin.schneider@arm.com, Ingo Molnar , James Morse , "H. Peter Anvin" , Borislav Petkov , Thomas Gleixner , Linus Torvalds , Ingo Molnar , "linux-alpha@vger.kernel.org" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, Feb 22, 2019 at 03:55:25PM -0800, Andy Lutomirski wrote: > I'm wondering if we can just change the code that does getreg() and > load_gs_index() so it doesn't do it with AC set. Also, what about > paravirt kernels? They'll call into PV code for load_gs_index() with > AC set. Paravirt can go bugger off. There's no sane way to fix that. Luckily the load_gs_index() thing is part of the paravirt me harder crap and so nobody sane should ever hit that. I don't fully understand that code at all; I also have no clue why GS has paravirt bits on but the other segments do not. But it looks like we want to do that RELOAD_SEG() crap under SMAP because of the GET_SEG() -> get_user_ex() thing. Anyway, I only see 3 options here: 1) live with the paravirt me harder builds complaining 2) exclude the AC validation from the paravirt me harder builds 3) rewrite this code to no need that stupid call in the first place 2 seems like an exceptionally bad ideal, 3 would need someone that understands this, so for now I'll pick 1 :-) *thought*... we could delay the actual set_user_seg() thing until after the get_user_catch(), would that work? _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel