Can you check if this patch solves the problem?
Daniel
On 04/04/2017 11:43 PM, Satish Chandra Kilaru wrote:
port scanner application is sending junk packets/spurious connections
to my 9P server making it crash.
Apr 1 13:31:16 nfsobjectstore1 rpcbind: connect from 172.19.220.83 to
set(mountd): indirect call not allowed
Apr 1 13:31:54 nfsobjectstore1 kernel: RPC: fragment too large: 1195725856
Apr 1 13:32:04 nfsobjectstore1 kernel: RPC: fragment too large: 1195725856
Apr 1 13:32:25 nfsobjectstore1 kernel: RPC: fragment too large: 1212501072
Apr 1 13:32:28 nfsobjectstore1 kernel: RPC: fragment too large: 1212501072
Apr 1 13:33:20 nfsobjectstore1 ganesha.nfsd: PID 16044, signal 6
(Aborted), address 0x3eac
Apr 1 13:33:20 nfsobjectstore1 ganesha.nfsd: [bt]: (1)
/lib64/libc.so.6(+0x35670) [0x7fbfb092c670]
Apr 1 13:33:20 nfsobjectstore1 ganesha.nfsd: [bt]: (2)
/lib64/libc.so.6(gsignal+0x37) [0x7fbfb092c5f7]
Apr 1 13:33:20 nfsobjectstore1 ganesha.nfsd: [bt]: (3)
/lib64/libc.so.6(abort+0x148) [0x7fbfb092dce8]
Apr 1 13:33:20 nfsobjectstore1 ganesha.nfsd: [bt]: (4)
/lib64/libc.so.6(+0x2e566) [0x7fbfb0925566]
Apr 1 13:33:20 nfsobjectstore1 ganesha.nfsd: [bt]: (5)
/lib64/libc.so.6(+0x2e612) [0x7fbfb0925612]
Apr 1 13:33:20 nfsobjectstore1 ganesha.nfsd: [bt]: (6)
/usr/bin/ganesha.nfsd(get_gsh_client+0x14f) [0x7fbfb2b8547f]
Apr 1 13:33:20 nfsobjectstore1 ganesha.nfsd: [bt]: (7)
/usr/bin/ganesha.nfsd(_9p_socket_thread+0x2d0) [0x7fbfb2b86f40]
Apr 1 13:33:20 nfsobjectstore1 ganesha.nfsd: [bt]: (8)
/lib64/libpthread.so.0(+0x7dc5) [0x7fbfb0ec7dc5]
Apr 1 13:33:20 nfsobjectstore1 ganesha.nfsd: [bt]: (9)
/lib64/libc.so.6(clone+0x6d) [0x7fbfb09ed28d]
It is crashing when getpeername returns ENOTCONN.
_9p_conn.client = get_gsh_client(&_9p_conn.addrpeer, false);
_9p_conn.addrpeer is all zeros. and get_gsh_client() calls assert() when
address family is neither AF_INET nor AF_INET6.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Nfs-ganesha-devel mailing list
Nfs-ganesha-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs-ganesha-devel
diff --git a/src/MainNFSD/9p_dispatcher.c b/src/MainNFSD/9p_dispatcher.c
index ce5bb5c..3943013 100644
--- a/src/MainNFSD/9p_dispatcher.c
+++ b/src/MainNFSD/9p_dispatcher.c
@@ -165,6 +165,7 @@ void *_9p_socket_thread(void *Arg)
/* XXX */
strncpy(strcaller, "(unresolved)", INET6_ADDRSTRLEN);
strcaller[12] = '\0';
+ goto end;
} else {
switch (_9p_conn.addrpeer.ss_family) {
case AF_INET:
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Nfs-ganesha-devel mailing list
Nfs-ganesha-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs-ganesha-devel