Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp177147imm; Thu, 26 Jul 2018 01:18:49 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcQwWkxchFQ5a04D5mCQUA3osCB0RpV5CthJ23X+V4Hhf3451Hw0vt3ofhmaq+Us3C/9VH6 X-Received: by 2002:a17:902:9693:: with SMTP id n19-v6mr1037357plp.212.1532593129737; Thu, 26 Jul 2018 01:18:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532593129; cv=none; d=google.com; s=arc-20160816; b=hFy4uISg6ElFvkBuroyZyU/vJ/lxZhybJZpDGHhy+5xJ09OVM6Ks2OJtivYtIzGd6v 7Bi3UGmRHUG1MP8SP0siFjBKOOfKoeGtJjtsLCFIMrVxQtpXPALaOy7aDu+AYiJ1OzgX 0nFQVdLrsPxbbanqeu9QeamuD7+WBxdiDhkolUXyyk9eHwgbLc8F1XYdqjHsBT8KELMq +MrZPMNVl2lmz0Ofb40ecMhqftDSX3mPQaLoLHJraXBFgmfC5fFrxbp2xA2vzQAdvlBi Jq9vVkErVjTdkM3fxsEMB8uU2/zONq38D8VkZy+LOl5tzt2rOnumt4ROjgDBIL96ziuH kCrQ== 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=JbyyMEd6xC9efwWEDpEouwmoTggmIuHyMrbCb3WkucI=; b=QzOIYtOdJSfahXuUPjgMb1LxlKs1gqLN6dHiMzz066/G5YqtoRehS4XNJy7Rh1PBnl J6eR0abS3MTb2qX2fGQBVNIZhBeCzSoS1fqtgP154XJCpPJotl/3PSSXgRLd0XpbclBV UbH8EePQYDSIsyn4oCGbeAEhKUrfysxIs1J4yDw46HeDcGQ3qaaxHFFun+d5ZD7eAuJo BSsyBHd9CFewvAkg3REuPV78wp59SlrydxBN/+dP+2mqMAO4I0PsH4WjF+d630yuxA3L QAj90q7S2DylYl9vpN461DKl4UAc1BtH45Ninmxde0qpimR81cuedg6nDs3Y4SZdlhwi if+A== 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 q145-v6si831229pfq.315.2018.07.26.01.18.34; Thu, 26 Jul 2018 01:18:49 -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 S1729069AbeGZJdZ (ORCPT + 99 others); Thu, 26 Jul 2018 05:33:25 -0400 Received: from nautica.notk.org ([91.121.71.147]:51589 "EHLO nautica.notk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728806AbeGZJdZ (ORCPT ); Thu, 26 Jul 2018 05:33:25 -0400 Received: by nautica.notk.org (Postfix, from userid 1001) id B5863C009; Thu, 26 Jul 2018 10:17:42 +0200 (CEST) Date: Thu, 26 Jul 2018 10:17:27 +0200 From: Dominique Martinet To: Tomas Bortoli Cc: davem@davemloft.net, v9fs-developer@lists.sourceforge.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, syzkaller@googlegroups.com Subject: Re: [PATCH] 9p: fix NULL pointer dereferences Message-ID: <20180726081727.GA6699@nautica> References: <20180726081049.10527-1-tomasbortoli@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20180726081049.10527-1-tomasbortoli@gmail.com> 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 Tomas Bortoli wrote on Thu, Jul 26, 2018: > In p9_fd_create_tcp() and p9_fd_create_unix() it is possible to get > a NULL value in the addr parameter. Return -EINVAL in such cases. 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. -- Dominique