Red Hat Bugzilla – Bug 502822
OOPS in "inet_select_addr" on ICMP when "icmp_errors_use_inbound_ifaddr" is turned on
Last modified: 2015-05-04 21:16:56 EDT
Created attachment 345596 [details]
Description of problem:
Kernel occasionally panics in "inet_select_addr" on multihomed host when sending ICMP from ipt_REJECT target when "/proc/sys/net/ipv4/icmp_errors_use_inbound_ifaddr" option is turned on.
More details are here: http://email@example.com/msg38276.html
When an inbound interface cannot be determined, ICMP function tries to inet_select_addr with NULL interface pointer. This leads to a panic.
Version-Release number of selected component (if applicable):
Probably any of the RHEL5 kernels, including latest 2.6.18-128.10.1
Enable "/proc/sys/net/ipv4/icmp_errors_use_inbound_ifaddr" on multihomed host with networks, NAT and lots of iptables rules including REJECT. Create heavy network traffic, including the one matching REJECTs. Wait for a crash.
Kernel panic in "inet_select_addr".
Works okay, packets are sent from zero outgoing address if there is no inbound interface, and routing decides outgoing address for ICMP (right behavior for 2.6.24 and up).
I'm attaching code fix backported from latest 2.6.29 (Linus branch). The same code is used in 2.6.24, so we may safely assume it is correct.
Commits fix is found in:
I made a test build which includes a backport of fix for this issue. Could you please test it to confirm it fixes the issue. RPMs are here:
Let me know if you need RPM for any other arch.
I compiled the 128.1.10 kernel myself, and it works okay for 5 days already.
So if it is the same backport, we may assume all is OK.
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release. Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products. This request is not yet committed for inclusion in an Update
You can download this test kernel from http://people.redhat.com/dzickus/el5
Please do NOT transition this bugzilla state to VERIFIED until our QE team
has sent specific instructions indicating when to do so. However feel free
to provide a comment indicating that this fix has been verified.
~~ Attention Customers and Partners - RHEL 5.5 Beta is now available on RHN ~~
RHEL 5.5 Beta has been released! There should be a fix present in this
release that addresses your request. Please test and report back results
here, by March 3rd 2010 (2010-03-03) or sooner.
Upon successful verification of this request, post your results and update
the Verified field in Bugzilla with the appropriate value.
If you encounter any issues while testing, please describe them and set
this bug into NEED_INFO. If you encounter new defects or have additional
patch(es) to request for inclusion, please clone this bug per each request
and escalate through your support representative.
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 therefore 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.
Somehow I have needinfo request for this. Replying just to clear it.