Bug 158914 - Un-initialized "device" in ping.c and ping6.c
Un-initialized "device" in ping.c and ping6.c
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: iputils (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Radek Vokal
Mike McLean
Depends On:
Blocks: 156322
  Show dependency treegraph
Reported: 2005-05-26 15:33 EDT by Wendy Cheng
Modified: 2010-10-21 23:02 EDT (History)
1 user (show)

See Also:
Fixed In Version: RHBA-2005-610
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-10-05 11:44:18 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Patch for this issue. (962 bytes, patch)
2005-05-26 15:33 EDT, Wendy Cheng
no flags Details | Diff

  None (edit)
Description Wendy Cheng 2005-05-26 15:33:36 EDT
Created attachment 114881 [details]
Patch for this issue.
Comment 1 Wendy Cheng 2005-05-26 15:33:36 EDT
Description of problem:

The problem was first reported as an IA64 kernel issue where the message of
"unaligned access" is written in /var/log/messages when ping & ping6 is executed as:
   ipf03 kernel: ping(4893): unaligned access to 0x60000fffffffbbd6,
ipf03 kernel: ping6(8196): unaligned access to 0x60000fffffffbbd5,
Further looking into the issue, it was found the messages were generated by user
mode option passed into sock_setsockopt() kernel call. This led to the
un-initialized "device" global in ping.c and ping6.c.
Patch also uploaded - drafted by me and tested out by the customer.

Version-Release number of selected component (if applicable):

How reproducible:
Sometimes - depending on whatever garbage value stays in the "device" variable. 
Steps to Reproduce:
* Execute ping command with -I option.
    #ping -I eth0

Actual results:
* Look at /var/log/messages
  #view /var/log/messages
  ipf03 kernel: ping(4893): unaligned access to 0x60000fffffffbbd6,

Expected results:
No error messages in /var/log/messages file.

Additional info:
Though symptom are easily shown up in IA64 machines, this is not arch-dependent bug.
Comment 8 Red Hat Bugzilla 2005-10-05 11:44:18 EDT
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 the 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.


Note You need to log in before you can comment on or make changes to this bug.