Will Deacon
500543c53a
lkdtm: Remove references to CONFIG_REFCOUNT_FULL
...
CONFIG_REFCOUNT_FULL no longer exists, so remove all references to it.
Signed-off-by: Will Deacon <[email protected] >
Reviewed-by: Ard Biesheuvel <[email protected] >
Acked-by: Kees Cook <[email protected] >
Tested-by: Hanjun Guo <[email protected] >
Cc: Ard Biesheuvel <[email protected] >
Cc: Elena Reshetova <[email protected] >
Cc: Linus Torvalds <[email protected] >
Cc: Peter Zijlstra <[email protected] >
Cc: Thomas Gleixner <[email protected] >
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected] >
2019-11-25 09:15:46 +01:00
Will Deacon
23e6b169c9
locking/refcount: Define constants for saturation and max refcount values
...
The REFCOUNT_FULL implementation uses a different saturation point than
the x86 implementation, which means that the shared refcount code in
lib/refcount.c (e.g. refcount_dec_not_one()) needs to be aware of the
difference.
Rather than duplicate the definitions from the lkdtm driver, instead
move them into <linux/refcount.h> and update all references accordingly.
Signed-off-by: Will Deacon <[email protected] >
Reviewed-by: Ard Biesheuvel <[email protected] >
Reviewed-by: Kees Cook <[email protected] >
Tested-by: Hanjun Guo <[email protected] >
Cc: Ard Biesheuvel <[email protected] >
Cc: Elena Reshetova <[email protected] >
Cc: Linus Torvalds <[email protected] >
Cc: Peter Zijlstra <[email protected] >
Cc: Thomas Gleixner <[email protected] >
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected] >
2019-11-25 09:14:13 +01:00
Kees Cook
aeef9c0974
lkdtm: Add missing SPDX-License-Identifier line
...
The refcount.c file missed the mass-addition of the SPDX lines.
Signed-off-by: Kees Cook <[email protected] >
Signed-off-by: Greg Kroah-Hartman <[email protected] >
2018-03-06 19:18:55 -08:00
Kees Cook
039a1c4205
lkdtm: Relocate code to subdirectory
...
The LKDTM modules keep expanding, and it's getting weird to have each file
get a prefix. Instead, move to a subdirectory for cleaner handling.
Signed-off-by: Kees Cook <[email protected] >
Signed-off-by: Greg Kroah-Hartman <[email protected] >
2018-03-06 19:18:55 -08:00