OSDN Git Service

ANDROID: sdcardfs: Don't bother deleting freelist
authorDaniel Rosenberg <drosen@google.com>
Wed, 22 Feb 2017 22:41:58 +0000 (14:41 -0800)
committerAmit Pundir <amit.pundir@linaro.org>
Tue, 14 Aug 2018 12:17:11 +0000 (17:47 +0530)
commit31ad5e2cc340ed776e507458e3b9e120e061b577
tree21f43ee46666c371514a55c941a028ba1880a21f
parentbf7ce971b1b3165ad3d65ad63a024d597a8b76f1
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