Alexander Sverdlin
8bf902fee5
nfsd: Fix nsfd startup race (again)
...
commit b10252c7ae9c9d7c90552f88b544a44ee773af64 upstream.
Commit bd5ae9288d64 ("nfsd: register pernet ops last, unregister first")
has re-opened rpc_pipefs_event() race against nfsd_net_id registration
(register_pernet_subsys()) which has been fixed by commit bb7ffbf29e76
("nfsd: fix nsfd startup race triggering BUG_ON").
Restore the order of register_pernet_subsys() vs register_cld_notifier().
Add WARN_ON() to prevent a future regression.
Crash info:
Unable to handle kernel NULL pointer dereference at virtual address 0000000000000012
CPU: 8 PID: 345 Comm: mount Not tainted 5.4.144-... #1
pc : rpc_pipefs_event+0x54/0x120 [nfsd]
lr : rpc_pipefs_event+0x48/0x120 [nfsd]
Call trace:
rpc_pipefs_event+0x54/0x120 [nfsd]
blocking_notifier_call_chain
rpc_fill_super
get_tree_keyed
rpc_fs_get_tree
vfs_get_tree
do_mount
ksys_mount
__arm64_sys_mount
el0_svc_handler
el0_svc
Fixes: bd5ae9288d64 ("nfsd: register pernet ops last, unregister first")
Cc: stable@vger.kernel.org
Signed-off-by: Alexander Sverdlin <alexander.sverdlin@nokia.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-12-14 10:57:14 +01:00
..
2019-08-28 21:13:45 -04:00
2018-01-22 20:13:07 -08:00
2021-06-30 15:34:19 -06:00
2020-06-01 17:44:45 -04:00
2021-02-23 13:39:45 -08:00
2021-01-25 09:36:28 -05:00
2019-07-03 16:57:17 +02:00
2021-10-01 11:17:40 -04:00
2020-02-06 11:22:55 -05:00
2021-07-28 22:24:27 -04:00
2021-08-23 18:05:31 -04:00
2020-09-25 18:01:26 -04:00
2021-05-25 17:06:51 -04:00
2021-03-22 10:19:01 -04:00
2021-07-06 20:14:44 -04:00
2021-03-22 10:18:56 -04:00
2021-03-22 10:19:02 -04:00
2021-01-24 14:27:17 +01:00
2021-07-06 20:14:42 -04:00
2020-07-13 17:28:46 -04:00
2020-08-23 17:36:59 -05:00
2021-07-06 20:14:44 -04:00
2021-12-14 10:57:14 +01:00
2021-12-14 10:57:14 +01:00
2021-11-25 09:48:35 +01:00
2021-01-25 09:36:27 -05:00
2021-12-14 10:57:14 +01:00
2021-05-25 17:06:51 -04:00
2021-03-22 10:18:51 -04:00
2021-05-18 13:44:03 -04:00
2021-08-26 15:32:28 -04:00
2021-05-25 17:06:51 -04:00
2021-03-22 10:19:02 -04:00
2021-04-19 16:41:36 -04:00
2021-01-25 09:36:27 -05:00
2021-01-25 09:36:28 -05:00
2020-11-30 13:00:24 -05:00
2021-08-17 11:47:52 -04:00
2021-08-31 10:57:06 -07:00
2021-03-22 10:18:52 -04:00
2021-03-22 10:19:02 -04:00
2021-05-25 17:06:51 -04:00
2018-09-25 20:34:54 -04:00
2021-03-22 10:19:01 -04:00