diff options
author | Vivek Trivedi <t.vivek@samsung.com> | 2015-09-16 11:14:03 -0400 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2015-09-16 11:21:41 -0400 |
commit | 78240c41be17bd20d5fb5b70b6f470d8e779adee (patch) | |
tree | 3d536a6aeabb58d3cd9812bc456223a3e0829cad /support/nfs/mydaemon.c | |
parent | a4def734f7b9601c9ce89f18841aadf7a1962063 (diff) | |
download | nfs-utils-78240c41be17bd20d5fb5b70b6f470d8e779adee.tar.gz nfs-utils-78240c41be17bd20d5fb5b70b6f470d8e779adee.tar.xz nfs-utils-78240c41be17bd20d5fb5b70b6f470d8e779adee.zip |
mountd: fix mount issue due to comparison with uninitialized uuid
Fix mount issue due to comparison of uninitialized variable
u(uuid) with parsed->fhuuid when uuid_by_path return 0.
/tmp/usb
192.168.1.0/16(ro,no_root_squash,no_subtree_check,fsid=0)
/tmp/usb/sda1 192.168.1.0/16(ro,no_root_squash,no_subtree_check)
/tmp/usb/sdb1 192.168.1.0/16(ro,no_root_squash,no_subtree_check)
mount -t nfs -o nolock,nfsvers=3 192.168.1.2:/tmp/usb/sda1 /tmp/sda1
mount -t nfs -o nolock,nfsvers=3 192.168.1.2:/tmp/usb/sdb1 /tmp/sdb1
results in below mountd error:
mountd: /tmp/usb and /tmp/usb/sdb1 have same filehandle for
192.168.1.0/16, using first
when uuid_by_path returned 0, by chance, garbage value of u was same as
parsed->fhuuid(of sdb1), and comparison of these resulted in above
error.
Signed-off-by: Vivek Trivedi <t.vivek@samsung.com>
Reviewed-by: Amit Sahrawat <a.sahrawat@samsung.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'support/nfs/mydaemon.c')
0 files changed, 0 insertions, 0 deletions