Message ID | 20201109125022.118107173@linuxfoundation.org |
---|---|
State | New |
Headers | show
Return-Path: <SRS0=upl/=EP=vger.kernel.org=stable-owner@kernel.org> 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=-12.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham 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 6E9C4C4741F for <stable@archiver.kernel.org>; Mon, 9 Nov 2020 12:56:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0E6C220897 for <stable@archiver.kernel.org>; Mon, 9 Nov 2020 12:56:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604926613; bh=hDzC8cSvpzDscY6CdAyOCr4izB1A/cnLL5OmQ769Duw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=NmE8XovwQhH6WfzRV1IJeMc0sV4Xy218vRJ+dR6NOzg2K4MZNzqFi+t0enHLWEe5V 3B8GSC4dX+gesMYuspsm7mggK9lCy+r4wizmGYZvYtnChBg8c2uvi8648g+0DVPKEo xVifPkyNNmyUFArMoAHx16qm7m+CZQrFFjCb2MGE= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729869AbgKIM4o (ORCPT <rfc822;stable@archiver.kernel.org>); Mon, 9 Nov 2020 07:56:44 -0500 Received: from mail.kernel.org ([198.145.29.99]:51120 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727826AbgKIM4n (ORCPT <rfc822;stable@vger.kernel.org>); Mon, 9 Nov 2020 07:56:43 -0500 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 874F52076E; Mon, 9 Nov 2020 12:56:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604926601; bh=hDzC8cSvpzDscY6CdAyOCr4izB1A/cnLL5OmQ769Duw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rG7HAh5OUtekpAbrPFPF9j07SbsTphoa/xlgKvDq+mICloIWG+Urq7EoB2ra1NcFB fzQn4Oi7z2Kffb7fzt3rrVtWLLHDUqEgr8azVLaoAh8UAX7wqTBS+1UMg6dwe3vWL4 GSDrCc72+pkuvjb92ecLEJ4DbsCLA/wR7TlJ0WsU= From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, stable@vger.kernel.org, syzbot+75d51fe5bf4ebe988518@syzkaller.appspotmail.com, Anant Thazhemadam <anant.thazhemadam@gmail.com>, Dominique Martinet <asmadeus@codewreck.org>, Sasha Levin <sashal@kernel.org> Subject: [PATCH 4.4 26/86] net: 9p: initialize sun_server.sun_path to have addrs value only when addr is valid Date: Mon, 9 Nov 2020 13:54:33 +0100 Message-Id: <20201109125022.118107173@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201109125020.852643676@linuxfoundation.org> References: <20201109125020.852643676@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: <stable.vger.kernel.org> X-Mailing-List: stable@vger.kernel.org |
Series |
None
|
expand
|
diff --git a/net/9p/trans_fd.c b/net/9p/trans_fd.c index eab058f93ec97..6f8e84844bb27 100644 --- a/net/9p/trans_fd.c +++ b/net/9p/trans_fd.c @@ -991,7 +991,7 @@ p9_fd_create_unix(struct p9_client *client, const char *addr, char *args) csocket = NULL; - if (addr == NULL) + if (!addr || !strlen(addr)) return -EINVAL; if (strlen(addr) >= UNIX_PATH_MAX) {