Commit 46e92d59 authored by dongliang.cui's avatar dongliang.cui Committed by Treehugger Robot
Browse files

UPSTREAM: exfat: move freeing sbi, upcase table and dropping nls into


rcu-delayed helper

That stuff can be accessed by ->d_hash()/->d_compare(); as it is, we have
a hard-to-hit UAF if rcu pathwalk manages to get into ->d_hash() on a filesystem
that is in process of getting shut down.

Besides, having nls and upcase table cleanup moved from ->put_super() towards
the place where sbi is freed makes for simpler failure exits.

Acked-by: default avatarChristian Brauner <brauner@kernel.org>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
(cherry picked from commit a13d1a4d)

Bug: 362138008

Change-Id: I5b17783ea05a475067ba960b41ae9fb67e7ddf54
Signed-off-by: default avatardongliang.cui <dongliang.cui@unisoc.com>
parent eed2903a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment