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


Groups > linux.kernel > #1217914

Re: [PATCH] tipc: fix stall during bclink wakeup procedure

From David Miller <davem@davemloft.net>
Newsgroups linux.kernel
Subject Re: [PATCH] tipc: fix stall during bclink wakeup procedure
Date 2015-09-03 01:30 +0200
Message-ID <q4pDA-2R2-9@gated-at.bofh.it> (permalink)
References <q4iiK-JG-13@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


From: Kolmakov Dmitriy <kolmakov.dmitriy@huawei.com>
Date: Wed, 2 Sep 2015 15:33:00 +0000

> If an attempt to wake up users of broadcast link is made when there
> is no enough place in send queue than it may hang up inside the
> tipc_sk_rcv() function since the loop breaks only after the wake up
> queue becomes empty. This can lead to complete CPU stall with the
> following message generated by RCU:

I don't understand how it can loop forever.

It should either successfully deliver each packet to the socket,
or respond with a TIPC_ERR_OVERLOAD.

In both cases, the SKB is dequeued from the queue and forward
progress is made.

If there really is a problem somewhere in here, then two things:

1) You need to describe exactly the sequence of tests and conditions
   that lead to the endless loop in this code, because I cannot see
   it.

2) I suspect the fix is more likely to be appropriate in tipc_sk_rcv()
   or similar, rather than creating a dummy queue to workaround it's
   behavior.

Thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

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


Thread

[PATCH] tipc: fix stall during bclink wakeup procedure Kolmakov Dmitriy <kolmakov.dmitriy@huawei.com> - 2015-09-02 17:40 +0200
  Re: [PATCH] tipc: fix stall during bclink wakeup procedure David Miller <davem@davemloft.net> - 2015-09-03 01:30 +0200
    RE: [PATCH] tipc: fix stall during bclink wakeup procedure Kolmakov Dmitriy <kolmakov.dmitriy@huawei.com> - 2015-09-03 10:40 +0200
      RE: [PATCH] tipc: fix stall during bclink wakeup procedure Jon Maloy <jon.maloy@ericsson.com> - 2015-09-03 15:00 +0200

csiph-web