From 56acf966be0cc4279d76eaf36810c53a7884e351 Mon Sep 17 00:00:00 2001 From: Hardik Shah Date: Mon, 23 Sep 2024 20:53:36 +0530 Subject: [PATCH] Update dvkm.c fix compilation error with new kernel/build. --- dvkm.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/dvkm.c b/dvkm.c index b5f953a..43d2667 100644 --- a/dvkm.c +++ b/dvkm.c @@ -47,6 +47,21 @@ struct dvkm_obj { char *data; } k_dvkm_obj; +//prototype +int Use_after_free_IOCTL_Handler(struct dvkm_obj *io); +int Double_free_IOCTL_Handler(struct dvkm_obj *io); +int Heap_Buffer_Overflow_IOCTL_Handler(struct dvkm_obj *io); +int Heap_OOBR_IOCTL_Handler(struct dvkm_obj *io); +int Heap_OOBW_IOCTL_Handler(struct dvkm_obj *io); +int Stack_Buffer_Overflow_IOCTL_Handler(struct dvkm_obj *io); +int Stack_OOBR_IOCTL_Handler(struct dvkm_obj *io); +int Stack_OOBW_IOCTL_Handler(struct dvkm_obj *io); +int Integer_Overflow_IOCTL_Handler(struct dvkm_obj *io); +int Integer_Underflow_IOCTL_Handler(struct dvkm_obj *io); +long dvkm_ioctl(struct file *f, unsigned int cmd, unsigned long arg); +int dvkm_init(void); +void dvkm_exit(void); + //use after free int Use_after_free_IOCTL_Handler(struct dvkm_obj *io) {