All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ian Kent <raven@themaw.net>
To: "Dennis Lan (dlan)" <dennis.yxun@gmail.com>
Cc: autofs mailing list <autofs@vger.kernel.org>
Subject: Re: [PATCH 0/5] fyi, here are the patches that I haven't yet committed
Date: Fri, 27 Dec 2013 16:56:53 +0800	[thread overview]
Message-ID: <1388134613.2623.7.camel@perseus.fritz.box> (raw)
In-Reply-To: <CAF1ZMEdRhy5LcfEwUW3Os5M8nKXT1j2+M4oqOKgqF3sjLPyWpw@mail.gmail.com>

On Fri, 2013-12-27 at 15:30 +0800, Dennis Lan (dlan) wrote:
> sorry, I was not accurate about the failure cases.
> 
> using commit ec267c2c406256e401540e5bc890b2e0c2ff6c35
> 
> snip from file /etc/autofs/auto.misc
> mkynfs -ro,soft,intr,nfsvers=3 192.168.90.12:/home/dennis
> mkydns -ro,soft,intr,nfsvers=4 mickeycn:/home/dennis
> 
> with libtirpc enabled (all other features disabled),[1]
> "ls /mnt/misc/mkynfs" lead to automount segfault
> "ls /mnt/misc/mkydns" automount fail (no crash), but report "no hosts available"

Right, I think I've worked out the issue with this second case.
I'll push my recent changes to autofs-5.0.public once I've had a look at
the segfault issue.

> 
> with libtirpc disabled (all other features disabled)[2]
> "ls /mnt/misc/mkynfs" automount fail (no crash), report "no hosts available"
> "ls /mnt/misc/mkydns" works fine

Mmmm .. I'll need to duplicate this and have a look.
The libtirpc disabled case shouldn't really have changed ....

Let me work through these logs and see if I can spot anything obvious.

