diff options
author | David S. Miller <davem@davemloft.net> | 2011-03-03 21:38:01 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-03-03 21:38:01 +0300 |
commit | 06dc94b1ed05f91e246315afeb1c652d6d0dc9ab (patch) | |
tree | 7219badb5e324077ad9d6f22981dc155a9fe8610 /net/netlink | |
parent | 1558310d4942427f4fd19e8ae26ca0878ab10879 (diff) | |
download | linux-06dc94b1ed05f91e246315afeb1c652d6d0dc9ab.tar.xz |
ipv4: Fix crash in dst_release when udp_sendmsg route lookup fails.
As reported by Eric:
[11483.697233] IP: [<c12b0638>] dst_release+0x18/0x60
...
[11483.697741] Call Trace:
[11483.697764] [<c12fc9d2>] udp_sendmsg+0x282/0x6e0
[11483.697790] [<c12a1c01>] ? memcpy_toiovec+0x51/0x70
[11483.697818] [<c12dbd90>] ? ip_generic_getfrag+0x0/0xb0
The pointer passed to dst_release() is -EINVAL, that's because
we leave an error pointer in the local variable "rt" by accident.
NULL it out to fix the bug.
Reported-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/netlink')
0 files changed, 0 insertions, 0 deletions