Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp2723280iob; Mon, 16 May 2022 05:01:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzlUGxE6JsioPvUEG+1lnZjN059QsPSeC/hqSXQvC6COSOrxFjMG3Hnxh0P1/x8WZQicuvC X-Received: by 2002:a05:6402:388d:b0:42a:ba9f:f85c with SMTP id fd13-20020a056402388d00b0042aba9ff85cmr1801058edb.292.1652702480464; Mon, 16 May 2022 05:01:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652702480; cv=none; d=google.com; s=arc-20160816; b=jeyFngm6CKOxUivUkSaD8ehHK3hhzsTIKwNeVm57wHMF/jP+NR4+gpjK0PYwX5wC52 ntTT3Urszwp5U/oVt3qsrhg6qAa+mbfaXQsBPKz7in1Oho2wpLHLIN510owGLSZ/jtxa s59AyEtpUhV0L4n8Iuf41LEs9hnIwI189j+1KXj/pxEK4cSYdww7vl8bieOgb80ZOOnY SX9rHDnm2wc3iaB6TaYFq7UBVu9IeNHnxoMWwSlEFcqk76VTbH0h8VL3qX4EtRy+dbPa CzfqSi8Qsz5NXwHjx8O65nU6DdmuuRhvYefh8bYrxPXsKtCE/KgtNxvQ7XoSCmQ9gCrI F/jA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=7wKIWrX6o2S06a0AaFujZEJzGz1hzOWevfCkrsHRsKQ=; b=s6Q8ezODeuKQok9iN70b7t/jeQS7/GlkSB7EoqTOFb5AsaLGFrfn4+SOF1+tWmxRlv uV1ApfocyhGjNtScOxEaB1+jerWgc+0kXCm2QLp1pXXfiRsBASJC08dVf9GbdReAcui6 3Pyw7iu7CZMYVl0tq1nh3vC0KXEoahCIATxBswqBmqjNjqnQlWa3qKjIqINPy+EfwL0l 4KJ6qr0/CFdzivsd4ejgh1B8Wu8J1bEw3A8v36k5Y/k3ffZtor0s2jSuZsryg3m9YpIe R3hxBhooLldKZryYXa9anwuBGYMYkfWMbLK0qLqtuqwDcbd5/orAvzQ5q8HgaUJ/kcv6 2sDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=jwXavC7U; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l7-20020a056402254700b00425d5b68454si10957027edb.336.2022.05.16.05.00.51; Mon, 16 May 2022 05:01:20 -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=@linutronix.de header.s=2020 header.b=jwXavC7U; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237322AbiEOOyw (ORCPT + 99 others); Sun, 15 May 2022 10:54:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229608AbiEOOyv (ORCPT ); Sun, 15 May 2022 10:54:51 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B9F8718E18 for ; Sun, 15 May 2022 07:54:50 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1652626488; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=7wKIWrX6o2S06a0AaFujZEJzGz1hzOWevfCkrsHRsKQ=; b=jwXavC7UPCcnlMyaW632SeiX5Rae6xCzb8CUbHOvgT18gTSpfVl6+PlnLfFOEP+sqtLHAB GiXAzsXA3GkrclI/nL9yvKp671zDTuF7NKplSKKpLca8+OlTbRZZi/h6RW7U5DGsHWAzYc od2L5566tmzscUsWR7YZYa94k1AqI1YieYs6Mo6DZXPbHr8nQ+EsAVJ/bXneE4nyuV2Ks4 dfTvARaWBe/KnY2+jpXB0sBC8FTqoD0npNy4DPVq4cVMKGqSmRsCcJwOpBZTgzhA33zjfT LEgxrXcHf/K9kpBt3WXH6SyyltdrrmFRMHpElkzf2zelxtAtHWCU3vwkiYu5MQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1652626488; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=7wKIWrX6o2S06a0AaFujZEJzGz1hzOWevfCkrsHRsKQ=; b=p09jeXomYeWlE/8OMd30DDULGp7XBvjqx188DpxvsgDMsaCfYreIYLyXSZHxX9a2JUE8tN wMx99nw/s7m8ZZAw== To: Linus Torvalds , kernel test robot , Eric Biggers , Ingo Molnar , Borislav Petkov , Dave Hansen Cc: Rasmus Villemoes , Sean Christopherson , Naresh Kamboju , LKML , lkp@lists.01.org, kernel test robot , the arch/x86 maintainers Subject: Re: [x86/uaccess] 9c5743dff4: WARNING:at_arch/x86/mm/extable.c:#ex_handler_fprestore In-Reply-To: <8735hbryn6.ffs@tglx> References: <20220513085455.GB21013@xsang-OptiPlex-9020> <8735hbryn6.ffs@tglx> Date: Sun, 15 May 2022 16:54:47 +0200 Message-ID: <87pmkerglk.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain 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 Sun, May 15 2022 at 10:25, Thomas Gleixner wrote: > On Fri, May 13 2022 at 09:52, Linus Torvalds wrote: > The code which copies the ptrace supplied state has a pile of sanity > checks to catch invalid state, but I wouldn't bet my hat on it that it's > 100% complete. We can be more defensive here, but I would be surprised. > > Something like the untested below. I'll expose it to some testing to see > what explodes. I was not able to get something broken past the existing sanity checks which was caught by the trial restore. I seems the FPU units are pretty resilent against random nonsense except for the XSTATE header and the MXCRS content. Though I ponder to just add that trial restore due to paranoia. Thanks, tglx