From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751253AbbJBUFc (ORCPT ); Fri, 2 Oct 2015 16:05:32 -0400 Received: from www.linutronix.de ([62.245.132.108]:43232 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751052AbbJBUFa (ORCPT ); Fri, 2 Oct 2015 16:05:30 -0400 Date: Fri, 2 Oct 2015 22:04:44 +0200 (CEST) From: Thomas Gleixner To: Eric Dumazet cc: =?ISO-8859-15?Q?Holger_Hoffst=E4tte?= , "David S. Miller" , "Eric W. Biederman" , Stephen Hemminger , Greg Kroah-Hartman , LKML , stable@vger.kernel.org, netdev Subject: Re: Soft lockup issue in Linux 4.1.9 In-Reply-To: Message-ID: References: <1443650383.13282.10.camel@daevel.fr> <560D1223.3070606@googlemail.com> <560D1C5A.3050508@googlemail.com> User-Agent: Alpine 2.11 (DEB 23 2013-08-11) MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="8323329-791222658-1443816286=:4500" X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-791222658-1443816286=:4500 Content-Type: TEXT/PLAIN; charset=UTF-8 Content-Transfer-Encoding: 8BIT On Thu, 1 Oct 2015, Eric Dumazet wrote: > On Thu, Oct 1, 2015 at 4:43 AM, Holger Hoffstätte > wrote: > > On 10/01/15 13:29, Eric Dumazet wrote: > > >> commit 83fccfc3940c4a2db90fd7e7079f5b465cd8c6af > >> Author: Eric Dumazet > >> Date: Thu Aug 13 15:44:51 2015 -0700 > >> > >> inet: fix potential deadlock in reqsk_queue_unlink() > >> > >> When replacing del_timer() with del_timer_sync(), I introduced > >> a deadlock condition : > >> > >> reqsk_queue_unlink() is called from inet_csk_reqsk_queue_drop() > >> > >> inet_csk_reqsk_queue_drop() can be called from many contexts, > >> one being the timer handler itself (reqsk_timer_handler()). > >> > >> In this case, del_timer_sync() loops forever. > >> > >> Simple fix is to test if timer is pending. > >> > >> Fixes: 2235f2ac75fd ("inet: fix races with reqsk timers") > >> Signed-off-by: Eric Dumazet > >> Signed-off-by: David S. Miller > > > > Whohoo! It applies/builds cleanly to 4.1.10-rc1 and is running as > > we speak. Let's hope that this fixes the lockups. > > > > It definitely should help ! What makes sure, that the timer cannot be readded while that timer callback is running? Thanks, tglx --8323329-791222658-1443816286=:4500--