mirror of
https://github.com/torvalds/linux.git
synced 2026-09-25 21:21:09 -04:00
->sock can be set to NULL asynchronously unless ->recv_mutex is held. So it is important to hold that mutex. Otherwise a sysfs read can trigger an oops. Commit17f09d3f61("SUNRPC: Check if the xprt is connected before handling sysfs reads") appears to attempt to fix this problem, but it only narrows the race window. Fixes:17f09d3f61("SUNRPC: Check if the xprt is connected before handling sysfs reads") Fixes:a8482488a7("SUNRPC query transport's source port") Signed-off-by: NeilBrown <[email protected]> Signed-off-by: Anna Schumaker <[email protected]>