Page MenuHomeFreeBSD

Fix NFS client handling of copyin() error return
Needs ReviewPublic

Authored by rmacklem on Dec 7 2023, 3:04 AM.
Tags
None
Referenced Files
F172072690: D42948.diff
Tue, Sep 15, 10:48 PM
Unknown Object (File)
Tue, Sep 15, 1:51 AM
Unknown Object (File)
Sat, Sep 5, 7:55 AM
Unknown Object (File)
Fri, Sep 4, 11:55 PM
Unknown Object (File)
Fri, Sep 4, 6:35 PM
Unknown Object (File)
Fri, Sep 4, 6:12 PM
Unknown Object (File)
Wed, Sep 2, 9:26 PM
Unknown Object (File)
Wed, Sep 2, 3:12 PM
Subscribers

Details

Reviewers
markj
emaste
Summary

This patch is based on one by markj@, but includes
a few additions:

  • Added a few m_freem() calls to avoid mbuf leaks
  • Handled nfscl_doiods() return of EFAULT for both read and write.
Test Plan

Not tested by me. Hopefully markj@ will be able to
do so.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

sys/fs/nfsclient/nfs_clcomsubs.c
110โ€“111

Is this intended to remain, or just for development?

sys/fs/nfsclient/nfs_clcomsubs.c
110โ€“111

It's just a diagnostic. A version of this patch was committed as 6fa843f6e647a.