Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

NFSD: Prevent NULL dereference in nfsd4_process_cb_update()

@ses is initialized to NULL. If __nfsd4_find_backchannel() finds no
available backchannel session, setup_callback_client() will try to
dereference @ses and segfault.

Fixes: dcbeaa68dbbd ("nfsd4: allow backchannel recovery")
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>

+2
+2
fs/nfsd/nfs4callback.c
··· 1464 1464 ses = c->cn_session; 1465 1465 } 1466 1466 spin_unlock(&clp->cl_lock); 1467 + if (!c) 1468 + return; 1467 1469 1468 1470 err = setup_callback_client(clp, &conn, ses); 1469 1471 if (err) {