> 
> [1]
> Dec 27 15:08:19 ofire automount[32570]: handle_packet: type = 3
> Dec 27 15:08:19 ofire automount[32570]:
> handle_packet_missing_indirect: token 106, name mkydns, request pid
> 32583
> Dec 27 15:08:19 ofire automount[32570]: attempting to mount entry
> /mnt/misc/mkydns
> Dec 27 15:08:19 ofire automount[32570]: lookup_mount: lookup(file):
> looking up mkydns
> Dec 27 15:08:19 ofire automount[32570]: lookup_mount: lookup(file):
> mkydns -> -ro,soft,intr,nfsvers=4 mickeycn:/home/dennis
> Dec 27 15:08:19 ofire automount[32570]: parse_mount: parse(sun):
> expanded entry: -ro,soft,intr,nfsvers=4 mickeycn:/home/dennis
> Dec 27 15:08:19 ofire automount[32570]: parse_mount: parse(sun):
> gathered options: ro,soft,intr,nfsvers=4
> Dec 27 15:08:19 ofire automount[32570]: parse_mount: parse(sun):
> dequote("mickeycn:/home/dennis") -> mickeycn:/home/dennis
> Dec 27 15:08:19 ofire automount[32570]: parse_mount: parse(sun): core
> of entry: options=ro,soft,intr,nfsvers=4, loc=mickeycn:/home/dennis
> Dec 27 15:08:19 ofire automount[32570]: sun_mount: parse(sun):
> mounting root /mnt/misc, mountpoint mkydns, what
> mickeycn:/home/dennis, fstype nfs, options ro,soft,intr,nfsvers=4
> Dec 27 15:08:19 ofire automount[32570]: mount_mount: mount(nfs):
> root=/mnt/misc name=mkydns what=mickeycn:/home/dennis, fstype=nfs,
> options=ro,soft,intr,nfsvers=4
> Dec 27 15:08:19 ofire automount[32570]: mount_mount: mount(nfs): nfs
> options="ro,soft,intr,nfsvers=4", nobind=0, nosymlink=0, ro=1
> Dec 27 15:08:19 ofire automount[32570]: get_nfs_info: called with host
> mickeycn(192.168.90.12) proto 6 version 0x40
> Dec 27 15:08:19 ofire automount[32570]: mount(nfs): no hosts available
> Dec 27 15:08:19 ofire automount[32570]: dev_ioctl_send_fail: token = 106
> Dec 27 15:08:19 ofire automount[32570]: failed to mount /mnt/misc/mkydns
> Dec 27 15:08:19 ofire automount[32570]: handle_packet: type = 3
> Dec 27 15:08:19 ofire automount[32570]:
> handle_packet_missing_indirect: token 107, name mkydns, request pid
> 32583
> Dec 27 15:08:19 ofire automount[32570]: dev_ioctl_send_fail: token = 107
> Dec 27 15:08:26 ofire automount[32570]: st_expire: state 1 path /net
> Dec 27 15:08:26 ofire automount[32570]: expire_proc: exp_proc =
> 140502330578688 path /net
> Dec 27 15:08:26 ofire automount[32570]: expire_cleanup: got thid
> 140502330578688 path /net stat 0
> Dec 27 15:08:26 ofire automount[32570]: expire_cleanup: sigchld: exp
> 140502330578688 finished, switching from 2 to 1
> Dec 27 15:08:26 ofire automount[32570]: st_ready: st_ready(): state =
> 2 path /net
> Dec 27 15:08:26 ofire automount[32570]: handle_packet: type = 3
> Dec 27 15:08:26 ofire automount[32570]:
> handle_packet_missing_indirect: token 108, name mkynfs, request pid
> 32586
> Dec 27 15:08:26 ofire automount[32570]: attempting to mount entry
> /mnt/misc/mkynfs
> Dec 27 15:08:26 ofire automount[32570]: lookup_mount: lookup(file):
> looking up mkynfs
> Dec 27 15:08:26 ofire automount[32570]: lookup_mount: lookup(file):
> mkynfs -> -ro,soft,intr,nfsvers=3 192.168.90.12:/home/dennis
> Dec 27 15:08:26 ofire automount[32570]: parse_mount: parse(sun):
> expanded entry: -ro,soft,intr,nfsvers=3 192.168.90.12:/home/dennis
> Dec 27 15:08:26 ofire automount[32570]: parse_mount: parse(sun):
> gathered options: ro,soft,intr,nfsvers=3
> Dec 27 15:08:26 ofire automount[32570]: parse_mount: parse(sun):
> dequote("192.168.90.12:/home/dennis") -> 192.168.90.12:/home/dennis
> Dec 27 15:08:26 ofire automount[32570]: parse_mount: parse(sun): core
> of entry: options=ro,soft,intr,nfsvers=3,
> loc=192.168.90.12:/home/dennis
> Dec 27 15:08:26 ofire automount[32570]: sun_mount: parse(sun):
> mounting root /mnt/misc, mountpoint mkynfs, what
> 192.168.90.12:/home/dennis, fstype nfs, options ro,soft,intr,nfsvers=3
> Dec 27 15:08:26 ofire automount[32570]: mount_mount: mount(nfs):
> root=/mnt/misc name=mkynfs what=192.168.90.12:/home/dennis,
> fstype=nfs, options=ro,soft,intr,nfsvers=3
> Dec 27 15:08:26 ofire automount[32570]: mount_mount: mount(nfs): nfs
> options="ro,soft,intr,nfsvers=3", nobind=0, nosymlink=0, ro=1
> Dec 27 15:08:26 ofire automount[32570]: get_nfs_info: called with host
> 192.168.90.12(192.168.90.12) proto 6 version 0x20
> Dec 27 15:08:26 ofire automount[32570]: get_nfs_info: called with host
> 192.168.90.12(192.168.90.12) proto 17 version 0x20
> Dec 27 15:08:26 ofire kernel: [20427.317530] automount[32587]:
> segfault at 0 ip           (null) sp 00007fc93f808c88 error 14
> 
> 
> [2] log
> Dec 27 15:16:52 ofire automount[3879]: st_expire: state 1 path /net
> Dec 27 15:16:52 ofire automount[3879]: expire_proc: exp_proc =
> 139809608951552 path /net
> Dec 27 15:16:52 ofire automount[3879]: expire_cleanup: got thid
> 139809608951552 path /net stat 0
> Dec 27 15:16:52 ofire automount[3879]: expire_cleanup: sigchld: exp
> 139809608951552 finished, switching from 2 to 1
> Dec 27 15:16:52 ofire automount[3879]: st_ready: st_ready(): state = 2 path /net
> Dec 27 15:16:53 ofire automount[3879]: handle_packet: type = 3
> Dec 27 15:16:53 ofire automount[3879]: handle_packet_missing_indirect:
> token 119, name mkydns, request pid 3898
> Dec 27 15:16:53 ofire automount[3879]: attempting to mount entry
> /mnt/misc/mkydns
> Dec 27 15:16:53 ofire automount[3879]: lookup_mount: lookup(file):
> looking up mkydns
> Dec 27 15:16:53 ofire automount[3879]: lookup_mount: lookup(file):
> mkydns -> -ro,soft,intr,nfsvers=4 mickeycn:/home/dennis
> Dec 27 15:16:53 ofire automount[3879]: parse_mount: parse(sun):
> expanded entry: -ro,soft,intr,nfsvers=4 mickeycn:/home/dennis
> Dec 27 15:16:53 ofire automount[3879]: parse_mount: parse(sun):
> gathered options: ro,soft,intr,nfsvers=4
> Dec 27 15:16:53 ofire automount[3879]: parse_mount: parse(sun):
> dequote("mickeycn:/home/dennis") -> mickeycn:/home/dennis
> Dec 27 15:16:53 ofire automount[3879]: parse_mount: parse(sun): core
> of entry: options=ro,soft,intr,nfsvers=4, loc=mickeycn:/home/dennis
> Dec 27 15:16:53 ofire automount[3879]: sun_mount: parse(sun): mounting
> root /mnt/misc, mountpoint mkydns, what mickeycn:/home/dennis, fstype
> nfs, options ro,soft,intr,nfsvers=4
> Dec 27 15:16:53 ofire automount[3879]: mount_mount: mount(nfs):
> root=/mnt/misc name=mkydns what=mickeycn:/home/dennis, fstype=nfs,
> options=ro,soft,intr,nfsvers=4
> Dec 27 15:16:53 ofire automount[3879]: mount_mount: mount(nfs): nfs
> options="ro,soft,intr,nfsvers=4", nobind=0, nosymlink=0, ro=1
> Dec 27 15:16:53 ofire automount[3879]: get_nfs_info: called with host
> mickeycn(192.168.90.12) proto 6 version 0x40
> Dec 27 15:16:53 ofire automount[3879]: get_nfs_info: nfs v4 rpc ping
> time: 0.000599
> Dec 27 15:16:53 ofire automount[3879]: get_nfs_info: host mickeycn
> cost 598 weight 0
> Dec 27 15:16:53 ofire automount[3879]: prune_host_list: selected
> subset of hosts that support NFS4 over TCP
> Dec 27 15:16:53 ofire automount[3879]: mount_mount: mount(nfs):
> calling mkdir_path /mnt/misc/mkydns
> Dec 27 15:16:53 ofire automount[3879]: mount_mount: mount(nfs):
> calling mount -t nfs -s -o ro,soft,intr,nfsvers=4
> mickeycn:/home/dennis /mnt/misc/mkydns
> Dec 27 15:16:53 ofire automount[3879]: mount_mount: mount(nfs):
> mounted mickeycn:/home/dennis on /mnt/misc/mkydns
> Dec 27 15:16:53 ofire automount[3879]: dev_ioctl_send_ready: token = 119
> Dec 27 15:16:53 ofire automount[3879]: mounted /mnt/misc/mkydns
> Dec 27 15:17:00 ofire automount[3879]: st_expire: state 1 path /net
> Dec 27 15:17:00 ofire automount[3879]: expire_proc: exp_proc =
> 139809608951552 path /net
> Dec 27 15:17:00 ofire automount[3879]: expire_cleanup: got thid
> 139809608951552 path /net stat 0
> Dec 27 15:17:00 ofire automount[3879]: expire_cleanup: sigchld: exp
> 139809608951552 finished, switching from 2 to 1
> Dec 27 15:17:00 ofire automount[3879]: st_ready: st_ready(): state = 2 path /net
> Dec 27 15:17:08 ofire automount[3879]: st_expire: state 1 path /net
> Dec 27 15:17:08 ofire automount[3879]: expire_proc: exp_proc =
> 139809608951552 path /net
> Dec 27 15:17:08 ofire automount[3879]: expire_cleanup: got thid
> 139809608951552 path /net stat 0
> Dec 27 15:17:08 ofire automount[3879]: expire_cleanup: sigchld: exp
> 139809608951552 finished, switching from 2 to 1
> Dec 27 15:17:08 ofire automount[3879]: st_ready: st_ready(): state = 2 path /net
> Dec 27 15:17:16 ofire automount[3879]: st_expire: state 1 path /net
> Dec 27 15:17:16 ofire automount[3879]: expire_proc: exp_proc =
> 139809608951552 path /net
> Dec 27 15:17:16 ofire automount[3879]: expire_cleanup: got thid
> 139809608951552 path /net stat 0
> Dec 27 15:17:16 ofire automount[3879]: expire_cleanup: sigchld: exp
> 139809608951552 finished, switching from 2 to 1
> Dec 27 15:17:16 ofire automount[3879]: st_ready: st_ready(): state = 2 path /net
> Dec 27 15:17:17 ofire automount[3879]: handle_packet: type = 3
> Dec 27 15:17:17 ofire automount[3879]: handle_packet_missing_indirect:
> token 120, name mkynfs, request pid 3918
> Dec 27 15:17:17 ofire automount[3879]: attempting to mount entry
> /mnt/misc/mkynfs
> Dec 27 15:17:17 ofire automount[3879]: lookup_mount: lookup(file):
> looking up mkynfs
> Dec 27 15:17:17 ofire automount[3879]: lookup_mount: lookup(file):
> mkynfs -> -ro,soft,intr,nfsvers=3 192.168.90.12:/home/dennis
> Dec 27 15:17:17 ofire automount[3879]: parse_mount: parse(sun):
> expanded entry: -ro,soft,intr,nfsvers=3 192.168.90.12:/home/dennis
> Dec 27 15:17:17 ofire automount[3879]: parse_mount: parse(sun):
> gathered options: ro,soft,intr,nfsvers=3
> Dec 27 15:17:17 ofire automount[3879]: parse_mount: parse(sun):
> dequote("192.168.90.12:/home/dennis") -> 192.168.90.12:/home/dennis
> Dec 27 15:17:17 ofire automount[3879]: parse_mount: parse(sun): core
> of entry: options=ro,soft,intr,nfsvers=3,
> loc=192.168.90.12:/home/dennis
> Dec 27 15:17:17 ofire automount[3879]: sun_mount: parse(sun): mounting
> root /mnt/misc, mountpoint mkynfs, what 192.168.90.12:/home/dennis,
> fstype nfs, options ro,soft,intr,nfsvers=3
> Dec 27 15:17:17 ofire automount[3879]: mount_mount: mount(nfs):
> root=/mnt/misc name=mkynfs what=192.168.90.12:/home/dennis,
> fstype=nfs, options=ro,soft,intr,nfsvers=3
> Dec 27 15:17:17 ofire automount[3879]: mount_mount: mount(nfs): nfs
> options="ro,soft,intr,nfsvers=3", nobind=0, nosymlink=0, ro=1
> Dec 27 15:17:17 ofire automount[3879]: get_nfs_info: called with host
> 192.168.90.12(192.168.90.12) proto 6 version 0x20
> Dec 27 15:17:17 ofire automount[3879]: get_nfs_info: called with host
> 192.168.90.12(192.168.90.12) proto 17 version 0x20
> Dec 27 15:17:20 ofire automount[3879]: mount(nfs): no hosts available
> Dec 27 15:17:20 ofire automount[3879]: dev_ioctl_send_fail: token = 120
> Dec 27 15:17:20 ofire automount[3879]: failed to mount /mnt/misc/mkynfs
> Dec 27 15:17:20 ofire automount[3879]: handle_packet: type = 3
> Dec 27 15:17:20 ofire automount[3879]: handle_packet_missing_indirect:
> token 121, name mkynfs, request pid 3918
> Dec 27 15:17:20 ofire automount[3879]: dev_ioctl_send_fail: token = 121
> Dec 27 15:17:24 ofire automount[3879]: st_expire: state 1 path /net
> Dec 27 15:17:24 ofire automount[3879]: expire_proc: exp_proc =
> 139809608951552 path /net
> Dec 27 15:17:24 ofire automount[3879]: expire_cleanup: got thid
> 139809608951552 path /net stat 0
> Dec 27 15:17:24 ofire automount[3879]: expire_cleanup: sigchld: exp
> 139809608951552 finished, switching from 2 to 1
> Dec 27 15:17:24 ofire automount[3879]: st_ready: st_ready(): state = 2 path /net
> Dec 27 15:17:32 ofire automount[3879]: st_expire: state 1 path /net
> Dec 27 15:17:32 ofire automount[3879]: expire_proc: exp_proc =
> 139809608951552 path /net
> Dec 27 15:17:32 ofire automount[3879]: expire_cleanup: got thid
> 139809608951552 path /net stat 0
> Dec 27 15:17:32 ofire automount[3879]: expire_cleanup: sigchld: exp
> 139809608951552 finished, switching from 2 to 1
> Dec 27 15:17:32 ofire automount[3879]: st_ready: st_ready(): state = 2 path /net
> Dec 27 15:17:40 ofire automount[3879]: st_expire: state 1 path /net
> Dec 27 15:17:40 ofire automount[3879]: expire_proc: exp_proc =
> 139809608951552 path /net
> Dec 27 15:17:40 ofire automount[3879]: expire_cleanup: got thid
> 139809608951552 path /net stat 0
> Dec 27 15:17:40 ofire automount[3879]: expire_cleanup: sigchld: exp
> 139809608951552 finished, switching from 2 to 1
> Dec 27 15:17:40 ofire automount[3879]: st_ready: st_ready(): state = 2 path /net



  reply	other threads:[~2013-12-27  8:56 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-24  8:02 [PATCH 0/5] fyi, here are the patches that I haven't yet committed Ian Kent
2013-12-24  8:02 ` [PATCH 1/5] autofs-5.0.8 - fix ipv6 link local address handling Ian Kent
2013-12-24  8:02 ` [PATCH 2/5] autofs-5.0.8 - fix fix ipv6 libtirpc getport Ian Kent
2013-12-24  8:02 ` [PATCH 3/5] autofs-5.0.8 - get_nfs_info() should query portmapper if port is not given Ian Kent
2013-12-24  8:02 ` [PATCH 4/5] autofs-5.0.8 - fix rpc_portmap_getport() proto not set Ian Kent
2013-12-24  8:02 ` [PATCH 5/5] autofs-5.0.8 - fix options compare Ian Kent
2013-12-24  8:38 ` [PATCH 0/5] fyi, here are the patches that I haven't yet committed Dennis Lan (dlan)
2013-12-24  9:04   ` Ian Kent
2013-12-24  9:42     ` Dennis Lan (dlan)
2013-12-24 10:34       ` Ian Kent
2013-12-27  6:11         ` Dennis Lan (dlan)
2013-12-27  6:36           ` Dennis Lan (dlan)
2013-12-27  7:30             ` Dennis Lan (dlan)
2013-12-27  8:56               ` Ian Kent [this message]
2013-12-28  2:41                 ` Ian Kent
2013-12-28 12:09                   ` Dennis Lan (dlan)
2013-12-29 11:14                     ` Ian Kent
2013-12-29 11:26                       ` Ian Kent
2013-12-30  7:38                         ` Dennis Lan (dlan)
2013-12-29 11:36               ` Ian Kent
2013-12-30  7:44                 ` Dennis Lan (dlan)
2013-12-27  8:50             ` Ian Kent

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=1388134613.2623.7.camel@perseus.fritz.box \
    --to=raven@themaw.net \
    --cc=autofs@vger.kernel.org \
    --cc=dennis.yxun@gmail.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.