2016-02-22 23:09:29 +01:00
|
|
|
#ifndef __LKDTM_H
|
|
|
|
#define __LKDTM_H
|
|
|
|
|
2016-07-16 01:04:39 +02:00
|
|
|
#define pr_fmt(fmt) "lkdtm: " fmt
|
|
|
|
|
|
|
|
#include <linux/kernel.h>
|
|
|
|
|
2016-06-27 07:17:25 +02:00
|
|
|
/* lkdtm_bugs.c */
|
|
|
|
void __init lkdtm_bugs_init(int *recur_param);
|
|
|
|
void lkdtm_PANIC(void);
|
|
|
|
void lkdtm_BUG(void);
|
|
|
|
void lkdtm_WARNING(void);
|
|
|
|
void lkdtm_EXCEPTION(void);
|
|
|
|
void lkdtm_LOOP(void);
|
|
|
|
void lkdtm_OVERFLOW(void);
|
|
|
|
void lkdtm_CORRUPT_STACK(void);
|
|
|
|
void lkdtm_UNALIGNED_LOAD_STORE_WRITE(void);
|
|
|
|
void lkdtm_SOFTLOCKUP(void);
|
|
|
|
void lkdtm_HARDLOCKUP(void);
|
|
|
|
void lkdtm_SPINLOCKUP(void);
|
|
|
|
void lkdtm_HUNG_TASK(void);
|
2017-02-04 00:26:50 +01:00
|
|
|
void lkdtm_REFCOUNT_SATURATE_INC(void);
|
|
|
|
void lkdtm_REFCOUNT_SATURATE_ADD(void);
|
|
|
|
void lkdtm_REFCOUNT_ZERO_DEC(void);
|
|
|
|
void lkdtm_REFCOUNT_ZERO_INC(void);
|
|
|
|
void lkdtm_REFCOUNT_ZERO_SUB(void);
|
|
|
|
void lkdtm_REFCOUNT_ZERO_ADD(void);
|
2016-08-17 23:42:12 +02:00
|
|
|
void lkdtm_CORRUPT_LIST_ADD(void);
|
|
|
|
void lkdtm_CORRUPT_LIST_DEL(void);
|
2016-06-27 07:17:25 +02:00
|
|
|
|
2016-06-27 06:45:23 +02:00
|
|
|
/* lkdtm_heap.c */
|
|
|
|
void lkdtm_OVERWRITE_ALLOCATION(void);
|
|
|
|
void lkdtm_WRITE_AFTER_FREE(void);
|
|
|
|
void lkdtm_READ_AFTER_FREE(void);
|
|
|
|
void lkdtm_WRITE_BUDDY_AFTER_FREE(void);
|
|
|
|
void lkdtm_READ_BUDDY_AFTER_FREE(void);
|
|
|
|
|
2016-06-27 00:12:31 +02:00
|
|
|
/* lkdtm_perms.c */
|
|
|
|
void __init lkdtm_perms_init(void);
|
|
|
|
void lkdtm_WRITE_RO(void);
|
|
|
|
void lkdtm_WRITE_RO_AFTER_INIT(void);
|
|
|
|
void lkdtm_WRITE_KERN(void);
|
|
|
|
void lkdtm_EXEC_DATA(void);
|
|
|
|
void lkdtm_EXEC_STACK(void);
|
|
|
|
void lkdtm_EXEC_KMALLOC(void);
|
|
|
|
void lkdtm_EXEC_VMALLOC(void);
|
|
|
|
void lkdtm_EXEC_RODATA(void);
|
|
|
|
void lkdtm_EXEC_USERSPACE(void);
|
|
|
|
void lkdtm_ACCESS_USERSPACE(void);
|
|
|
|
|
2016-06-26 17:46:23 +02:00
|
|
|
/* lkdtm_rodata.c */
|
2016-02-22 23:09:29 +01:00
|
|
|
void lkdtm_rodata_do_nothing(void);
|
|
|
|
|
2016-06-26 17:46:23 +02:00
|
|
|
/* lkdtm_usercopy.c */
|
|
|
|
void __init lkdtm_usercopy_init(void);
|
|
|
|
void __exit lkdtm_usercopy_exit(void);
|
|
|
|
void lkdtm_USERCOPY_HEAP_SIZE_TO(void);
|
|
|
|
void lkdtm_USERCOPY_HEAP_SIZE_FROM(void);
|
|
|
|
void lkdtm_USERCOPY_HEAP_FLAG_TO(void);
|
|
|
|
void lkdtm_USERCOPY_HEAP_FLAG_FROM(void);
|
|
|
|
void lkdtm_USERCOPY_STACK_FRAME_TO(void);
|
|
|
|
void lkdtm_USERCOPY_STACK_FRAME_FROM(void);
|
|
|
|
void lkdtm_USERCOPY_STACK_BEYOND(void);
|
|
|
|
void lkdtm_USERCOPY_KERNEL(void);
|
|
|
|
|
2016-02-22 23:09:29 +01:00
|
|
|
#endif
|