Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1473686

Re: [RT PATCH 1/2] net: add back the missing serialization in ip_send_unicast_reply()

From Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Newsgroups linux.kernel
Subject Re: [RT PATCH 1/2] net: add back the missing serialization in ip_send_unicast_reply()
Date 2016-08-31 18:50 +0200
Message-ID <scgS5-4O7-5@gated-at.bofh.it> (permalink)
References <scgfn-4zJ-15@gated-at.bofh.it> <scgp4-4D4-21@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 2016-08-31 12:15:53 [-0400], Steven Rostedt wrote:
> > @@ -689,10 +691,13 @@ static void tcp_v4_send_reset(const struct sock *sk, struct sk_buff *skb)
> >  		     offsetof(struct inet_timewait_sock, tw_bound_dev_if));
> >  
> >  	arg.tos = ip_hdr(skb)->tos;
> > +
> > +	local_lock(tcp_sk_lock);
> 
> Interesting that I noticed in mainline, they have:
> 
> 	local_bh_disable();
> 
> here.
> 
> I'm surprised we don't have a local_lock_bh() or something to that
> effect.

Turning local_bh_disable() into local_lock_bh(). One side effect would
be that the network driver will be flushed out / waited for completion
during socket write (due to the spin_lock_bh()). Not sure how much fun
all this will bring.
We could try this…

> -- Steve

Sebastian

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[RT PATCH 1/2] net: add back the missing serialization in ip_send_unicast_reply() Sebastian Andrzej Siewior <bigeasy@linutronix.de> - 2016-08-31 18:10 +0200
  Re: [RT PATCH 1/2] net: add back the missing serialization in  ip_send_unicast_reply() Steven Rostedt <rostedt@goodmis.org> - 2016-08-31 18:20 +0200
    Re: [RT PATCH 1/2] net: add back the missing serialization in  ip_send_unicast_reply() Sebastian Andrzej Siewior <bigeasy@linutronix.de> - 2016-08-31 18:50 +0200

csiph-web