Bug 863054 - exportfs crash with long path
Summary: exportfs crash with long path
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: nfs-utils
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Steve Dickson
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-10-04 10:39 UTC by Ivan Romanov
Modified: 2012-11-29 06:10 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-11-29 06:10:28 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
patch (333 bytes, patch)
2012-10-04 10:39 UTC, Ivan Romanov
no flags Details | Diff

Description Ivan Romanov 2012-10-04 10:39:04 UTC
Created attachment 621559 [details]
patch

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.

Comment 1 J. Bruce Fields 2012-10-08 14:32:28 UTC
Good catch--would it be possible for you to send this patch upstream?  That would just mean emailing it (together with your explanation) to steved, cc'd to linux-nfs.org.

Comment 2 Ivan Romanov 2012-10-08 14:58:36 UTC
Sure. I will do it.

Comment 3 Ivan Romanov 2012-10-10 09:40:31 UTC
no answer

Comment 4 Steve Dickson 2012-10-11 15:13:56 UTC
(In reply to comment #3)
> no answer
Its on my todo list... thanks for patch...

Comment 5 Fedora Update System 2012-11-08 18:03:12 UTC
nfs-utils-1.2.6-6.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/nfs-utils-1.2.6-6.fc17

Comment 6 Fedora Update System 2012-11-09 17:59:41 UTC
Package nfs-utils-1.2.6-6.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing nfs-utils-1.2.6-6.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-17858/nfs-utils-1.2.6-6.fc17
then log in and leave karma (feedback).

Comment 7 Fedora Update System 2012-11-29 06:10:30 UTC
nfs-utils-1.2.6-6.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.