NeilBrown b49ea673e1 SUNRPC: lock against ->sock changing during sysfs read
->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.
Commit 17f09d3f619a ("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: 17f09d3f619a ("SUNRPC: Check if the xprt is connected before handling sysfs reads")
Fixes: a8482488a7d6 ("SUNRPC query transport's source port")
Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
2022-02-08 09:14:26 -05:00
..
2022-01-22 08:33:37 +02:00
2021-09-04 10:25:26 -07:00
2021-10-20 18:09:54 -04:00
2020-03-16 12:04:33 -04:00
2022-01-22 08:33:37 +02:00
2021-07-08 14:03:23 -04:00
2022-01-16 07:42:58 +02:00
2021-08-10 14:18:35 -04:00