From mboxrd@z Thu Jan 1 00:00:00 1970 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.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no 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 274E6C47404 for ; Fri, 4 Oct 2019 14:33:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 07848222BE for ; Fri, 4 Oct 2019 14:33:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389132AbfJDOdG (ORCPT ); Fri, 4 Oct 2019 10:33:06 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:48786 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389081AbfJDOdF (ORCPT ); Fri, 4 Oct 2019 10:33:05 -0400 Received: from [213.220.153.21] (helo=wittgenstein) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1iGOdi-00051C-Us; Fri, 04 Oct 2019 14:33:03 +0000 Date: Fri, 4 Oct 2019 16:33:02 +0200 From: Christian Brauner To: Al Viro Cc: Linus Torvalds , linux-kernel@vger.kernel.org, Will Deacon , Kate Stewart , Greg Kroah-Hartman , Amir Goldstein , Thomas Gleixner , Varad Gautam , stable@vger.kernel.org, Jan Glauber Subject: Re: [PATCH] devpts: Fix NULL pointer dereference in dcache_readdir() Message-ID: <20191004143301.kfzcut6a6z5owfee@wittgenstein> References: <20191004140503.9817-1-christian.brauner@ubuntu.com> <20191004142748.GG26530@ZenIV.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20191004142748.GG26530@ZenIV.linux.org.uk> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 04, 2019 at 03:27:48PM +0100, Al Viro wrote: > On Fri, Oct 04, 2019 at 04:05:03PM +0200, Christian Brauner wrote: > > From: Will Deacon > > > > Closing /dev/pts/ptmx removes the corresponding pty under /dev/pts/ > > without synchronizing against concurrent path walkers. This can lead to > > 'dcache_readdir()' tripping over a 'struct dentry' with a NULL 'd_inode' > > field: > > FWIW, vfs.git#fixes (or #next.dcache) ought to deal with that one. Is it feasible to backport your changes? Or do we want to merge the one here first and backport? Christian