5

i am debugging a corrupt packet content inside Network driver. I want to dump a packet content inside network driver for debugging. Before that i want to check whether its address is accessible and valid inside kernel address space . Any API is available for the same other that NULL check??

Cliff
  • 140
  • 1
  • 8

1 Answers1

1

I guess, virt_addr_valid() might come in handy. As far as I understand, this is merely a validity check with respect to the kernel address space.

  • So As i understand the Macro will tell whether the given address belongs to kernel virtual memory or not. I hope it's still in danger if the memory is pointing inside kernel space but to some other process data thereby corrupting that data!! Is my understanding correct? – Cliff Jul 24 '19 at 15:43