Hi Jacob, Jamie,

Thanks, Jamie's analysis matches what I measured on the exact kernels:

- 6.8.0-149.149~22.04.1 (released Jammy HWE): NFSv4.0, sec=krb5, TCP,
  with the reply to RENAME/MKDIR/REMOVE held until 2 s after context
  expiry. In 8/8 trials (RENAME x4, MKDIR x2, REMOVE x2) the server
  executed the operation once, the client never retransmitted, and the
  system call did not return (observed for 3-20 minutes):
  rpcgss_verify_mic reports GSS_S_CONTEXT_EXPIRED, rpc_bad_verifier
  follows, and the task waits on xprt_pending indefinitely.

- 7.0.0-44 with only 9b62ef6d239e reverted: 7/7 trials (RENAME x3,
  MKDIR x2, REMOVE x2) show the same hang. Unmodified 7.0.0-44
  retransmits with a new XID and returns ENOENT/EEXIST (20/20 per
  operation).

So the wrong results in my earlier comment are not a regression
introduced by the backport; 9b62ef6d239e turns the hang into a
retransmission, and NFSv4.0 then re-executes the operation. I agree
the backport should go ahead, since an indefinite hang is worse.

The remaining NFSv4.0 re-execution can be tracked separately. I have
posted an RFC upstream that lets an in-flight request complete with
its original verified reply after context expiry (not yet reviewed):
https://lore.kernel.org/linux-nfs/[email protected]/T/

I'm happy to test the SRU kernels or share my reproducer.

Thanks,
Junyoung Im

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2173036

Title:
  Tasks can hang forever when using NFSv4 with the sec=krb5 mount option

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2173036/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to