Fixed segfault in rpc.mountd
Subsystems (2)
PATCH 1/1 Fixed segfault in rpc.mountd
A unallocated piece of memory, instead of a NULL point, was being used to initialize a ->next point in the mount link list which caused a segfault after a few remote accesses via the showmount command.
--- utils/mountd/rmtab.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
utils/mountd/rmtab.c +1 -0
@@ -205,6 +205,7 @@ mountlist_list(void) }if (stb.st_mtime != last_mtime) {mountlist_freeall (mlist); + mlist =NULL ; last_mtime = stb.st_mtime;setrmtabent ("r" );
Signature · 1 line
1.7.3.3
Quoted 4 lines · Steve Dickson
A unallocated piece of memory, instead of a NULL point, was being used to initialize a ->next point in the mount link list which caused a segfault after a few remote accesses via the showmount command.
I thought there was a patch on the list just like this last week... in any event:
Quoted 18 lines
Signed-off-by Steve Dickson <[email protected]>---
utils/mountd/rmtab.c| 1 +1 files changed, 1 insertions(+), 0 deletions(-)utils/mountd/rmtab.c +1
-0@@ -205,6 +205,7 @@ mountlist_list(void) }if (stb.st_mtime != last_mtime) {mountlist_freeall (mlist); + mlist =NULL ; last_mtime = stb.st_mtime;setrmtabent ("r" );
Signature · 2 lines
Chuck Lever chuck[dot]lever[at]oracle[dot]com
Quoted 11 lines · Chuck Lever
Quoted 4 lines · Steve Dickson
A unallocated piece of memory, instead of a NULL point, was being used to initialize a ->next point in the mount link list which caused a segfault after a few remote accesses via the showmount command.
I thought there was a patch on the list just like this last week... in any event:
Reviewed-by Chuck Lever <[email protected]>
Thanks!
steved.
Quoted 21 lines
Quoted 20 lines
Signed-off-by Steve Dickson <[email protected]>---
utils/mountd/rmtab.c| 1 +1 files changed, 1 insertions(+), 0 deletions(-)utils/mountd/rmtab.c +1
-0@@ -205,6 +205,7 @@ mountlist_list(void) }if (stb.st_mtime != last_mtime) {mountlist_freeall (mlist); + mlist =NULL ; last_mtime = stb.st_mtime;setrmtabent ("r" );
Quoted 15 lines · Steve Dickson
A unallocated piece of memory, instead of a NULL point, was being used to initialize a ->next point in the mount link list which caused a segfault after a few remote accesses via the showmount command.
Signed-off-by Steve Dickson <[email protected]>--- utils/mountd/rmtab.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)utils/mountd/rmtab.c +0
-0
utils/mountd/rmtab.c mountlist_list(void) · line 211
Quoted 7 lines
utils/mountd/rmtab.c +1
-0@@ -205,6 +205,7 @@ mountlist_list(void) }if (stb.st_mtime != last_mtime) {mountlist_freeall (mlist); + mlist =NULL ; last_mtime = stb.st_mtime;setrmtabent ("r" );
Committed....
steved.