ANDROID: sdcardfs: Don't bother deleting freelist
authorDaniel Rosenberg <drosen@google.com>
Wed, 22 Feb 2017 22:41:58 +0000 (14:41 -0800)
committerStricted <info@stricted.net>
Thu, 11 Oct 2018 16:03:25 +0000 (18:03 +0200)
commit5ea572baeece5b2057d35a13922760b9bf73bd7f
treeb93197b135863fc2b874cedb6b291c0a1fb9f360
parentc788d040505aee07e013f422a47424f52fc730ae
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