GNU logs - #68283, boring messages


Message sent to bug-coreutils@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#68283: ls -l issues on cifs mounted directories
Resent-From: Bjoern Voigt <bjoernv@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-coreutils@HIDDEN
Resent-Date: Sat, 06 Jan 2024 13:09:02 +0000
Resent-Message-ID: <handler.68283.B.170454651919458 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 68283
X-GNU-PR-Package: coreutils
X-GNU-PR-Keywords: 
To: 68283 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-coreutils@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.170454651919458
          (code B ref -1); Sat, 06 Jan 2024 13:09:02 +0000
Received: (at submit) by debbugs.gnu.org; 6 Jan 2024 13:08:39 +0000
Received: from localhost ([127.0.0.1]:58800 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rM6Pm-00053m-FK
	for submit <at> debbugs.gnu.org; Sat, 06 Jan 2024 08:08:38 -0500
Received: from lists.gnu.org ([2001:470:142::17]:43732)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <bjoernv@HIDDEN>) id 1rM6Pk-00053X-Or
 for submit <at> debbugs.gnu.org; Sat, 06 Jan 2024 08:08:37 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <bjoernv@HIDDEN>) id 1rM6PZ-0003XZ-RL
 for bug-coreutils@HIDDEN; Sat, 06 Jan 2024 08:08:25 -0500
Received: from mr4.vodafonemail.de ([145.253.228.164])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <bjoernv@HIDDEN>) id 1rM6PX-0003F2-2N
 for bug-coreutils@HIDDEN; Sat, 06 Jan 2024 08:08:25 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arcor.de;
 s=vfde-mb-mr2-23sep; t=1704546494;
 bh=1hlKZiBZMDOt3pM9NZ95k23nsyDbzLlqCz74XS+L//s=;
 h=Message-ID:Date:User-Agent:Content-Language:To:From:Subject:
 Content-Type:From;
 b=sCLmiYNz89+hnK0T5miw7zLypL47Y9aUyCAn53dEZ1wfsir+uLGDW4N+62RP3iL9a
 i3u3imAedohWRQpeSGFD39OMofHxiOD+5vZRS2VLuwllO/hJPkwoecF1uOeYDre/tn
 ijmJe7RL4FIt2k78rIu6Skj+Mv1s+aoFI6MlOxos=
Received: from smtp.vodafone.de (unknown [10.0.0.2])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange X25519 server-signature RSA-PSS (2048 bits))
 (No client certificate requested)
 by mr4.vodafonemail.de (Postfix) with ESMTPS id 4T6gcG6yqZz1y1x
 for <bug-coreutils@HIDDEN>; Sat,  6 Jan 2024 13:08:14 +0000 (UTC)
Received: from [192.168.115.2] (unknown [207.89.88.128])
 (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
 key-exchange X25519 server-signature RSA-PSS (2048 bits))
 (No client certificate requested)
 by smtp.vodafone.de (Postfix) with ESMTPSA id 4T6gc74sn9zHnfr;
 Sat,  6 Jan 2024 13:08:04 +0000 (UTC)
Message-ID: <0857af15-c169-4cb0-a4a8-0488fec2e94f@HIDDEN>
Date: Sat, 6 Jan 2024 14:08:04 +0100
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Content-Language: en-US, de-DE
From: Bjoern Voigt <bjoernv@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-purgate-type: clean
X-purgate: clean
X-purgate-size: 3744
X-purgate-ID: 155817::1704546490-F6FF8693-E28691A3/0/0
Received-SPF: pass client-ip=145.253.228.164; envelope-from=bjoernv@HIDDEN;
 helo=mr4.vodafonemail.de
X-Spam_score_int: -27
X-Spam_score: -2.8
X-Spam_bar: --
X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 GB_FREEMAIL_DISPTO=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001,
 RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001,
 T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.0 (+)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

After upgrading coreutils from version 9.3 to 9.4, "ls -l" shows error 
messages, if the files or directories are in a cifs/smb3 mounted directory.

Example:
/mnt/cifstest here is mounted with "mount -t cifs -o username=myuser 
//192.168.1.2/all /mnt/cifstest/". The server is a Samba 4.19.2 server. 
The kernel is version 6.1.71.

