selftests/x86/ioperm: Extend testing so the shared bitmap is exercised
authorThomas Gleixner <tglx@linutronix.de>
Mon, 11 Nov 2019 22:03:26 +0000 (23:03 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Sat, 16 Nov 2019 10:24:04 +0000 (11:24 +0100)
commit0907a09c2e52210a67a9616427ea71f14b37e826
tree7db6e105d33092746d7f153b7c44d2d4fd6cbb95
parent4804e382c117ce213cd5c43512cf4b1d71bb2650
selftests/x86/ioperm: Extend testing so the shared bitmap is exercised

Add code to the fork path which forces the shared bitmap to be duplicated
and the reference count to be dropped. Verify that the child modifications
did not affect the parent.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
tools/testing/selftests/x86/ioperm.c