From: "Lev R. Oshvang ." <levonshe@gmail.com>
To: kernelnewbies@kernelnewbies.org
Subject: passing __user function parameter from kernel_module result in EFAULT
Date: Tue, 21 Apr 2020 21:14:00 +0300 [thread overview]
Message-ID: <CAP22eLHaJCmSPD6n1HsknD-b2UUDm92CssaTdU7vmNHw_p6d0g@mail.gmail.com> (raw)
Hi all, I am trying to do a mount from kernel module in kernel 5.4 on x86_64.
It fails with -14, I tried to set_fs(USER_DS) before calling do_mount
but it did not
help.
do_mount() returns -EFAUTL when it checks filename validity just at
the very first lines of do_mount ().
Are there other tricks to do in order to overcome and access_ok checks?
Thanks,
Lev
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
next reply other threads:[~2020-04-24 18:16 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-21 18:14 Lev R. Oshvang . [this message]
2020-04-25 7:43 ` passing __user function parameter from kernel_module result in EFAULT Greg KH
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAP22eLHaJCmSPD6n1HsknD-b2UUDm92CssaTdU7vmNHw_p6d0g@mail.gmail.com \
--to=levonshe@gmail.com \
--cc=kernelnewbies@kernelnewbies.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).