Commit e48d1174 authored by Christian Brauner's avatar Christian Brauner Committed by Greg Kroah-Hartman

binderfs: add stress test for binderfs binder devices

This adds a stress test that should hopefully help us catch regressions
for [1], [2], and [3].

[1]: 2669b8b0 ("binder: prevent UAF for binderfs devices")
[2]: f0fe2c0f ("binder: prevent UAF for binderfs devices II")
[3]: 211b64e4 ("binderfs: use refcount for binder control devices too")
Signed-off-by: default avatarChristian Brauner <christian.brauner@ubuntu.com>
Reviewed-by: default avatarKees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20200313152420.138777-3-christian.brauner@ubuntu.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ad29ace2
# SPDX-License-Identifier: GPL-2.0
CFLAGS += -I../../../../../usr/include/
CFLAGS += -I../../../../../usr/include/ -pthread
TEST_GEN_PROGS := binderfs_test
binderfs_test: binderfs_test.c ../../kselftest.h ../../kselftest_harness.h
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment