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=-8.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=unavailable 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 33396C433C1 for ; Mon, 22 Mar 2021 02:41:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 001A66191A for ; Mon, 22 Mar 2021 02:41:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229946AbhCVCkl (ORCPT ); Sun, 21 Mar 2021 22:40:41 -0400 Received: from zeniv-ca.linux.org.uk ([142.44.231.140]:45676 "EHLO zeniv-ca.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229941AbhCVCkg (ORCPT ); Sun, 21 Mar 2021 22:40:36 -0400 Received: from viro by zeniv-ca.linux.org.uk with local (Exim 4.94 #2 (Red Hat Linux)) id 1lOASV-0081uq-N3; Mon, 22 Mar 2021 02:38:23 +0000 Date: Mon, 22 Mar 2021 02:38:23 +0000 From: Al Viro To: Steve French Cc: CIFS , Steve French , linux-fsdevel Subject: Re: [RFC][PATCHSET] hopefully saner handling of pathnames in cifs Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: Al Viro Precedence: bulk List-ID: X-Mailing-List: linux-cifs@vger.kernel.org On Sun, Mar 21, 2021 at 09:19:53PM -0500, Steve French wrote: > automated tests failed so will need to dig in a little more and see > what is going on > > http://smb3-test-rhel-75.southcentralus.cloudapp.azure.com/#/builders/2/builds/533 Oh, bugger... I think I see a braino that might be responsible for that; whether it's all that's going on or not, that's an obvious bug. Incremental for that one would be diff --git a/fs/cifs/dir.c b/fs/cifs/dir.c index 3febf667d119..ed16f75ac0fa 100644 --- a/fs/cifs/dir.c +++ b/fs/cifs/dir.c @@ -132,7 +132,7 @@ build_path_from_dentry_optional_prefix(struct dentry *direntry, void *page, } if (dfsplen) { s -= dfsplen; - memcpy(page, tcon->treeName, dfsplen); + memcpy(s, tcon->treeName, dfsplen); if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_POSIX_PATHS) { int i; for (i = 0; i < dfsplen; i++) { Folded and force-pushed (same branch). My apologies...