Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1300576pxa; Sat, 15 Aug 2020 15:01:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwI6JKrTXpfdCVnXm8fk4fONHgU/8OIZrMA0knGFn2cIG0W/nIWt+KT+7Ayy3REyJmVFUpG X-Received: by 2002:a05:6402:17a1:: with SMTP id j1mr8277755edy.99.1597528865642; Sat, 15 Aug 2020 15:01:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597528865; cv=none; d=google.com; s=arc-20160816; b=QCvbXr7sCyWBhv4kDl3aRLaRWTm/IZaG0+sbziLFZSE8tH+Yk8/LXNz7kFvxrjozUw 3kL0s9QBlHg0lkq4NKg+ZaWe3cu8zAd20ByO1nmfSN5NcRiYer/z9qH6EgfowBkB5Lrw Ws3s7dcWSrGHwakAaG5KMgfvJDqYPkjWrWyqcVf7hEQemTxlOK6/o9w/WKnH3CrCKGUq vJOwstJsmXtwDjCXhZ6sDrXR/jytDthOEdlp+FjG9tP4dJe0nUhPh0fjkJiO/xEE1PoO UxNTw1qA7/6VpomFhzOY7Kt2nG6uu8+poWqQwDY0zrLTebG2kAth496qajt7p1Li8kuB kGCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=AwnENJtZcTDyRowOll9BqELCaHCpWYH0qCJCKyyi9Wk=; b=aKKMwmWWDlqbgOhP/2tXeUrv+uRAJWKpHP8ultiPLXnsd4UMvGl1R6qJkYOnTrAXpX p7k96PyzLlXRv8uCXHbEFCAhV41OTqL6w/EicnQQ/eamfkUhQAaTSzRPufohV1pg4O8y baD5hW1iqNRs60NCW/ianS/2mxbrtJzoVRtqRhZqxAOrTyCS9bh3aOk7yn7jz2CN7N6u 7sXC1nGa/1RBnNs9q1odGkNrFonsen6d0KDNjsNoBbi//1WirhaJYbrbm5sD4ds1z4vF fLuQ/WHZwyN97WcmBliFZ31W6uNLemFxv66oIpJ7VtKZ2bX6iXfTnw/QPEBePtLITkyV FscA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=G+MiGLci; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z20si7989391edq.490.2020.08.15.15.00.43; Sat, 15 Aug 2020 15:01:05 -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=pass header.i=@google.com header.s=20161025 header.b=G+MiGLci; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729261AbgHOV7D (ORCPT + 99 others); Sat, 15 Aug 2020 17:59:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728933AbgHOVvy (ORCPT ); Sat, 15 Aug 2020 17:51:54 -0400 Received: from mail-io1-xd41.google.com (mail-io1-xd41.google.com [IPv6:2607:f8b0:4864:20::d41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 48817C0F26DB for ; Sat, 15 Aug 2020 10:39:11 -0700 (PDT) Received: by mail-io1-xd41.google.com with SMTP id z6so13748318iow.6 for ; Sat, 15 Aug 2020 10:39:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=AwnENJtZcTDyRowOll9BqELCaHCpWYH0qCJCKyyi9Wk=; b=G+MiGLcif5DCcsQJ7v2ioepIk6jXx5VRMkgMKoSkPKhCM4uqzvts04XWodlwFzeY5P NclSMUl/w2hiXLcpbvaHWDJ3TdUG3jGO7uBwVI8lfbydMVUWKiY402fO91FHJi0vSU5c WA2Yft+iACB/ch7aP/l2qYtTWJ2pIatVRYrW2gQWzarBzNE9HjmYmrToCQdlCxAITkW6 G9NIxIJkcTF6oR47dFXvAMZUTbFjzdtm7B/V4cLhQuz3R/HavtviwDymE0n6M1QdLSKc PyXrmsGq+f8JQhJ9L4n4f1SLD8PHDuP3Ch66CLzVYWSaHT4Q4r1dhzDLQfH2MovQAowX xLgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=AwnENJtZcTDyRowOll9BqELCaHCpWYH0qCJCKyyi9Wk=; b=nz9Z9vUyMsUBvbjJS/Y7jthTFOCXjojdR0z72NNZBzWQoVcrfB0xibIH7jEy9wkCEA 4DLw6WFTAf369M6POEORVQMR2Xmqef8gu+OJfz2f4xdrriMaX8pP/j77Ejlnllb6sf5U 8n+jJeVhFb2mRFYGs02jfywhbDL0s18jp1NGF+/wGNLAT5jeCGzjLB4eSPIl/tTuFZUm 38OHnsjeQdR39GX/UEFXiSCz95ADB7fYbLC48sroAuSUiwZJzUOoKvOPzUDqv+zebOLp +rt17izw2s5JtwwWu7XSAqlx8WFrLr6c/CHQ3oqk818VJRNE0gzGqZKYHxg1S7D84ns3 Mytg== X-Gm-Message-State: AOAM530WM9Gvfob8//rwB8qDW8H5qANDO2M/LCgJtBLuYGDD8CdyWxC4 Y/c7q5+sRyxWP9dCenadaX0WV0lipc5cQGvUIvZcvQ== X-Received: by 2002:a5d:9d8a:: with SMTP id 10mr6650437ion.195.1597513149676; Sat, 15 Aug 2020 10:39:09 -0700 (PDT) MIME-Version: 1.0 References: <20200814181617.442787-1-edumazet@google.com> <20200815114825.GA2685004@gmail.com> In-Reply-To: <20200815114825.GA2685004@gmail.com> From: Eric Dumazet Date: Sat, 15 Aug 2020 10:38:58 -0700 Message-ID: Subject: Re: [PATCH] x86/fsgsbase/64: Fix NULL deref in 86_fsgsbase_read_task To: Ingo Molnar Cc: linux-kernel , Eric Dumazet , Jann Horn , syzbot , Andy Lutomirski , "Chang S . Bae" , Andy Lutomirski , Borislav Petkov , Brian Gerst , Dave Hansen , Denys Vlasenko , "H . Peter Anvin" , Linus Torvalds , Markus T Metzger , Peter Zijlstra , Ravi Shankar , Rik van Riel , Thomas Gleixner Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Aug 15, 2020 at 4:48 AM Ingo Molnar wrote: > > > * Eric Dumazet wrote: > > > syzbot found its way in 86_fsgsbase_read_task() [1] > > > > Fix is to make sure ldt pointer is not NULL. > > Thanks for this fix. Linus has picked it up (inclusive the typos to > the x86_fsgsbase_read_task() function name ;-), it's now upstream > under: > > 8ab49526b53d: ("x86/fsgsbase/64: Fix NULL deref in 86_fsgsbase_read_task") > > By the fixes tag it looks like this should probably be backported all > the way back to ~v4.20 or so? This is absolutely right, sorry about the lack of a stable tag. Most of my patches usually land into David Miller trees, where the stable tag is not welcomed. We use Fixes: tags to convey the exact information needed for stable backports. Thanks.