<div dir="ltr"><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Dear Sir, <br></div><div dir="ltr"><div>Hope you are doing well. Actually, I have one problem metioned in the subject line. The problem is: <span style="color:rgb(36,39,41);font-family:Arial,"Helvetica Neue",Helvetica,sans-serif;font-size:15px">I am trying to write/read page faulted physical addresses to a file in a kernel (v5.3-1) function, i.e., handle_ept_violation() which is present in vmx.c. I have followed </span><a href="https://stackoverflow.com/questions/1184274/read-write-files-within-a-linux-kernel-module" style="color:rgba(220,70,29,0.7);margin:0px;padding:0px;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;line-height:inherit;font-family:Arial,"Helvetica Neue",Helvetica,sans-serif;font-size:15px;vertical-align:baseline;box-sizing:inherit" target="_blank">this</a><span style="color:rgb(36,39,41);font-family:Arial,"Helvetica Neue",Helvetica,sans-serif;font-size:15px">, it's working as a standalone kernel module when I load/unload this kernel module, but when I try to use this code in the handle_ept_violation() function, I can't able to open the file and get the error codes, i.e., -2, -3, or -13. It's compiled successfully but generate the error at runtime. I searched for error codes online but I didn't find any help.</span></div><div><font color="#242729" face="Arial, Helvetica Neue, Helvetica, sans-serif"><span style="font-size:15px">Can anyone please provide me with any good guidlines, or links where I can start and solve this problem in a fast way.</span></font></div><div><font color="#242729" face="Arial, Helvetica Neue, Helvetica, sans-serif"><span style="font-size:15px">Thank you very much</span></font></div><div><br></div>-- <br><div dir="ltr" data-smartmail="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><span style="font-size:12.8px">Regards,</span><div style="font-size:12.8px"><br><div dir="ltr" style="color:rgb(136,136,136);font-size:small"><b style="color:rgb(39,78,19)">Mr. Irfan Ullah</b><br></div><div dir="ltr" style="color:rgb(136,136,136);font-size:small"><font color="#666666">PhD Candidate<br></font><div><font color="#666666">Data and Knowledge Engineering(DKE) Lab</font></div><div><font color="#666666">Department of Computer Science and Engineering</font></div><div><font color="#666666">Kyung Hee University, South Korea.</font></div><div><img src="http://teedayusa.com/media/wysiwyg/telephone_icon.gif" style="font-family:arial,sans-serif;font-size:12.8px"><span style="font-family:arial,sans-serif;font-size:12.8px"> </span><span style="font-family:arial,sans-serif;font-size:12.8px"><font color="#000000"><a href="tel:+82%2010-3877-8867" value="+821038778867" target="_blank">+82-010-591-51651</a></font></span></div><div><div style="font-family:arial,sans-serif;font-size:12.8px"><img src="http://www.letsplaydodgeball.com/ndo/templates/dj-sport01/images/system/emailButton.png" style="font-size:12.8px"><span style="font-size:12.8px"><font color="#000000"> </font></span><span style="font-size:12.8px"><font color="#000000"><a href="mailto:sahibzada.iu@gmail.com" target="_blank">sahibzada.iu@gmail.com</a></font></span></div><div><font face="arial, sans-serif"><span style="font-size:12.8px"><img src="https://docs.google.com/uc?export=download&id=0B1-dY3m3XHQnOFBOM0NSODNoUUU&revid=0B1-dY3m3XHQnUmp1c0ZWTGovR2pYbGZCenlOU29DY3ByQU5RPQ" style="font-size:12.8px"></span></font><span style="font-family:arial,sans-serif;font-size:12.8px"> </span><font face="arial, sans-serif"><span style="font-size:12.8px">sahibzada_irfanullah</span></font></div></div></div></div><div style="font-size:12.8px"><div style="font-size:12.8px"><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><span style="font-size:12.8px">Regards,</span><div style="font-size:12.8px"><br><span style="font-size:12.8px;color:rgb(80,0,80)"><b>Mr. Irfanullah</b></span></div><div style="font-size:12.8px"><div style="font-size:12.8px"><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>