mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Wakko Warner <wakko@animx.eu.org>
To: Dominique Martinet <dominique.martinet@cea.fr>
Cc: Randy Dunlap <rdunlap@infradead.org>,
	linux-kernel@vger.kernel.org,
	v9fs-developer@lists.sourceforge.net,
	Rusty Russell <rusty@rustcorp.com.au>,
	Al Viro <viro@zeniv.linux.org.uk>
Subject: Re: [V9fs-developer] Unable to load modules from 9p filesystem with kmod 16
Date: Sat, 11 Jan 2014 09:12:09 -0500	[thread overview]
Message-ID: <20140111141209.GA26811@animx.eu.org> (raw)
In-Reply-To: <20140111121914.GA12907@nautica>

Dominique Martinet wrote:
> Hi,

Hi.

The following was trimmed.

> > On 01/10/2014 03:03 PM, Wakko Warner wrote:
> > > Wakko Warner wrote:
> > >> Kernel 3.12.7 from kernel.org
> > >> With kmod-16, I'm unable to load any modules on my guest kvm machines.

> > >> open("/lib/modules/3.12.7/kernel/crypto/af_alg.ko", O_RDONLY|O_CLOEXEC) = 3
> > >> fstat(3, {st_mode=S_IFREG|0644, st_size=13822, ...}) = 0
> > >> mmap(NULL, 13822, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f199aebd000
> > >> syscall_313(0x3, 0x7f199aaa2de0, 0, 0x3, 0, 0x7f199b7b2010, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0) = -1 (errno 8)
> > >> munmap(0x7f199aebd000, 13822)           = 0
> > >> close(3)                                = 0
> 
> I didn't look at the patch very closely because the mail apparently
> never reached v9fs-developer (although it looks in copy), but I got
> pointed out this patch recently:
> http://www.spinics.net/lists/linux-virtualization/msg21716.html

I applied the patch on that page.  Here's my result:

# df -T /lib/modules/3.12.7/kernel              
Filesystem     Type 1K-blocks   Used Available Use% Mounted on
kernel         9p     2015056 721356   1172460  39% /kernel
# uname -r
3.12.7
# modprobe -V
kmod version 16
# lsmod
Module                  Size  Used by
nfsd                  217278  2 
auth_rpcgss            41307  1 nfsd
oid_registry            2179  1 auth_rpcgss
exportfs                3499  1 nfsd
nfs                   111109  0 
...

> Which quotes "This patch enables 9p-virtio to correctly handle this
> case. This not only enables us to load Linux kernel modules off virtfs,"
> 
> Perhaps would it be what you need to support this syscall_313?

Looks like that's the fix.

-- 
 Microsoft has beaten Volkswagen's world record.  Volkswagen only created 22
 million bugs.

      reply	other threads:[~2014-01-11 14:12 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-10  2:35 Wakko Warner
2014-01-10 23:03 ` Wakko Warner
2014-01-11  1:01   ` Randy Dunlap
2014-01-11 12:19     ` [V9fs-developer] " Dominique Martinet
2014-01-11 14:12       ` Wakko Warner [this message]

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=20140111141209.GA26811@animx.eu.org \
    --to=wakko@animx.eu.org \
    --cc=dominique.martinet@cea.fr \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rdunlap@infradead.org \
    --cc=rusty@rustcorp.com.au \
    --cc=v9fs-developer@lists.sourceforge.net \
    --cc=viro@zeniv.linux.org.uk \
    /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

all inboxes | Powered by JetHome®