From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id ED3F1C6FD18 for ; Tue, 25 Apr 2023 16:31:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234746AbjDYQbV (ORCPT ); Tue, 25 Apr 2023 12:31:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33366 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234377AbjDYQbT (ORCPT ); Tue, 25 Apr 2023 12:31:19 -0400 X-Greylist: delayed 602 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 25 Apr 2023 09:31:18 PDT Received: from out-37.mta0.migadu.com (out-37.mta0.migadu.com [IPv6:2001:41d0:1004:224b::25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D156483D0 for ; Tue, 25 Apr 2023 09:31:18 -0700 (PDT) Message-ID: <9f190e7d-81f8-6a19-2c40-efff3840a606@linux.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1682439674; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=YpGWfUJ0YMTDR6T0J5WKJSYaJmv5JlIf/hIRBqTGkpI=; b=PMo/9yMtGDKIqQ7sYIzXnOppoaZSJKvCyHyVHE9davobTWNYII+dKwAYm6jsx3kF/91nis VR82KqhI+A1pZ25lTUW9PkwIiqi4VywwMapKYyRib2o+g95YucgRL06ASKxiD1BaVGkkbq ztY9SZgzDD4kjrAPPMhZyr3ABVQ7ceQ= Date: Tue, 25 Apr 2023 09:21:08 -0700 MIME-Version: 1.0 Subject: Re: [syzbot] [bpf?] KCSAN: data-race in __bpf_lru_list_rotate / __htab_lru_percpu_map_update_elem (5) Content-Language: en-US To: Alexei Starovoitov Cc: andrii@kernel.org, ast@kernel.org, bpf@vger.kernel.org, daniel@iogearbox.net, haoluo@google.com, john.fastabend@gmail.com, jolsa@kernel.org, kpsingh@kernel.org, linux-kernel@vger.kernel.org, sdf@google.com, song@kernel.org, syzkaller-bugs@googlegroups.com, yhs@fb.com, syzbot References: <0000000000002d14f305fa241e67@google.com> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Martin KaFai Lau In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/25/23 8:08 AM, Alexei Starovoitov wrote: > Martin, > > > Please take a look at the trace below. > I think we just need to annotate bpf_lru_node_set_ref() with data_race(). > wdyt? Agreed. node->ref needs a data_race(). I will post a patch.