<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:"Malgun Gothic";
        panose-1:2 11 5 3 2 0 0 2 0 4;}
@font-face
        {font-family:GulimChe;
        panose-1:2 11 6 9 0 1 1 1 1 1;}
@font-face
        {font-family:"Malgun Gothic";
        panose-1:2 11 5 3 2 0 0 2 0 4;}
@font-face
        {font-family:GulimChe;
        panose-1:2 11 6 9 0 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        text-align:justify;
        text-justify:inter-ideograph;
        text-autospace:none;
        word-break:break-hangul;
        font-size:10.0pt;
        font-family:"Malgun Gothic";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
tt
        {mso-style-priority:99;
        font-family:GulimChe;}
p.MsoQuote, li.MsoQuote, div.MsoQuote
        {mso-style-priority:29;
        mso-style-link:"\C778\C6A9 Char";
        margin-top:10.0pt;
        margin-right:43.2pt;
        margin-bottom:8.0pt;
        margin-left:43.2pt;
        text-align:center;
        text-autospace:none;
        word-break:break-hangul;
        font-size:10.0pt;
        font-family:"Malgun Gothic";
        color:#404040;
        font-style:italic;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Malgun Gothic";
        color:windowtext;}
span.Char
        {mso-style-name:"\C778\C6A9 Char";
        mso-style-priority:29;
        mso-style-link:\C778\C6A9;
        color:#404040;
        font-style:italic;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Malgun Gothic";}
/* Page Definitions */
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:3.0cm 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=KO link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal><span lang=EN-US style='background:white'>Hello,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='background:white'>I was reading <a href="https://lwn.net/Articles/753027/">https://lwn.net/Articles/753027/</a> and it says<o:p></o:p></span></p><p class=MsoQuote><span lang=EN-US style='background:white'>Problems can arise when the kernel decides to perform writeback on some of the pages brought in with </span><tt><span lang=EN-US style='font-size:12.0pt;color:black;background:white'>get_user_pages()</span></tt><span lang=EN-US style='background:white'>. The writeback process will write-protect the pages so that user-space cannot modify them until writeback is complete, but it knows nothing about DMA operations started by the driver that called </span><tt><span lang=EN-US style='font-size:12.0pt;color:black;background:white'>get_user_pages()</span></tt><span lang=EN-US style='background:white'>; that I/O may still be ongoing. <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Does get_user_pages() start a DMA operation? If yes, is it for the user pages content? Or is it copying the page table?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Or is the author talking about the DMA operation by the driver sometime after the get_user_pages operation?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Chan Kim<o:p></o:p></span></p></div></body></html>