[Bug 1062022] Re: exportfs crash with long path

Launchpad Bug Tracker 1062022 at bugs.launchpad.net
Sat Jun 1 02:10:32 UTC 2013


This bug was fixed in the package nfs-utils - 1:1.2.8-2ubuntu1

---------------
nfs-utils (1:1.2.8-2ubuntu1) saucy; urgency=low

  [ Stéphane Graber ]
  * Merge from Debian unstable.
    - includes upstream fix for gssd -R.  LP: #1179992.
    - includes upstream fix for an exportfs crash when using long paths.
      LP: #1062022.
  * Remaining changes:
    - debian/nfs-common.{statd,statd-mounting,gssd,idmapd}.upstart,
      debian/control, debian/nfs-common.{preinst,postinst,prerm,postrm},
      debian/rules: drop nfs-common init script in favor of upstart jobs,
      and build-depend on debhelper (>= 7.3.15ubuntu3) for correct upstart
      init handling.
    - Depend on rpcbind (>= 0.2.0-6ubuntu1) for upstart support.
    - debian/nfs-kernel-server.postinst: don't call "invoke-rc.d nfs-common"
      in the postinst, this is redundant anyway and the nfs-common init script
      is gone now.
    - nfs-kernel-server.init: Unmount nfsd fs when init script stops
    - Allow issuing options to rpc.nfsd
    - debian/nfs-common.defaults: always start idmapd automatically; drop
      the configuration option.
    - Move /var/lib/nfs/rpc_pipefs to /run/rpc_pipefs.  This does not belong
      in /var/lib.
    - Add "-e" (ticket expiry is error) option to rpc.gssd to prevent hangs due
      to EKEYEXPIRED error from kernel on ticket expiry. LP: #794112
    - Adjust upstart jobs to treat TYPE=nfs and TYPE=nfs4 mounts identically,
      since TYPE=nfs4 is considered deprecated.
    - Fix various boot-time race conditions between mountall and nfs-utils by
      moving handling of the 'mounting' events to separate gssd-mounting and
      idmapd-mounting jobs.  Requires mountall 2.41 or better to avoid deadlock
      on boot.  LP: #643289, LP: #611397.
    - Fix the stop conditions: never stop on 'runlevel [06]' since that gives
      the system no time to cleanly unmount nfs mounts; instead, stop only on
      the unmounted-remote-filesystems event.  LP: #569094.
    - Newer versions of gssd don't talk to portmap, so don't make the upstart
      job depend on it.
    - Add an instance to statd-mounting, and change it to just wait for statd
      instead of trying to trigger it potentially out of order.  This also
      means we don't need to try to force portmap to start from statd.

  [ Steve Langasek ]
  * Build --with-gssglue; linking directly against libgssapi-krb5 results in
    rpc.gssd trying to incorrectly pass opaque pointers between two different
    gss implementations (via libtirpc).

nfs-utils (1:1.2.8-2) unstable; urgency=medium

  * Fix reportbug scripts to use rpcinfo in /usr/sbin.
  * Add id_resolver.conf to fix nfsidmap invocation
    (Closes: #708156, #638157, #707960).
  * Remove autogenerated roff as nfsdcltrack.man is meant to be used
    as the actual source according to author (Closes: #707908).

nfs-utils (1:1.2.8-1) unstable; urgency=low

  * New upstream version (Closes: #707258).
    - Only amend extra-options on a successful vers=4 mount
      (Closes: #690181).
    - Use default domain (Closes: #657188).
    - Fix is-subdirectory to understand '/' (Closes: #685306).
    - Drop 18-osd_login-sbindir: incorporated upstream.
    - Avoid DNS reverse lookups on server names (Closes: #707401).
    - auth_unix_ip should downcall on error (Closes: #682709).
    - Refresh 11-532048-reduce-verbosity.
  * Use rpcbind's rpcinfo everywhere (Closes: #707589).
  * Add nfsdcltrack to nfs-kernel-server.
  * Add libsqlite3-dev build dependency for nfsdcltrack.
  * Do not try to install dropped ChangeLog.
  * Adjust version of replaces due to manpage move.
 -- Steve Langasek <steve.langasek at ubuntu.com>   Fri, 31 May 2013 18:05:03 -0700

** Changed in: nfs-utils (Ubuntu)
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to nfs-utils in Ubuntu.
https://bugs.launchpad.net/bugs/1062022

Title:
  exportfs crash with long path

Status in “nfs-utils” package in Ubuntu:
  Fix Released

Bug description:
  How reproducible:
  always

  Steps to Reproduce:
  # mkdir -p /home/kudinae/Общедоступные
  # echo '/home/kudinae/Общедоступные oek-1(rw,sync,no_wdelay,no_root_squash,no_subtree_check)' > /etc/exports
  # exportfs -a
  Segmentation fault

  I've obtained the sources. So a crush happens on export.c:293. variable pos has negative value. I think problem into strtoint and export_hash functions. strtoint has unsigned type and always returns positive value but export_hash impicity cast it to signed int. So it is possible to get negative value. 
  I wrote patch to fix this.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nfs-utils/+bug/1062022/+subscriptions




More information about the foundations-bugs mailing list