On Sat, Dec 06, 2025 at 07:24:14PM -0500, Trond Myklebust wrote:
From: Mike Snitzer snitzer@kernel.org
commit 3af870aedbff10bfed220e280b57a405e972229f upstream.
Commit f2060bdc21d7 ("nfs/localio: add refcounting for each iocb IO associated with NFS pgio header") inadvertantly reintroduced the same potential for __put_cred() triggering BUG_ON(cred == current->cred) that commit 992203a1fba5 ("nfs/localio: restore creds before releasing pageio data") fixed.
Fix this by saving and restoring the cred around each {read,write}_iter call within the respective for loop of nfs_local_call_{read,write}.
Reported-by: Zorro Lang zlang@redhat.com Fixes: f2060bdc21d7 ("nfs/localio: add refcounting for each iocb IO associated with NFS pgio header") Cc: stable@vger.kernel.org # 6.18.x Signed-off-by: Mike Snitzer snitzer@kernel.org Signed-off-by: Trond Myklebust trond.myklebust@hammerspace.com
What kernel is this for, just 6.18.y? And why was the changelog rewritten/formatted from the original?
thanks,
greg k-h