kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* get_user_pages and pinning
@ 2021-01-02 12:39 Sadanand Warrier
  2021-01-02 13:08 ` Cengiz Can
  2021-01-02 13:20 ` Greg KH
  0 siblings, 2 replies; 8+ messages in thread
From: Sadanand Warrier @ 2021-01-02 12:39 UTC (permalink / raw)
  To: Kernelnewbies

Folks
   Since Linux uses lazy evaluation with respect to allocating memory
what happens if a user process allocates memory using malloc in excess
of say 8 or nine pages and calls a device ioctl and passes the user
space pointer to it to be used to pin pages using get_user_pages().
This buffer is to be used for a dma read from a device.
What happens if the memory isn't actually allocated (no initialization
with memset or calloc etc. and all PTEs are pointing to some zero
filled page) and there is no IOMMU?
Thanks

S

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

^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: get_user_pages and pinning
@ 2021-01-03 17:58 Sadanand Warrier
  0 siblings, 0 replies; 8+ messages in thread
From: Sadanand Warrier @ 2021-01-03 17:58 UTC (permalink / raw)
  To: kernelnewbies

From: daniela daniela <daniela.daniela.daniela.daniela@gmail.com>
To: Kernelnewbies@kernelnewbies.org
Subject: Re: get_user_pages and pinning

>Any details about the machine?

Intel i7 core x58-ICH10 chassis.

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-01-03 18:54 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-02 12:39 get_user_pages and pinning Sadanand Warrier
2021-01-02 13:08 ` Cengiz Can
2021-01-03 17:54   ` Sadanand Warrier
2021-01-03 18:26     ` Rik van Riel
2021-01-03 18:54       ` Sadanand Warrier
2021-01-02 13:20 ` Greg KH
2021-01-02 15:11   ` Sadanand Warrier
2021-01-03 17:58 Sadanand Warrier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).