Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp245988imm; Thu, 26 Jul 2018 02:50:10 -0700 (PDT) X-Google-Smtp-Source: AAOMgpftejTwEbs/Hb8AibLWEW3PjOqP6sJ0HvzHG6j38IE5oewxWJk2lEMVdLToUDEt9vNjyV5Y X-Received: by 2002:a62:1d97:: with SMTP id d145-v6mr1392479pfd.101.1532598610386; Thu, 26 Jul 2018 02:50:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532598610; cv=none; d=google.com; s=arc-20160816; b=wmVoeUA/3dlCEF1cKXrIM2+5S3oL4hK9DZhoIVz7wLWT20DU/KJOCwiF/CpNAu/v+R JGGDSGlmKm013Z2PdEHVH8XlabtujsIjIq7Yo5WI0ap65ygG/QfwFUigrJn2RH7xH58y B+k7WZlejoywNY/spEg/XYI38lYb1dARvd6qCymZbRlNUPP0SH8fNMOPoOL+Y8JvbsJd eSU7Y8hXkOnxwNZ2ER8K/wr6jg3fvYM5XmHRWxV8MX6tjFHqUc5f1DUyHwpKuMIa0RC0 eukO8Cx33ntlAObzVs67rppavtMmigVMwS+YJkCM5N/1YN3Ut2iUe6vzxQWrZjteo62e 3moA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=pbryP9yyBISbBAhlYgkaOoXll6cehBsKnO8dyBlMMdA=; b=csPei8NbueaXH3Qm07nF8DAGyw21Pt79aM4Awt0ExfvcngfiZg2R/nYn1z5fG58DD7 KwO3HK9mAU4cjVf/FOkdv5q4s6OqRANfWayWfMFEeGv/eZ67dujrQ2bDWfQG+JxL7Yfn zcu1Bw1NT24infkNjv3V96+zcNdjCWwjqCD/mbbUQNlhSEGUDAcvA+A4X7rBzTJNJ8JO nnLU5MBNE22Qk6pdVNq2ETkTnu2nximZLxyocs36Xut+f2YAbndmWEv2oYCN6ayI3J5l nah4u85VqA8I/VsgB+qga6CAZNDzbkAooPkibvlgbkuo9IxiqNyHsURYuJNOv/hzkaaL 3UPg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o33-v6si936143plb.192.2018.07.26.02.49.55; Thu, 26 Jul 2018 02:50:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729282AbeGZLFJ (ORCPT + 99 others); Thu, 26 Jul 2018 07:05:09 -0400 Received: from nautica.notk.org ([91.121.71.147]:43694 "EHLO nautica.notk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728681AbeGZLFI (ORCPT ); Thu, 26 Jul 2018 07:05:08 -0400 Received: by nautica.notk.org (Postfix, from userid 1001) id 976FAC009; Thu, 26 Jul 2018 11:49:04 +0200 (CEST) Date: Thu, 26 Jul 2018 11:48:49 +0200 From: Dominique Martinet To: Dmitry Vyukov Cc: Tomas Bortoli , David Miller , v9fs-developer@lists.sourceforge.net, netdev , LKML , syzkaller Subject: Re: [PATCH] 9p: fix NULL pointer dereferences Message-ID: <20180726094849.GA18334@nautica> References: <20180726081049.10527-1-tomasbortoli@gmail.com> <20180726081727.GA6699@nautica> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Dmitry Vyukov wrote on Thu, Jul 26, 2018: > > Let's refuse that at much higher level, like v9fs_mount() in > > fs/9p/vfs_super.c > > > > I can't think of any valid reason for dev_name to be NULL, it's the > > target IP or virtio handle. > > But I think trans=fd allows NULL addr today, no? Ah, right, I read the patch too fast and read unix_create as fd_create, I never realized there was a unix_create variant... fd legitimately doesn't need a name, you are correct. I'm really curious if anyone ever uses the unix/fd variants for "real" stuff though! (not meaning syzbot isn't real, but I have yet to see anything take advantage of this, even if I could imagine some fun applications by piping the wmii libixp server socket.. and just crashed my laptop trying because of the (fixed) trans put bug.. I have yet to see anyone actually doing this) On the other hand, virtio, rdma and xen all have the same problem, so Thomas, please fix them instead :) -- Dominique Martinet