Bug 2342242 - Instant crash on 6.12.11 kernel, by file cp over NFS4.*
Summary: Instant crash on 6.12.11 kernel, by file cp over NFS4.*
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: 41
Hardware: x86_64
OS: Linux
unspecified
urgent
Target Milestone: ---
Assignee: Kernel Maintainer List
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-01-27 12:34 UTC by Bert DeKnuydt
Modified: 2025-12-16 18:32 UTC (History)
18 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-12-16 18:32:32 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Bert DeKnuydt 2025-01-27 12:34:47 UTC
1. Please describe the problem:

Using a 6.12.11 NFS4.2 client, a simple cp of a decent size file (600MB)
results in an instantaneous crash of the client, with nothing in the logs.

And a single line in the logs of the server:

[596759.519849] rpc-srv/tcp: nfsd: sent 330004 when sending 1048680 bytes - shutting down socket.

This happens both with the cachefilesd NFS cache on or off.  (Cfr other NFS
problems with 6.12.*)

2. What is the Version-Release number of the kernel:

6.12.11 on the client; 

The server is not important; tested both Fedora
with 6.12.10 and Rocky 9 with 5.14.0-503.22.1)

3. Did it work previously in Fedora? If so, what kernel version did the issue
   *first* appear?  Old kernels are available for download at
   https://koji.fedoraproject.org/koji/packageinfo?packageID=8 :

With 6.12.10 this crash does not happen at all. The copy does take abnormally long though.

4. Can you reproduce this issue? If so, please provide the steps to reproduce
   the issue below:

Always reproducible.

==> Put a 600MB file on a NFS4.2 server
==> 'cp' the file to local storage, on a 6.12.11 client.
==> Instant crash, nothing in the logs.
 
5. Does this problem occur with the latest Rawhide kernel? To install the
   Rawhide kernel, run ``sudo dnf install fedora-repos-rawhide`` followed by
   ``sudo dnf update --enablerepo=rawhide kernel``:

Yes, 6.13.0-0.rc7.20250114gitc45323b7560e.56.fc42.x86_64, crashes immediately too.

6. Are you running any modules that not shipped with directly Fedora's kernel?:

Yes, on this machine the nvidia blob from RPMfusion/

7. Please attach the kernel logs. You can get the complete kernel log
   for a boot with ``journalctl --no-hostname -k > dmesg.txt``. If the
   issue occurred on a previous boot, use the journalctl ``-b`` flag.

There is absolutely *nothing* in the kernel logs.  It seems it's really
instant death.


Reproducible: Always

Comment 1 Bert DeKnuydt 2025-01-27 13:54:34 UTC
* On a particular machine, the size of the file has to be larger than 141MiB to cause the crash.
Anything smaller works perfectly. This both for 6.12.11 and 6.13.*

* Running without the Nvidia blob makes no difference.

Comment 2 Bert DeKnuydt 2025-01-27 14:37:13 UTC
* Mounting with nfsvers=4.1 or nfsvers=4.0 returns in crashes too.  The minimum sizes seem to be a bit different though.

Comment 3 Bert DeKnuydt 2025-01-28 11:26:36 UTC
* 6.12.11-200.fc41.aarch64, on a Raspi crashes in the exact same way.

Comment 4 Bert DeKnuydt 2025-01-29 14:29:14 UTC
It seems it's caused by me setting the NFS4 readahead to the (often recommended, but not standard) value of 15360.
Setting it to the default 128 (or 256 or 512) seems prevent the crashes.

So this section in /etc/nfs.conf appears to trigger it:

[nfsrahead]
nfs4 = 15360

Comment 5 Adam Williamson (Red Hat non-Fedora) 2025-12-02 02:14:57 UTC
This message is a reminder that Fedora Linux 41 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 41 on 2025-12-15.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '41'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version. Note that the version field may be hidden.
Click the "Show advanced fields" button if you do not see it.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 41 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 6 Samyak Jain (RedHat) 2025-12-16 18:32:32 UTC
Fedora Linux 41 entered end-of-life (EOL) status on 2025-12-15.

Fedora Linux 41 is no longer maintained, which means that it
will not receive any further security or bug fix updates. As a result we
are closing this bug.

If you can reproduce this bug against a currently maintained version of Fedora Linux
please feel free to reopen this bug against that version. Note that the version
field may be hidden. Click the "Show advanced fields" button if you do not see
the version field.

If you are unable to reopen this bug, please file a new report against an
active release.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.