Red Hat Bugzilla – Bug 676242
thread race on UDP socket_send()
Last modified: 2012-07-11 03:19:43 EDT
Created attachment 477752 [details]
Description of problem:
socket_send() operation must invoke LOCK(&sock->lock) to take lock during the procedure on UDP. Without it, socket_send()->doio_send() is invoked in multiple threads, causing the following error to show up:
Jan xx xx:xx:xx xxx named[xxxx]: zone xxx.xxx.xxx.in-addr.arpa/IN: refresh: failure trying master xxx.xxx.xxx.xxx#53 (source xxx.xxx.xxx.xxx#0): operation canceled
Version-Release number of selected component (if applicable):
Steps to Reproduce:
(Reference from the vendor's report)
Please set up the configuration of named by using attached sample files.
Please refer following example operations.
a. install the named configuration
Please use the attached archive file named_config_files.tgz.
Following files are included in this archive file.
etc/init.d/named-prv -> /etc/namedb-prv/named-prv
etc/init.d/named-wgw -> /etc/namedb-wgw/named-wgw
usr/sbin/named-prv -> named
usr/sbin/named-wgw -> named
b. customize configurations for named
Please verify configurations( /etc/namedb-prv/* and /etc/namedb-wgw/*)
and customize each /etc/namedb-prv/named.conf and /etc/namedb-wgw/named.conf.
Especially, you should verify and customize ip addresses.
c. set up named service
Please execute following operation to set up
each named-prv and named-wgw service.
# cd /
# tar xvzf named_config_files.tgz
# chkconfig --add named-prv
# chkconfig --add named-wgw
# chkconfig --levels 2345 named-prv on
# chkconfig --levels 2345 named-wgw on
d. customize named debug options
- iｎｉｔ script for named(/etc/init.d/xxx)
Please verify the installed script files(/etc/init.d/named-prv, /etc/init.d/named-wgw)
If you need to set up the debug-level option of named,
please change the daemon command line as follows:
daemon /usr/sbin/$prog -c $conffile
-> daemon /usr/sbin/$prog -d 99 -c $conffile
- logging paragraph of the named.conf
Please confirm and customize the logging paragraph of the
/etc/namedb-prv/named.conf and /etc/namedb-wgw/named.conf.
Regaeding attached sample named.conf files, debug log files are as follows:
- /var/log/named-prv_debug for named-prv
- /var/log/named-wgw_debug for named-wgw
e. start both named-prv and named-wgw services
# service named-prv start
# service named-wgw start
Operation cancelled error appears.
The error should not appear.
Created attachment 516761 [details]
Improved patch which doesn't affect performance of named.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.