# ls -l /mnt/cifstest/
ls: /mnt/cifstest/: Resource temporarily unavailable
ls: /mnt/cifstest/opt: Resource temporarily unavailable
ls: /mnt/cifstest/dev: Resource temporarily unavailable
ls: /mnt/cifstest/var: Resource temporarily unavailable
ls: /mnt/cifstest/usr: Resource temporarily unavailable
ls: /mnt/cifstest/sbin: Resource temporarily unavailable
ls: /mnt/cifstest/boot: Resource temporarily unavailable
ls: /mnt/cifstest/lib: Resource temporarily unavailable
ls: /mnt/cifstest/etc: Resource temporarily unavailable
ls: /mnt/cifstest/lib64: Resource temporarily unavailable
ls: /mnt/cifstest/run: Resource temporarily unavailable
ls: /mnt/cifstest/proc: Resource temporarily unavailable
ls: /mnt/cifstest/lost+found: Resource temporarily unavailable
ls: /mnt/cifstest/root: Resource temporarily unavailable
ls: /mnt/cifstest/sys: Resource temporarily unavailable
ls: /mnt/cifstest/bin: Resource temporarily unavailable
ls: /mnt/cifstest/srv: Resource temporarily unavailable
ls: /mnt/cifstest/home: Resource temporarily unavailable
ls: /mnt/cifstest/mnt: Resource temporarily unavailable
ls: /mnt/cifstest/tmp: Resource temporarily unavailable
total 0
drwxr-xr-x 2 root root 0 Jan  6 12:01 bin
drwxr-xr-x 2 root root 0 Jan  5 20:47 boot
drwxr-xr-x 2 root root 0 Jan  6 13:14 dev
drwxr-xr-x 2 root root 0 Jan  5 21:00 etc
drwxr-xr-x 2 root root 0 Dec  6 22:54 home
drwxr-xr-x 2 root root 0 Jan  4 21:51 lib
drwxr-xr-x 2 root root 0 Jan  5 21:00 lib64
drwxr-xr-x 2 root root 0 Dec 21  2014 lost+found
drwxr-xr-x 2 root root 0 Jun  9  2021 mnt
drwxr-xr-x 2 root root 0 Dec 26 22:34 opt
drwxr-xr-x 2 root root 0 Jan  5 23:17 proc
drwxr-xr-x 2 root root 0 Dec 10 19:49 root
drwxr-xr-x 2 root root 0 Jan  6 13:53 run
drwxr-xr-x 2 root root 0 Jan  5 20:59 sbin
drwxr-xr-x 2 root root 0 Dec 27  2021 srv
drwxr-xr-x 2 root root 0 Jan  6 01:19 sys
drwxr-xr-x 2 root root 0 Jan  6 13:53 tmp
drwxr-xr-x 2 root root 0 Dec 10 19:49 usr
drwxr-xr-x 2 root root 0 Dec 12 08:37 var

"ls -l" from coreutils 9.3 does not show any errors.

Probably it is not just the error message. "dmesg -w" shows several 
errors after executing "ls -l":

[17563.999109] smb2_reconnect: 3 callbacks suppressed
[17563.999113] CIFS: VFS: reconnect tcon failed rc = -11
[17564.160117] CIFS: VFS: reconnect tcon failed rc = -11
[17564.192244] CIFS: VFS: reconnect tcon failed rc = -11
[17564.223303] CIFS: VFS: reconnect tcon failed rc = -11
[17564.256080] CIFS: VFS: reconnect tcon failed rc = -11
[17564.287887] CIFS: VFS: reconnect tcon failed rc = -11
[17564.410323] CIFS: VFS: reconnect tcon failed rc = -11
[17564.442095] CIFS: VFS: reconnect tcon failed rc = -11
[17564.474065] CIFS: VFS: reconnect tcon failed rc = -11
[17564.569435] CIFS: VFS: reconnect tcon failed rc = -11

I debugged this problem a bit. The changes in 
coreutils-9.4/lib/file-has-acl.c:file_has_acl are probably responsible 
for the errors. The system call listxttr produces the error message 
"Resource temporarily unavailable". I could not find the reasons for 
error messages shown with "dmesg".

The listxattr.c test program in the manual page (man listxattr) shows 
the following output:

# ./listxattr /mnt/cifstest/
listxattr: Resource temporarily unavailable

