Re: [PATCH] nfsd: make use of warning provided by refcount_t

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Chuck Lever <chuck.lever@xxxxxxxxxx>

On Mon, 28 Oct 2024 09:04:43 +1100, NeilBrown wrote:                                              
> refcount_t, by design, checks for unwanted situations and provides
> warnings.  It is rarely useful to have explicit warnings with refcount
> usage.
> 
> In this case we have an explicit warning if a refcount_t reaches zero
> when decremented.  Simply using refcount_dec() will provide a similar
> warning and also mark the refcount_t as saturated to avoid any possible
> use-after-free.
> 
> [...]                                                                        

Applied to nfsd-next for v6.13, thanks!                                                                

[1/1] nfsd: make use of warning provided by refcount_t
      commit: 74ca1dc05e0448b248ae3f2be07d716f4938d0fc                                                                      

--                                                                              
Chuck Lever





[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux