Skip to content

Commit

Permalink
binderfs: add stress test for binderfs binder devices
Browse files Browse the repository at this point in the history
This adds a stress test that should hopefully help us catch regressions
for [1], [2], and [3].

[1]: 2669b8b ("binder: prevent UAF for binderfs devices")
[2]: f0fe2c0 ("binder: prevent UAF for binderfs devices II")
[3]: 211b64e ("binderfs: use refcount for binder control devices too")
Signed-off-by: Christian Brauner <[email protected]>
Reviewed-by: Kees Cook <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
Christian Brauner authored and gregkh committed Mar 19, 2020
1 parent ad29ace commit e48d117
Show file tree
Hide file tree
Showing 2 changed files with 334 additions and 94 deletions.
2 changes: 1 addition & 1 deletion tools/testing/selftests/filesystems/binderfs/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# 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
Expand Down
Loading

0 comments on commit e48d117

Please sign in to comment.