Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp1817171rwj; Sun, 18 Dec 2022 16:25:43 -0800 (PST) X-Google-Smtp-Source: AA0mqf6WFa8AiFygleIscyHSYMwTIsr8Nm3u9l0R1QtnWNF2tiC5LGtL7OHihGv/RPxNF/7JNVT3 X-Received: by 2002:a17:90b:116:b0:219:1be:6d52 with SMTP id p22-20020a17090b011600b0021901be6d52mr41449213pjz.3.1671409543259; Sun, 18 Dec 2022 16:25:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671409543; cv=none; d=google.com; s=arc-20160816; b=YA43nQPnTCt1v/B5bAHRDn88s59xtfBnd3iWn3ec7UB4l6siOXI6lNc0PRsekbrAps u8RhVCHi9yeZw6/An0lRK+AtU139aPdhkO0FTf1Y0CMWHykdvz5cMg5PXlNR//pFCkKd TOYQ+tGZeCCgKKklmydECR1ywM0+4ecDCZ2P9zZnjSuydsjoTFaKqhh7RNGB+CFyJLHP fhx3MvxD88FOUCZ8SSS4Xs2+KsGzJRwGGNVs4Rmowqq4eVFNpmXm7+C4lo0J4bF3QqDJ FRcQzdGUaNKFG0ACfJufPsvox72pN0r2Ib0hjxy9fo3Z8AM4kjHkGRIEFWu3YhPPwMVd 0S9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=htdq/XZc8I8eF96377CKikxWMYv077FZxvjw+oX9C5o=; b=PJt68nmKHoHf7jS69FU4bSM5zKL4xN7G7Vb1mfwsDonZ5bmyH3aQj2D7OwSwHuYsi8 P/0KTvrtrIqH4bSZkdxeHFk9M1KsOKPigO9JkgqfI2i8dQ9gCtnoP3EVDjJQKgBMzIGx b9Z69A3sJXcHzQOq9UmdnRpis4vwyiWAcJA6S9R0wQ99M3v9F7TZv/Xe644EC3t8kzMW J0MqDrg9U7bDHD3YjnS7pV1JDoBHBcM+Ms2aNdn1anRJzMf38JwjdtjZRoaGm3sxFA0J 3Sf9dosndK80wCVv7ei0IDB15LKeLxYetVpxT61iAbiPEGWswlQQ8uHoIvvcbfd5GAKp 8aTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@icloud.com header.s=1a1hai header.b=QFyNE1Sp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=icloud.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id pi12-20020a17090b1e4c00b002216b23e148si16495835pjb.155.2022.12.18.16.25.34; Sun, 18 Dec 2022 16:25:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@icloud.com header.s=1a1hai header.b=QFyNE1Sp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=icloud.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230506AbiLRXYm (ORCPT + 70 others); Sun, 18 Dec 2022 18:24:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231263AbiLRXYC (ORCPT ); Sun, 18 Dec 2022 18:24:02 -0500 Received: from ms11p00im-qufo17281301.me.com (ms11p00im-qufo17281301.me.com [17.58.38.50]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E0323BE00 for ; Sun, 18 Dec 2022 15:24:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=icloud.com; s=1a1hai; t=1671405840; bh=htdq/XZc8I8eF96377CKikxWMYv077FZxvjw+oX9C5o=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=QFyNE1SpFQWkKKFDDGJNghkxnVWgX6HuriKkhGY1KmS3buUES5/SwrAmnepbmKSha HO6vQC2pvXZCobvdd+eW0q+x9AnOJUWiiiv2RO2zfgjDEIe9LWH+iX+RCb5Lnqtyyl yqD4e9g5ZKk0RPUbQ9zYhlou6px5yYAo61LgUd0o0l4u+3DjDOAy0/PwWmRC4WtYS4 D6Q+QBldepIkkJ0tyVaAd/TvYhxsddzfulWfmbiUWRHgb5GiY5cX0QNwWeqYGydED7 ybV102N5jM5S9VyAvKzs90Al7PAgA9ZkfeYt3pqntFFfMUkDCnGF/ZKrRg5gF8rWiW G7FkXxTmHGJtA== Received: from thundercleese.localdomain (ms11p00im-dlb-asmtpmailmevip.me.com [17.57.154.19]) by ms11p00im-qufo17281301.me.com (Postfix) with ESMTPSA id 52D46CC03C2; Sun, 18 Dec 2022 23:23:59 +0000 (UTC) From: Eric Van Hensbergen To: v9fs-developer@lists.sourceforge.net, asmadeus@codewreck.org, rminnich@gmail.com, lucho@ionkov.net Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux_oss@crudebyte.com, Eric Van Hensbergen Subject: [PATCH v2 06/10] fix bug in client create for .L Date: Sun, 18 Dec 2022 23:22:19 +0000 Message-Id: <20221218232217.1713283-7-evanhensbergen@icloud.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20221218232217.1713283-1-evanhensbergen@icloud.com> References: <20221217183142.1425132-1-evanhensbergen@icloud.com> <20221218232217.1713283-1-evanhensbergen@icloud.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Proofpoint-ORIG-GUID: xzxg9YkojhbJV7qxgyxoK48b60sdlYsq X-Proofpoint-GUID: xzxg9YkojhbJV7qxgyxoK48b60sdlYsq X-Proofpoint-Virus-Version: =?UTF-8?Q?vendor=3Dfsecure_engine=3D1.1.170-22c6f66c430a71ce266a39bfe25bc?= =?UTF-8?Q?2903e8d5c8f:6.0.425,18.0.572,17.11.62.513.0000000_definitions?= =?UTF-8?Q?=3D2022-01-14=5F01:2022-01-14=5F01,2020-02-14=5F11,2021-12-02?= =?UTF-8?Q?=5F01_signatures=3D0?= X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 clxscore=1015 mlxscore=0 spamscore=0 adultscore=0 bulkscore=0 malwarescore=0 mlxlogscore=739 phishscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2209130000 definitions=main-2212180222 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We are supposed to set fid->mode to reflect the flags that were used to open the file. We were actually setting it to the creation mode which is the default perms of the file not the flags the file was opened with. Signed-off-by: Eric Van Hensbergen --- net/9p/client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/9p/client.c b/net/9p/client.c index f982d36b55b8..4ae41f8f7286 100644 --- a/net/9p/client.c +++ b/net/9p/client.c @@ -1293,7 +1293,7 @@ int p9_client_create_dotl(struct p9_fid *ofid, const char *name, u32 flags, qid->type, qid->path, qid->version, iounit); memmove(&ofid->qid, qid, sizeof(struct p9_qid)); - ofid->mode = mode; + ofid->mode = flags; ofid->iounit = iounit; free_and_error: -- 2.37.2