Work-around are to downgrade to coreutils 9.3 or not to use the "-l" 
option for ls.

Björn





Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Bjoern Voigt <bjoernv@HIDDEN>
Subject: bug#68283: Acknowledgement (ls -l issues on cifs mounted directories)
Message-ID: <handler.68283.B.170454651919458.ack <at> debbugs.gnu.org>
References: <0857af15-c169-4cb0-a4a8-0488fec2e94f@HIDDEN>
X-Gnu-PR-Message: ack 68283
X-Gnu-PR-Package: coreutils
Reply-To: 68283 <at> debbugs.gnu.org
Date: Sat, 06 Jan 2024 13:09:02 +0000

Thank you for filing a new bug report with debbugs.gnu.org.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 bug-coreutils@HIDDEN

If you wish to submit further information on this problem, please
send it to 68283 <at> debbugs.gnu.org.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
68283: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D68283
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems


Message sent to bug-coreutils@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#68283: ls -l issues on cifs mounted directories
Resent-From: =?UTF-8?Q?P=C3=A1draig?= Brady <P@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-coreutils@HIDDEN
Resent-Date: Sat, 06 Jan 2024 14:49:01 +0000
Resent-Message-ID: <handler.68283.B68283.17045525162671 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 68283
X-GNU-PR-Package: coreutils
X-GNU-PR-Keywords: 
To: Bjoern Voigt <bjoernv@HIDDEN>, 68283 <at> debbugs.gnu.org
Cc: Ondrej Valousek <ondrej.valousek.xm@HIDDEN>, Thiago Rafael Becker <trbecker@HIDDEN>
Received: via spool by 68283-submit <at> debbugs.gnu.org id=B68283.17045525162671
          (code B ref 68283); Sat, 06 Jan 2024 14:49:01 +0000
Received: (at 68283) by debbugs.gnu.org; 6 Jan 2024 14:48:36 +0000
Received: from localhost ([127.0.0.1]:58867 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rM7yV-0000gz-GH
	for submit <at> debbugs.gnu.org; Sat, 06 Jan 2024 09:48:35 -0500
Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]:47221)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <pixelbeat@HIDDEN>) id 1rM7yU-0000fM-2U
 for 68283 <at> debbugs.gnu.org; Sat, 06 Jan 2024 09:48:34 -0500
Received: by mail-wm1-x32c.google.com with SMTP id
 5b1f17b1804b1-40d8909a6feso6099195e9.2
 for <68283 <at> debbugs.gnu.org>; Sat, 06 Jan 2024 06:48:28 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1704552503; x=1705157303; darn=debbugs.gnu.org;
 h=content-transfer-encoding:in-reply-to:cc:from:references:to
 :content-language:subject:user-agent:mime-version:date:message-id
 :sender:from:to:cc:subject:date:message-id:reply-to;
 bh=klxBV8Q97naE3ZsCGgNdB0l/oZtQxAomdSGNnJeFRs0=;
 b=XaqnRTX1wzKDJFGzDkOmUUs9fhiQDlpj92P5LYsPlta8MJE3ooWGJWib46ARpO/FjO
 lIk1gcgekXvT0o3oViJ852iI3eiXIlaPu9/u/ybHfyLDwm39lWJssvcA2kVh5lm48Wo6
 7o7OdQWpSJ81uPZyYUwafpZOIb70ULZBp5oybcYi1ZLoY8VNLs56VI8TFG2NT8mfuMCs
 VUc054PpmcPzp5S32Dnrfon/OU905THq0ShHG8HdaTmiiXf29JbhAxi2ZYNXOcMEezmJ
 zSTrf/sWR5G39KKPdYrS1PLnnck5s1dosYgtSbLTkqCtn1u/k9tD+Az7JvZy2t8ZOufn
 ME4w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1704552503; x=1705157303;
 h=content-transfer-encoding:in-reply-to:cc:from:references:to
 :content-language:subject:user-agent:mime-version:date:message-id
 :sender:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=klxBV8Q97naE3ZsCGgNdB0l/oZtQxAomdSGNnJeFRs0=;
 b=gYPioGHc2VjzF0GVZQ1zTGOimvtCMTr+smKN5jBCEuT8ANoMsjNiD4uptHDvDEtKNR
 0DRZCYwBaGnigEV2ZWHoQTaKEaVw+yyaiEwyyCxD/tN3+FOgpqwN7UXVbhNQvw1ER/eO
 3r8A50JuCoAtZCOijX0oZPKy1sL0HLj+CCjjDPssGSy0IaR5moDoHKT5rmEPkssPTFou
 B3DZWJRmofX/t639VEbJiUhzT2zFYKRPHve9anzyspiy+5nww8LCQsOTxT1hEogktgBF
 ECDKk3HTkpaDwLR/9k0ajCWCsoQgbYowphkkaObuzqf1skQfZytAjuLZfwDhS9gFmwcT
 Odlw==
