Description of problem: The mount program will segfault if mounting an nfs mount using version 3 of the nfs rpc program but version 2 of the mount rpc program mount -t nfs -o nfsvers=3,mountvers=2 rxi600-4:/work /mnt/work Segmentation fault (core dumped) Version-Release number of selected component (if applicable): mount program from util-linux-2.12a How reproducible: always Steps to Reproduce: 1.mount -t nfs -o nfsvers=3,mountvers=2 <nfs server>:<exported path> <local path> Actual results: segfault Expected results: successful mount Additional info:
Created attachment 125032 [details] patch to correct mount behavior in util-linux-2.12a problem turns out to be in nfsmount. The segfault occurs because we try to dereference the authentication flavors array, which is returned as NULL. This is occuring because we are trying to use the mount rpc program version 3 algorithm to process a mount when we requested the mount to be preformed using mount rpc program version 2. This in turn is because when we check the return data from the rpc call, we select which algorithm we use based on the nfs rpc program, rather than on the mount rpc version, which we should. I've written the attached patch to correct this behavior. Tested and found working by me.
Steve, check the patch, please. Thanks.
Fixed in util-linux-2.12a-16.EL4.17
*** Bug 197715 has been marked as a duplicate of this bug. ***
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2006-0406.html