Where can I find information on memremap behavior?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I am trying to investigate a potential NULL dereference
in drivers/firmware/efi/efi.c in the function efi_mem_reserve_persistent.

In it, a result of memremap call is dereferenced without null checks.
I'd like to understand if it's an error or if there is some sort of invariant that guarantees
it will never return NULL.

For this I need to know when memremap (or the underlying ioremap, I guess)
might return NULL. Just looking into its source code didn't give me much insight.

Do you know any articles/documentation on how memremap and/or ioremap work?

What topics should I study to understand more about it?


_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]

  Powered by Linux