Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
926abb93
Commit
926abb93
authored
Aug 31, 2003
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[IPV6]: Do not BUG() on icmp6 socket contention, just drop.
parent
98166b95
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
4 deletions
+13
-4
net/ipv6/icmp.c
net/ipv6/icmp.c
+13
-4
No files found.
net/ipv6/icmp.c
View file @
926abb93
...
@@ -99,8 +99,15 @@ static __inline__ void icmpv6_xmit_lock(void)
...
@@ -99,8 +99,15 @@ static __inline__ void icmpv6_xmit_lock(void)
{
{
local_bh_disable
();
local_bh_disable
();
if
(
unlikely
(
!
spin_trylock
(
&
icmpv6_socket
->
sk
->
sk_lock
.
slock
)))
if
(
unlikely
(
!
spin_trylock
(
&
icmpv6_socket
->
sk
->
sk_lock
.
slock
)))
{
BUG
();
/* This can happen if the output path (f.e. SIT or
* ip6ip6 tunnel) signals dst_link_failure() for an
* outgoing ICMP6 packet.
*/
local_bh_enable
();
return
1
;
}
return
0
;
}
}
static
__inline__
void
icmpv6_xmit_unlock
(
void
)
static
__inline__
void
icmpv6_xmit_unlock
(
void
)
...
@@ -345,7 +352,8 @@ void icmpv6_send(struct sk_buff *skb, int type, int code, __u32 info,
...
@@ -345,7 +352,8 @@ void icmpv6_send(struct sk_buff *skb, int type, int code, __u32 info,
fl
.
fl_icmp_type
=
type
;
fl
.
fl_icmp_type
=
type
;
fl
.
fl_icmp_code
=
code
;
fl
.
fl_icmp_code
=
code
;
icmpv6_xmit_lock
();
if
(
icmpv6_xmit_lock
())
return
;
if
(
!
icmpv6_xrlim_allow
(
sk
,
type
,
&
fl
))
if
(
!
icmpv6_xrlim_allow
(
sk
,
type
,
&
fl
))
goto
out
;
goto
out
;
...
@@ -435,7 +443,8 @@ static void icmpv6_echo_reply(struct sk_buff *skb)
...
@@ -435,7 +443,8 @@ static void icmpv6_echo_reply(struct sk_buff *skb)
fl
.
oif
=
skb
->
dev
->
ifindex
;
fl
.
oif
=
skb
->
dev
->
ifindex
;
fl
.
fl_icmp_type
=
ICMPV6_ECHO_REPLY
;
fl
.
fl_icmp_type
=
ICMPV6_ECHO_REPLY
;
icmpv6_xmit_lock
();
if
(
icmpv6_xmit_lock
())
return
;
if
(
!
fl
.
oif
&&
ipv6_addr_is_multicast
(
&
fl
.
fl6_dst
))
if
(
!
fl
.
oif
&&
ipv6_addr_is_multicast
(
&
fl
.
fl6_dst
))
fl
.
oif
=
np
->
mcast_oif
;
fl
.
oif
=
np
->
mcast_oif
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment