From f6da27e53695ad1cc0e2a9490358decbbfdff5e5 Mon Sep 17 00:00:00 2001 From: Peng Haitao Date: Mon, 19 Nov 2012 01:53:07 -0500 Subject: bindresvport() uses two static variables port and startport which are not protected. It is not safe when in multithread circumstance. bindresvport() select a port number from the range 512 to 1023, when in multithread circumstance, the port may be 1024. So the static variables will be protected. Signed-off-by: Peng Haitao Reviewed-by: Carlos O'Donell --- ChangeLog | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 63e00edcb1..8f2f6d221c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2012-11-19 Peng Haitao + + [BZ #13763] + * sunrpc/bindrsvprt.c: Add lock to protect static variable. + 2012-11-19 Steve McIntyre * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro. -- cgit v1.2.3