Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2408123ybl; Thu, 9 Jan 2020 12:12:49 -0800 (PST) X-Google-Smtp-Source: APXvYqx42SPnkaeDTwan6H+1xzbpoJ3OqzX12I86c0MXTQPgLKmBd1TPFptgYl69HeHw+ZWlNogK X-Received: by 2002:a9d:6849:: with SMTP id c9mr3308334oto.206.1578600769474; Thu, 09 Jan 2020 12:12:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578600769; cv=none; d=google.com; s=arc-20160816; b=KgrA3SFZQ/XbBTS+uXVWK+95D4BqDM+iU4OKbsMafIENNDlAhd/pd7JIzPIRYlfZpP mhOoh7CVwTxIIacVhZAAi3uF9S8PO83dkGdZmbQlrDnp2hKARXJtZUKsl8jnY9+CF5R+ Mwz5GDA+EULxxMSLwi2U1/Ju06Mvojx/2wwqYnpZdJugJq5JWJ0BhJiP5mssOYuSJd0t NvyzroDpfGEHx9DrvyV8IH2JsyrIC8F6WCWCurVWMK2GJHNpY8ZJWDo7Js6yC+eOFm+4 NymPJ/QLWHcijauz1uIS/1Oh9L2XftGuXvpr2L5dzVNHYHNNEVatCQpAVI35haBp3FE+ GFXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=C3tQGBW+vDwPmeZ5P5oYQF4gQuKDpyZEi0F2y4SoBdU=; b=MCTTDchsFFkhDn5Im+NdvruHur94EQ+jfdaXgzSrHDeAKgTkdgPSEthdI+2DXINufu ADgUZNdGq/kVyV4vtNF0mcuzKcw31/2QSI0NyIsqRU6WKicYDbRSOCLJ48gnNIurjxsp sf5Qzm7NYctDkoMdGF4Eg7KnwOyNBeR5LOLlCl23aaATqFOOkGkc/lvBbuaZg/IG/BGD t7QOLBzGb+gwBQucSyAT7reROt4HvtMMJDefE6i9r1+4y0BgIduS2YTRllELUuLnJNHK LXUvL5tKK02EQW6oTbKmDTtDLmwQZpqEWniSK8+UowV69f2GgdbwIu6pASC2NzOtc8P5 uy4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=x0+zT5fu; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g26si4713672otj.32.2020.01.09.12.12.35; Thu, 09 Jan 2020 12:12:49 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=x0+zT5fu; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732463AbgAIPc2 (ORCPT + 99 others); Thu, 9 Jan 2020 10:32:28 -0500 Received: from mail.kernel.org ([198.145.29.99]:39762 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729589AbgAIPc2 (ORCPT ); Thu, 9 Jan 2020 10:32:28 -0500 Received: from localhost (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4FFE92072A; Thu, 9 Jan 2020 15:32:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1578583947; bh=e+8teUutDcTrOf1C5tq1dzQr8Tjsy4MZMpCRFIYHJuc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=x0+zT5fu5S2nCgP35Kc9swptcQDkCVh27Z9qnkoMWKBJy5yQ7KwHux13C4WwVsxeU kXmNgtSCnHfhTbdZsigqPxu8OO2SYXWmcDvaPxHkFWk+T1D9WIDDjy+IBzf6h0yK1r 0e/PzjaCU6YFd00U72+HOKb8jUFv5SL+NSoSDeTs= Date: Thu, 9 Jan 2020 10:32:26 -0500 From: Sasha Levin To: Naresh Kamboju Cc: Greg Kroah-Hartman , open list , linux- stable , Eric Dumazet , Michal Kubecek , Firo Yang , Jakub Kicinski , rcu@vger.kernel.org, Netdev , lkft-triage@lists.linaro.org Subject: Re: [PATCH AUTOSEL 4.19 46/84] tcp/dccp: fix possible race __inet_lookup_established() Message-ID: <20200109153226.GG1706@sasha-vm> References: <20191227174352.6264-1-sashal@kernel.org> <20191227174352.6264-46-sashal@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 02, 2020 at 01:31:22PM +0530, Naresh Kamboju wrote: >On Fri, 27 Dec 2019 at 23:17, Sasha Levin wrote: >> >> From: Eric Dumazet >> >> [ Upstream commit 8dbd76e79a16b45b2ccb01d2f2e08dbf64e71e40 ] >> >> Michal Kubecek and Firo Yang did a very nice analysis of crashes >> happening in __inet_lookup_established(). >> >> Since a TCP socket can go from TCP_ESTABLISH to TCP_LISTEN >> (via a close()/socket()/listen() cycle) without a RCU grace period, >> I should not have changed listeners linkage in their hash table. >> >> They must use the nulls protocol (Documentation/RCU/rculist_nulls.txt), >> so that a lookup can detect a socket in a hash list was moved in >> another one. >> >> Since we added code in commit d296ba60d8e2 ("soreuseport: Resolve >> merge conflict for v4/v6 ordering fix"), we have to add >> hlist_nulls_add_tail_rcu() helper. > >The kernel panic reported on all devices, >While running LTP syscalls accept* test cases on stable-rc-4.19 branch kernel. >This report log extracted from qemu_x86_64. > >Reverting this patch re-solved kernel crash. I'll drop it until we can look into what's happening here, thanks! -- Thanks, Sasha