From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: * X-Spam-Status: No, score=1.2 required=3.0 tests=DEAR_SOMETHING, DKIM_ADSP_CUSTOM_MED,DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 185ABC432C1 for ; Tue, 24 Sep 2019 07:11:04 +0000 (UTC) Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B1D6B21783 for ; Tue, 24 Sep 2019 07:11:03 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="O9DJMEFH" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B1D6B21783 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=fail smtp.mailfrom=kernelnewbies-bounces@kernelnewbies.org Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.92.2) (envelope-from ) id 1iCexs-0004oI-T9; Tue, 24 Sep 2019 03:10:24 -0400 Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]) by shelob.surriel.com with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.92.2) (envelope-from ) id 1iCexr-0004oC-34 for kernelnewbies@kernelnewbies.org; Tue, 24 Sep 2019 03:10:23 -0400 Received: by mail-wm1-x32c.google.com with SMTP id y135so908644wmc.1 for ; Tue, 24 Sep 2019 00:10:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=yB8mvXG8YqmCSJrUtAy3djiX2m/8CmLI3xWWEyImrDI=; b=O9DJMEFHLMU6/DBP1CS3Fz9qiNkg50obrQE0HHsab4+eCpwajgOpDK5SvBJsaa0nff W1lznGG9RWxudXmcjdKHElFE7Hb8Xjmo+q/EzX5pjrR80pu6re+ZUhZu4MaKnKSfsZah Zp94vTw/ktCWqs2Kt04LOsquNftO+JNwYPCfEe044t0q/AcLiLgoWBwcNqabcNDjyLPc 1z81D0fCntxeJJ1gpLxCgnwc+ombAHfaYgQuak9Ew6AQJWBLihIqXEfLnZJlBc8syKVH dIWOdHPbHp7Ly3TGrCv4eWEAR1Xjmemnh5R06iFY58mpKqNn79KN/ACB9jDBV8Sh2Z+K Wi3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=yB8mvXG8YqmCSJrUtAy3djiX2m/8CmLI3xWWEyImrDI=; b=cxDwHcxxxZ9C002E7Oz2EsSw8FyQsWDDhkB/NKK/uG+z8HjQDbI90OmYack4ogA6Dp /WnhXvjn0qb5yhF07+M/H7ajqLpZ34BxVUlGUtmjrbWhuA0JlHL5MK+U7e++M6h6rMMq 8sgPJaJO2lO8l6WujbMxKXisqXGEDW4ByJX+f22vkVq7EZr7dlcjMK+tZHEXSdIM5LhH oDIrPgfjpNx5KpJ9X0Zy8uoSaGh1w3dWDYV7zbc2XPqisdh6g0brXWZ0TOFeKBBFcB43 S0ay3nCj8R8iXFl5CvJPNlyjfrg2/MgHq/0Dr4iqkQh8PB8rPQfvTtXkfUE8ZEACm4r4 5gCA== X-Gm-Message-State: APjAAAVodmjMFGf5NJHCBVxZ7+vip13WRFrWZvGmttZ2ATmNOfJNA0r6 hsn+mq6LQfEEq4J+R2fJ4pE5A6cTeu5dx7c0AMtbtw2k X-Google-Smtp-Source: APXvYqywpP8qWDv4wV8CzUfLgUkCk1iMQ6TslZvtIdHHp1i9LyaRWXmFS0WLzNQ+F4oWFkfYyHWz3HnKcpU9WWVav5g= X-Received: by 2002:a7b:c7d4:: with SMTP id z20mr1376279wmk.49.1569309020345; Tue, 24 Sep 2019 00:10:20 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Sahibzada Irfanullah Date: Tue, 24 Sep 2019 16:10:07 +0900 Message-ID: Subject: Fwd: Need Help regarding Reading and Writting to a file from kernel function file To: kernelnewbies@kernelnewbies.org X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============7797747237372222172==" Errors-To: kernelnewbies-bounces@kernelnewbies.org --===============7797747237372222172== Content-Type: multipart/alternative; boundary="000000000000b35a900593473a23" --000000000000b35a900593473a23 Content-Type: text/plain; charset="UTF-8" Dear Sir, Hope you are doing well. Actually, I have one problem metioned in the subject line. The problem is: 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 this , 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. Can anyone please provide me with any good guidlines, or links where I can start and solve this problem in a fast way. Thank you very much -- Regards, *Mr. Irfan Ullah* PhD Candidate Data and Knowledge Engineering(DKE) Lab Department of Computer Science and Engineering Kyung Hee University, South Korea. +82-010-591-51651 <+82%2010-3877-8867> sahibzada.iu@gmail.com sahibzada_irfanullah -- Regards, *Mr. Irfanullah* --000000000000b35a900593473a23 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Dear Sir,=C2=A0
Hope you=C2=A0are doi= ng well. Actually, I have one problem metioned in the subject line. The pro= blem is:=C2=A0=C2=A0I am trying t= o 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 f= ollowed=C2=A0this, it's working as a standalone kern= el 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 succe= ssfully but generate the error at runtime. I searched for error codes onlin= e but I didn't find any help.
Can anyone please provide me with any good guidlines, or links wh= ere I can start and solve=C2=A0this problem in a fast way.
Thank=C2=A0you very much

--
Regards,

Mr. Irfan Ul= lah
PhD Candidate
Data and Knowledge Engineering(DKE) Lab
Department of Computer Science and Engineering
=
Kyung Hee University, South Korea.
=C2=A0sahibzada_i= rfanullah



--
<= span style=3D"font-size:12.8px">Regards,

Mr. Irfanull= ah

--000000000000b35a900593473a23-- --===============7797747237372222172== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies --===============7797747237372222172==--