Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp118227rdh; Wed, 25 Oct 2023 18:43:37 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGyxwjMiZbNG73h4oTaxdA137gSHad6wC2QqAX97eZDXp+eGe+cTDUIe2qyjsEQtQOHRIly X-Received: by 2002:a05:620a:2708:b0:778:9bbc:b864 with SMTP id b8-20020a05620a270800b007789bbcb864mr14091165qkp.70.1698284617061; Wed, 25 Oct 2023 18:43:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698284617; cv=none; d=google.com; s=arc-20160816; b=BtkbrLJX0QRMa94UpKM9pWk/R/sbC8VWK2GUM3atkC4qGnMJtshl/H8Jc9t1y7y0Fw WCiAp1Da50luMwGzl2NrSFhAJYhuvq8NaZ7ugT8423bjdN6PfJpGQhQ5pdYH27olim1N 7EcX40qXPQrea+AVVsaYxXWCjr9ipkfWpeiiXDOianx7ajjgO2wNdRoRtrAtVqOFW5Kr o32yqm+R6vgAFe86BWEepNpbMUnV9GXzFbpLNYiGNoQSkZSF7Q9qk19G/RtBFT3/pysc xpie0yViVr9UnsCaaddo7nH+rorpZfl4moTLjI4mgzKmUYnKUTCj6MW+UC4AO+1McN7q J+Cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=xGwXVTB04ZGJJLn87Invv5qM2NqT5JzT/f4oJ1gbXb4=; fh=S4bPWM03+VoCF90GSxJwS3Jjn2t+XSDQ9rGD8IAIlGU=; b=cK+hgEEueFWqEvNJLOCK0AYZ+kEIkMC9/HCEsieqitUTof9sZFFrfY1861SE5OBnpN dnHAjp9G4atYB4CnHOFG+uAgwLbJ+G2dWYMREU9370rpxRTfrdZvrEiGr3oNzuTeZSuL NsCA5YHQZuHjSxBB4qzXNhfwV7rdWQX8VV7XMOjgI9pEtXJZUkZZg7rAz+FxP4/KBtMv Za5XcDjbsxCRYdXrn8MtfNhq4t95eHHdvY2DI3U27HmfKp5oNyE3j5jdzZtyHuFrhHb3 M4RQQrskVO5QzOIiJ4AawoW0Sdzy9hD5GKV188V3KljBXuwRCM2u6rDNR2DswG2aNPod MSZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=jBok9ibg; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id e187-20020a2537c4000000b00da04908d3e1si5579883yba.613.2023.10.25.18.43.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 18:43:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=jBok9ibg; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id D6DF481FD9EA; Wed, 25 Oct 2023 18:43:32 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229932AbjJZBnc (ORCPT + 52 others); Wed, 25 Oct 2023 21:43:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45082 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229638AbjJZBnb (ORCPT ); Wed, 25 Oct 2023 21:43:31 -0400 Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3AFEFBD for ; Wed, 25 Oct 2023 18:43:30 -0700 (PDT) Received: by mail-pl1-x629.google.com with SMTP id d9443c01a7336-1c9b7c234a7so2778405ad.3 for ; Wed, 25 Oct 2023 18:43:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698284610; x=1698889410; darn=vger.kernel.org; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=xGwXVTB04ZGJJLn87Invv5qM2NqT5JzT/f4oJ1gbXb4=; b=jBok9ibgA6HnfHf+lpB/4Q29k1e7+ogTflHSgDkAlzUmgT7gaQGrQxrjQcTV1q16xk Vbl+vxSjEywsJfcxovkkmxzA7ORR+tOT4OjyrSdgBSSxhxNH9kxLY70EjgLrerVNIvZt +bcyVApSyoNkpmS2y6cZqG7UxSOhYBtU8MSfDWUQksJeKmtl/FNJRRLfyl++4Dx8xEZl 0I4KjB0eGTl1Ey/y+rIwch1ZPyhZIYWssHqlUqZ3eATZg+o4QW5egc9VLaugXzGDsK3w NTE06FVD4Ymv70nEh69uyiZd5LH3D3DB3IdrIkeAsNpVe0LV5hKth67Ag1R4bJ+XhsV/ /JIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698284610; x=1698889410; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=xGwXVTB04ZGJJLn87Invv5qM2NqT5JzT/f4oJ1gbXb4=; b=bggCipywhpvvtxoh03M71MBI43dOgO8SUjtRIYSwl1KSZJokgSj3nssgPC4GUv57Im Fdm+sflLzVMkSPhdAdJAItO0x4+xNmlFHJNBHeLrXA2gJQmi+sZYfE7QKtYdeO+P5Cyf Ds8tuyPi4OwcbZFPr9vLQLUuQqdp4s4ZGtiSt79loonNdB7PxgqtI9rUZljOCKnurJik IzhRdkzfPUPNMeAwlu8aFcqo3UtbFMUeeMYeWqlkDG8PSYbfyZhTomwQfwEtloSS7NZT +7WUjEzU28D4CAHCFTrDUZVoRuC0SlFhHAnuYuZQ+MSt5kud8fPN6tmkvBCbKHcnw5yX f7/w== X-Gm-Message-State: AOJu0YyxEBYgT01I+1dn7/heEfHUk6LI2Hnv0389w13mSRb/SWFbb5Cw qt+dobzuphTP8efVuPTfa98= X-Received: by 2002:a17:90a:d80e:b0:27d:568b:a741 with SMTP id a14-20020a17090ad80e00b0027d568ba741mr16721475pjv.41.1698284609679; Wed, 25 Oct 2023 18:43:29 -0700 (PDT) Received: from localhost ([103.40.76.4]) by smtp.gmail.com with ESMTPSA id y92-20020a17090a53e500b00274e3e5f334sm2910699pjh.0.2023.10.25.18.43.29 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 25 Oct 2023 18:43:29 -0700 (PDT) Date: Thu, 26 Oct 2023 09:43:27 +0800 From: Jiazi Li To: Jeff Johnson Cc: Johannes Berg , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Jiazi Li , linux-wireless@vger.kernel.org Subject: Re: [PATCH] wifi: cfg80211: fix bss rbn double erase issue Message-ID: <20231026014327.GA24345@Jiazi.Li> References: <20231025103304.22082-1-jiazi.li@transsion.com> <97bfc661-132c-48c1-a6c0-c662c1b37db1@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <97bfc661-132c-48c1-a6c0-c662c1b37db1@quicinc.com> User-Agent: Mutt/1.9.4 (2018-02-28) X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Wed, 25 Oct 2023 18:43:33 -0700 (PDT) On Wed, Oct 25, 2023 at 09:04:48AM -0700, Jeff Johnson wrote: > On 10/25/2023 3:33 AM, Jiazi Li wrote: > > If cfg80211_update_assoc_bss_entry call rb_insert_bss re-insert bss > > failed because cmp_bss return 0, this bss->rbn will continue to hold > > expired data, such as __rd_parent_color. > > And this bss still in rdev->bss_list, maybe double erase in > > __cfg80211_bss_expire later. > > Double erase a rbtree node(with expired parent and color data) maybe > > corrupt rbtree, so add a in_rbtree flag to fix this issue. > > > > Signed-off-by: Jiazi Li > > Note your Signed-off-by doesn't match your e-mail address in your e-mail > header. From the actual e-mail source it seems Google is trashing your > headers: > From: Jiazi Li > X-Google-Original-From: Jiazi Li > > That needs to be resolved Thanks for your reminder, I will use the same e-mail address in the feature. > >