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)
committerDaniel Rosenberg <drosen@google.com>
Wed, 22 Feb 2017 23:47:47 +0000 (15:47 -0800)
commit880c68e41dd2eab7bdbc64c8061e5b7e0e269cd3
tree57c05d1133f8b68adf3c6b56e8f9c86c8fd3f767
parent1914b2934b3eb3def0105f5be0b1b98c4169f9ec
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