Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2125574ybb; Thu, 26 Mar 2020 22:42:15 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtG/sY1H8+2zGjvzHjEJjl5UnTyerZVUJ+5i8pFud7+WTRSS9bofxjP5DkdscuDc3N9SIiv X-Received: by 2002:a9d:4f0:: with SMTP id 103mr9038651otm.336.1585287735402; Thu, 26 Mar 2020 22:42:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585287735; cv=none; d=google.com; s=arc-20160816; b=pHu9EZ4LpY0vNyyYWZ0AxWc7gGsywYLdYO2sMvEYh+yFoUJbAIdoSOGJEL5XlTjlFa W46VKTxxFin/ju+rRpuJiZ2kNN03RzDeOPBeWIhL017+FChU1uGH5n7m11oTn6SjtDWr 2hHAQlA5C6Jt7nfBijWv6by41SeiZ3/M6VmAFJJL/a5mZcbsffSOKN9mITPavkFnoxIC Z4Y3YkaXtQ9tJxtQ2hijbw/9AKzPYxnMkQy1PL0UHfk5pHTfqyJj8Q0lErHl+yvfO603 0xJokea8zNMArYeXb+iLEKM5qNSI+mrT1pmcM06wxpZNF1dj3l/5JGnGFQ7T8Wf5jFWq ibQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=utegTDI4BaBUxUkWtVJ+IaSp6LMdjiJ4vzg7uGFPKxA=; b=YbGo0cDK9TacU7P/UsjwaewBrTyERMPjOKGBLI2niCbfkBs/EaibR/chTr/6+TllHx eWvg7amDL9kPx35/P5E0VdLPWJ99Ky8NkfU9k2ANXDPzoPHQ/nGJAlkedUZ6sYMmt5Ch iwqMo26YEVWYM7I3lsn5yeXCdxJaWrzuGU0tAikmdOxvs9xUEHwzycNtmO0JmN7C8RMj Re+RtNns/9fWErGVeZLHdn91fF8uQIDfLAGgJ5yeemwWxodJTkbhLO+dPxYm2g/vGiEk JMCBh2Bqz230iOZK6E4wXh1x2Gad3kvJp+fNZeUTNzK+4rL/AFowGvkzwuJzpGE5BaNm vrCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=e1+X8879; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g203si1943567oif.38.2020.03.26.22.42.02; Thu, 26 Mar 2020 22:42:15 -0700 (PDT) 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=@gmail.com header.s=20161025 header.b=e1+X8879; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726333AbgC0Flp (ORCPT + 99 others); Fri, 27 Mar 2020 01:41:45 -0400 Received: from mail-pj1-f66.google.com ([209.85.216.66]:53279 "EHLO mail-pj1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725857AbgC0Flo (ORCPT ); Fri, 27 Mar 2020 01:41:44 -0400 Received: by mail-pj1-f66.google.com with SMTP id l36so3406148pjb.3; Thu, 26 Mar 2020 22:41:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=utegTDI4BaBUxUkWtVJ+IaSp6LMdjiJ4vzg7uGFPKxA=; b=e1+X8879udSlOIjF72a7Uu7b5GWEXfrrVo/KDVUeE4D+bQft9FxZNQ56Yv0rsrjZJA l1X9siV8idnQJhymsHdFyz7j5CsypQdzzWtRH/u8PscyUbpAqMILiWzWOSPU/m9PYQ9k Vt7/mtm4zh2QG6SS/hXM5nRSGAUJh5rJELqZ4GFl5FcRv+IXxWGPp+fSXnMFKReAquwm PIkS6AR4p7MWUsx+AaOQoaTrHSAC6BQySvkAta/iyNFm38bUoOl7UIevlRnCF8Ulwm8K 73TiB55xrSoDiDAJ00JZQqsUW6NCKr9MCvDPLxe1C1Gdg4agFIZoU22cVN0+mp9r/zVV dmpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=utegTDI4BaBUxUkWtVJ+IaSp6LMdjiJ4vzg7uGFPKxA=; b=cSmGBd9ZehG8MlQRcd/4gmwRnvbg9caAjVSo/+MwXIDAu90EjtTJXD1DubFDbCAaZL s1a5+/G9b2CGEYwhcnhfQ/5wOnzMhzWx5oUC0y71KQGuRlGs/R0QUDltnBiH61TI3uXz 0JKu5+bDKbRv0Xq4cW+6ERz/YvbGNZMB6CpnRnHURAvKlwz9RCWmrhBnrPOSbmZJ/BFG Gc4v8ngpH5u4NCndZBppek8CvkoU3PSV+yilyHKApp76cpN0cukMCp2ttB3eYlLWtWQc VrzC4a8pLcdTUee8pPAAC9EeDplVeeHgTDDkBxcQVG4BXETiHKywv4pz+erjFMoPoAdE lenA== X-Gm-Message-State: ANhLgQ2BO1xDZ1KQIpguXGq+1kVddZsNCvYi7qKRBK59eF3aShkiwABZ dHO0WeUxMmwUB49t6PqypwbxTAYB X-Received: by 2002:a17:90a:364d:: with SMTP id s71mr3794878pjb.185.1585287702936; Thu, 26 Mar 2020 22:41:42 -0700 (PDT) Received: from [192.168.86.235] (c-73-241-150-58.hsd1.ca.comcast.net. [73.241.150.58]) by smtp.gmail.com with ESMTPSA id j8sm2881137pjb.4.2020.03.26.22.41.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 26 Mar 2020 22:41:41 -0700 (PDT) Subject: Re: [PATCH v2] ipv4: fix a RCU-list lock in fib_triestat_seq_show To: David Miller , cai@lca.pw Cc: kuznet@ms2.inr.ac.ru, yoshfuji@linux-ipv6.org, kuba@kernel.org, eric.dumazet@gmail.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <20200325220100.7863-1-cai@lca.pw> <20200326.202714.1221436401038064762.davem@davemloft.net> From: Eric Dumazet Message-ID: <707e70a3-59f7-bc11-fd11-c5409e39c476@gmail.com> Date: Thu, 26 Mar 2020 22:41:40 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: <20200326.202714.1221436401038064762.davem@davemloft.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/26/20 8:27 PM, David Miller wrote: > From: Qian Cai > Date: Wed, 25 Mar 2020 18:01:00 -0400 >> Fix it by adding a pair of rcu_read_lock/unlock() and use >> cond_resched_rcu() to avoid the situation where walking of a large >> number of items may prevent scheduling for a long time. >> >> Signed-off-by: Qian Cai > > Eric, please review. > Patch looks good to me, thanks ! Reviewed-by: Eric Dumazet