×

Method and system for kernel routine callbacks

  • US 11,106,491 B2
  • Filed: 04/06/2018
  • Issued: 08/31/2021
  • Est. Priority Date: 04/06/2018
  • Status: Active Grant
First Claim
Patent Images

1. A method comprising:

  • hooking a pre-callback handler and a post-callback handler to an operating system of a computing device;

    obtaining, by the pre-callback handler, a kernel routine request for a kernel routine to be performed in a kernel mode of the operating system;

    determining, by the pre-callback handler, whether to allow the kernel routine to be performed based on one or more input parameters of the kernel routine request, wherein the determination by the pre-callback handler is based on whether a value of at least one of the input parameters exceeds a threshold and/or matches a standard input value;

    upon determining that the kernel routine is allowed to be performed, causing the kernel routine to be performed in the kernel mode to generate kernel routine results;

    determining, by the post-callback handler, whether to allow the kernel routine results of the kernel routine to be returned based on one or more output parameters of the kernel routine request, wherein the determination by the post-callback handler is based on whether a value of at least one of the output parameters exceeds a threshold and/or matches a standard output value;

    upon determining that the kernel routine results of the kernel routine are allowed to be returned, causing the kernel routine results of the kernel routine to be returned to an application that is executed in a non-kernel mode of the operating system; and

    upon determining that the kernel routine results are not allowed to be returned,modifying the kernel routine results, wherein the modifying the kernel routine results comprises filtering out a portion from the kernel routine results that is not accessible by a function call corresponding to the kernel routine, andcausing the modified kernel routine results and a first post-operation error indicating the portion of the kernel routine results has not been accessed to be returned to the application.

View all claims
  • 3 Assignments
Timeline View
Assignment View
    ×
    ×