ANDROID: sdcardfs: Don't bother deleting freelist
authorDaniel Rosenberg <drosen@google.com>
Wed, 22 Feb 2017 22:41:58 +0000 (14:41 -0800)
committerDaniel Rosenberg <drosen@google.com>
Tue, 30 Jan 2018 03:40:04 +0000 (19:40 -0800)
commit952d8b9c725b32b9f2ffc9854d9ba3ea12e0b9b9
tree0563f250cb15be141604371bd91c51b2eba16f3d
parentdf88f6749477641c0d54a17f01348a511fe413af
ANDROID: sdcardfs: Don't bother deleting freelist

There is no point deleting entries from dlist, as
that is a temporary list on the stack from which
contains only entries that are being deleted.

Not all code paths set up dlist, so those that
don't were performing invalid accesses in
hash_del_rcu. As an additional means to prevent
any other issue, we null out the list entries when
we allocate from the cache.

Signed-off-by: Daniel Rosenberg <drosen@google.com>
Bug: 35666680
Change-Id: Ibb1e28c08c3a600c29418d39ba1c0f3db3bf31e5
fs/sdcardfs/packagelist.c