Skip to content

Commit

Permalink
Update dvkm.c
Browse files Browse the repository at this point in the history
fix compilation error with new kernel/build.
  • Loading branch information
hardik05 authored Sep 23, 2024
1 parent 23c7ae4 commit 56acf96
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions dvkm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 56acf96

Please sign in to comment.