usb: Avoid use-after-free by flushing endpoints early in usb_set_interface()
[linux/fpc-iii.git] / drivers / misc / lkdtm.h
blobfdf954c2107f935a36ca719ee6cd760a3d6e9182
1 #ifndef __LKDTM_H
2 #define __LKDTM_H
4 #define pr_fmt(fmt) "lkdtm: " fmt
6 #include <linux/kernel.h>
8 /* lkdtm_bugs.c */
9 void __init lkdtm_bugs_init(int *recur_param);
10 void lkdtm_PANIC(void);
11 void lkdtm_BUG(void);
12 void lkdtm_WARNING(void);
13 void lkdtm_EXCEPTION(void);
14 void lkdtm_LOOP(void);
15 void lkdtm_OVERFLOW(void);
16 void lkdtm_CORRUPT_STACK(void);
17 void lkdtm_UNALIGNED_LOAD_STORE_WRITE(void);
18 void lkdtm_SOFTLOCKUP(void);
19 void lkdtm_HARDLOCKUP(void);
20 void lkdtm_SPINLOCKUP(void);
21 void lkdtm_HUNG_TASK(void);
22 void lkdtm_ATOMIC_UNDERFLOW(void);
23 void lkdtm_ATOMIC_OVERFLOW(void);
25 /* lkdtm_heap.c */
26 void lkdtm_OVERWRITE_ALLOCATION(void);
27 void lkdtm_WRITE_AFTER_FREE(void);
28 void lkdtm_READ_AFTER_FREE(void);
29 void lkdtm_WRITE_BUDDY_AFTER_FREE(void);
30 void lkdtm_READ_BUDDY_AFTER_FREE(void);
32 /* lkdtm_perms.c */
33 void __init lkdtm_perms_init(void);
34 void lkdtm_WRITE_RO(void);
35 void lkdtm_WRITE_RO_AFTER_INIT(void);
36 void lkdtm_WRITE_KERN(void);
37 void lkdtm_EXEC_DATA(void);
38 void lkdtm_EXEC_STACK(void);
39 void lkdtm_EXEC_KMALLOC(void);
40 void lkdtm_EXEC_VMALLOC(void);
41 void lkdtm_EXEC_RODATA(void);
42 void lkdtm_EXEC_USERSPACE(void);
43 void lkdtm_ACCESS_USERSPACE(void);
45 /* lkdtm_rodata.c */
46 void lkdtm_rodata_do_nothing(void);
48 /* lkdtm_usercopy.c */
49 void __init lkdtm_usercopy_init(void);
50 void __exit lkdtm_usercopy_exit(void);
51 void lkdtm_USERCOPY_HEAP_SIZE_TO(void);
52 void lkdtm_USERCOPY_HEAP_SIZE_FROM(void);
53 void lkdtm_USERCOPY_HEAP_FLAG_TO(void);
54 void lkdtm_USERCOPY_HEAP_FLAG_FROM(void);
55 void lkdtm_USERCOPY_STACK_FRAME_TO(void);
56 void lkdtm_USERCOPY_STACK_FRAME_FROM(void);
57 void lkdtm_USERCOPY_STACK_BEYOND(void);
58 void lkdtm_USERCOPY_KERNEL(void);
60 #endif