X-Gm-Message-State: AOJu0Yy60fusxKULnsHYgC/h/RmQR6ez9URGC5/GP/gS+bRsrdd2VD5F
 1F6k65LFoKa1OA4EXm204dw=
X-Google-Smtp-Source: AGHT+IHFVW9/tk6kr0mcQh7lZY1FNC6+56M89D/OdR9xWCbvwu50yxKM2s9auXRDFO5sA2qdki2GdQ==
X-Received: by 2002:a05:600c:20cb:b0:40d:e3fa:ef72 with SMTP id
 y11-20020a05600c20cb00b0040de3faef72mr393878wmm.101.1704552502891; 
 Sat, 06 Jan 2024 06:48:22 -0800 (PST)
Received: from [192.168.1.20]
 (95-44-90-175-dynamic.agg2.lod.rsl-rtd.eircom.net. [95.44.90.175])
 by smtp.googlemail.com with ESMTPSA id
 s1-20020adfdb01000000b0033667867a66sm3497005wri.101.2024.01.06.06.48.21
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Sat, 06 Jan 2024 06:48:22 -0800 (PST)
Message-ID: <fce1ae26-6476-e4a5-a141-09da05754359@HIDDEN>
Date: Sat, 6 Jan 2024 14:48:21 +0000
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Content-Language: en-US
References: <0857af15-c169-4cb0-a4a8-0488fec2e94f@HIDDEN>
From: =?UTF-8?Q?P=C3=A1draig?= Brady <P@HIDDEN>
In-Reply-To: <0857af15-c169-4cb0-a4a8-0488fec2e94f@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.5 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.5 (/)

On 06/01/2024 13:08, Bjoern Voigt via GNU coreutils Bug Reports wrote:
> After upgrading coreutils from version 9.3 to 9.4, "ls -l" shows error
> messages, if the files or directories are in a cifs/smb3 mounted directory.
> 
> Example:
> /mnt/cifstest here is mounted with "mount -t cifs -o username=myuser
> //192.168.1.2/all /mnt/cifstest/". The server is a Samba 4.19.2 server.
> The kernel is version 6.1.71.
> 
> # ls -l /mnt/cifstest/
> ls: /mnt/cifstest/: Resource temporarily unavailable


> "ls -l" from coreutils 9.3 does not show any errors.
> 
> Probably it is not just the error message. "dmesg -w" shows several
> errors after executing "ls -l":
> 
> [17563.999109] smb2_reconnect: 3 callbacks suppressed
> [17563.999113] CIFS: VFS: reconnect tcon failed rc = -11

> I debugged this problem a bit. The changes in
> coreutils-9.4/lib/file-has-acl.c:file_has_acl are probably responsible
> for the errors. The system call listxttr produces the error message
> "Resource temporarily unavailable". I could not find the reasons for
> error messages shown with "dmesg".
> 
> The listxattr.c test program in the manual page (man listxattr) shows
> the following output:
> 
> # ./listxattr /mnt/cifstest/
> listxattr: Resource temporarily unavailable
> 
> Work-around are to downgrade to coreutils 9.3 or not to use the "-l"
> option for ls.

Thanks for the details.
EAGAIN is not a documented return from listxattr,
and it seems like the cifs client should not let that leak.
Perhaps the kernel needs another change along the lines of:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=6efa994e35a
(That was included in v5.18).

Perhaps something to ask at linux-cifs@HIDDEN ?

If this is a common enough issue then it might be appropriate for us to handle,
but given the current info, ls is just informing you of an actual issue on your system.

thanks,
Pádraig





Last modified: Sat, 20 Jan 2024 12:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.