[PATCH v1 0/2] NFS: fix RCU and tracing pointer safety

Sean Chang posted 2 patches 2 months, 1 week ago
There is a newer version of this series
fs/nfs/nfstrace.h |  6 +++---
fs/nfs/super.c    | 32 ++++++++++++++++++++++----------
2 files changed, 25 insertions(+), 13 deletions(-)
[PATCH v1 0/2] NFS: fix RCU and tracing pointer safety
Posted by Sean Chang 2 months, 1 week ago
This series addresses two Sparse static analysis warnings in the NFS 
client. 

The first patch fixes an RCU-unsafe dereference when comparing 
superblock addresses by adding the necessary RCU read lock and 
dereference wrappers.

The second patch resolves a "noderef" warning in the tracing 
infrastructure by changing a pointer field to an unsigned long, 
ensuring we aren't incorrectly marking private trace-buffer 
pointers as dereferenceable.

Sean Chang (2):
  NFS: fix RCU safety in nfs_compare_super_address
  NFS: use unsigned long for req field in nfs_page_class

 fs/nfs/nfstrace.h |  6 +++---
 fs/nfs/super.c    | 32 ++++++++++++++++++++++----------
 2 files changed, 25 insertions(+), 13 deletions(-)

-- 
2.34.1