Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1476775ybg; Tue, 2 Jun 2020 11:01:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxntLhwrrnnp0UinSDgy+LuAXG7ze4Ea+zo8tRd2tDszANfub9v0o+3N/KN+ljyBr648zps X-Received: by 2002:a50:a782:: with SMTP id i2mr27854224edc.33.1591120902752; Tue, 02 Jun 2020 11:01:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591120902; cv=none; d=google.com; s=arc-20160816; b=JrjeMFEv+yW8vLr0f3WYZpMC5+D4Cn5jIH5OP5T+sONpPU1KwFOOKahBoC4C42DCwH VPuCdnizS87hhMIV7jVGD3nXlADFGyvFZhDM3N4Ww5xEb0Csx9e+uCqMJvF/GGv6rwsc lJ56kIPxcZKrvxa+KmGVOO3bsVMNLStgvdI2Xx7yoECVdcpBeRtCG2I4NAU2RYlPU0sk Gab5CcRU9nhaEyvsQLNqbxCHxYfGIcPSIfXsrg8Oqi/VZpm3zCGGnreGxZ5a7/iXjo0k UegoLl+ypGS62Z4pfRZTSoPVJlPRslOYpTfUxO1Ob7wQe0ubuzMtzQx9w+o8jsQZGTnK 00dQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=5Y3HKI5svjaEX0i1wQ6y4ya6URar/l/ginxsdDN/q0M=; b=v/SiE8RTCAFaVAwefVAgAEQyqkNIznaUNrRcaUeGU9wRNsI2srnmZ5JE2ARLOrnNpr uuEJsnPLlEImAD3nPEHeje9Yccnlw+l42rFi38j07nvKeMXpdGeMUhOtRVTpXpx6xVAL TdzgPEZIuVZKs+AEtlkL4draoQBBdZoRNzJF8yUbFVLR5d/tg1T9zuOljEzLTS27Ek8G 1F57v8wclKFIx9AzSaOhH/X+Y3OVbTbsQtc53xZuVnN92TNFjjBBRykRB8UJgnVb7Ovo 8KL/mcKOCxYD1Kp7v4KZW3UX7suo44tmZRfMNImVKv9pJuP04BIy2dtOe62G5TXwSiWq 8STQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=h1ZqR31o; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q14si1914200edr.297.2020.06.02.11.01.19; Tue, 02 Jun 2020 11:01:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=h1ZqR31o; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726839AbgFBR72 (ORCPT + 99 others); Tue, 2 Jun 2020 13:59:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726019AbgFBR71 (ORCPT ); Tue, 2 Jun 2020 13:59:27 -0400 Received: from merlin.infradead.org (unknown [IPv6:2001:8b0:10b:1231::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A2DCBC05BD1E for ; Tue, 2 Jun 2020 10:59:27 -0700 (PDT) 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; bh=5Y3HKI5svjaEX0i1wQ6y4ya6URar/l/ginxsdDN/q0M=; b=h1ZqR31owc5qrUxjp4IUDlH647 pCZeh/SghJcpPNeBBd7iSBH7IwYPPt/ADioUIUzH3ci0IWOEzelsREAYWXoyKyhRmtl843ukQgliX CJQCO7zQwVJtZqUruWdsWVE2uBJ7fviK6f/D9PYqfKyi04hllBQc8nxxkdrTbjf6fywAS+j+iTEH1 yo3ksjsqR2Ty2nOSK4Vnm6/FuVQZjAa5SiXoPE6bOKzh/xz8sFtN1FfPuyYF4U2+PBGbwMB9HZxhX l5rpVfDGN1LS5nbExEc0npnEaWQY0yAXeBrxO6niAYh4wPDQNOW+SBZEAKkZUf1bIZNkpVB4sjVYd JKSMtMwA==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jgBBl-0000yt-5m; Tue, 02 Jun 2020 17:59:01 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id F3B9C3011B2; Tue, 2 Jun 2020 19:58:59 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id DECFE202436F2; Tue, 2 Jun 2020 19:58:59 +0200 (CEST) Date: Tue, 2 Jun 2020 19:58:59 +0200 From: Peter Zijlstra To: Marco Elver Cc: Dmitry Vyukov , Thomas Gleixner , syzbot , LKML , syzkaller-bugs , Ingo Molnar , Borislav Petkov , the arch/x86 maintainers , Oleg Nesterov , kasan-dev Subject: Re: PANIC: double fault in fixup_bad_iret Message-ID: <20200602175859.GC2604@hirez.programming.kicks-ass.net> References: <000000000000d2474c05a6c938fe@google.com> <87o8q6n38p.fsf@nanos.tec.linutronix.de> <20200529160711.GC706460@hirez.programming.kicks-ass.net> <20200529171104.GD706518@hirez.programming.kicks-ass.net> <20200602094141.GR706495@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 02, 2020 at 07:51:40PM +0200, Marco Elver wrote: > We have all attributes except __no_sanitize_coverage. GCC <= 7 has > problems with __always_inline, so we may just have to bump the > required compiler or emit a warning. GCC <= 7 will hard fail the compile with those function attributes. Bumping the min GCC version for KASAN/UBSAN to avoid that might be best. > > > Not sure what the best strategy is to minimize patch conflicts. For > > > now I could send just the patches to add missing definitions. If you'd > > > like me to send all patches (including modifying 'noinstr'), let me > > > know. > > > > If you're going to do patches anyway, might as well do that :-) > > I was stuck on trying to find ways to emulate __no_sanitize_coverage > (with no success), and then agonizing which patches to send in which > sequence. ;-) You made that decision by sending the KCSAN noinstr > series first, so let me respond to that with what I think we can add > for KASAN and UBSAN at least. Excellent, thanks!