hey Greg,
I'm proposing the following commits for stable, as they fix an
oops we're seeing in our testing[*]:
This is needed to 4.14.y -> 5.18.y:
1bbc21785b73 ACPI: sysfs: Fix BERT error region memory mapping
A dependency of the above, needed for 4.14.y -> 5.10.y
bdd56d7d8931 ACPI: sysfs: Make sparse happy about address space in use
-dann
[*] https://launchpad.net/bugs/1973153
Upon nfsd shutdown any pending DRC cache is freed. DRC cache use is
tracked via a percpu counter. In the current code the percpu counter
is destroyed before. If any pending cache is still present,
percpu_counter_add is called with a percpu counter==NULL. This causes
a kernel crash.
The solution is to destroy the percpu counter after the cache is freed.
Fixes: e567b98ce9a4b (“nfsd: protect concurrent access to nfsd stats counters”)
Signed-off-by: Julian Schroeder <jumaco(a)amazon.com>
---
fs/nfsd/nfscache.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/nfsd/nfscache.c b/fs/nfsd/nfscache.c
index 0b3f12aa37ff..7da88bdc0d6c 100644
--- a/fs/nfsd/nfscache.c
+++ b/fs/nfsd/nfscache.c
@@ -206,7 +206,6 @@ void nfsd_reply_cache_shutdown(struct nfsd_net *nn)
struct svc_cacherep *rp;
unsigned int i;
- nfsd_reply_cache_stats_destroy(nn);
unregister_shrinker(&nn->nfsd_reply_cache_shrinker);
for (i = 0; i < nn->drc_hashsize; i++) {
@@ -217,6 +216,7 @@ void nfsd_reply_cache_shutdown(struct nfsd_net *nn)
rp, nn);
}
}
+ nfsd_reply_cache_stats_destroy(nn);
kvfree(nn->drc_hashtbl);
nn->drc_hashtbl = NULL;
--
2.32.0
--
WELCOME TO ILLUMINATI, The Club of the Rich and Famous; is the world
oldest and largest fraternity made up of 5 Millions Members.We are one
Family under one father who is the Supreme Being. In ILLUMINATI we
believe that we were born in paradise and no member should struggle in
this world. Hence all our new members are given Money Rewards once
they join in order to upgrade their lifestyle.; interested members
should contact us via Email: illuminatihome999world(a)gmail.com