Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp237741rdb; Thu, 18 Jan 2024 01:55:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IE+vCCAIPZgSMWbCGfkh+YEn6ScrEOYvRY5Mb0P0E0vx5rn7WlVhIL1MTSVTcRqPX16hjff X-Received: by 2002:ac8:5943:0:b0:429:ca35:21a2 with SMTP id 3-20020ac85943000000b00429ca3521a2mr502336qtz.61.1705571759662; Thu, 18 Jan 2024 01:55:59 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705571759; cv=pass; d=google.com; s=arc-20160816; b=bXKUo7o9qZWYmpYmiRj9514NPjU5TeAauKJjT99PoNZ4eDXlWlmIi12Ifr4kJDUe3U Geu/X5Csb25S0h9YQjZpxZmZhsnbEIsFHBZtJGYqsMIDS/1ws0drt8E/Ks9bkQIpxRxl dHk9r0VcijNuyzI8ywp33lw7joRfdAQYEnr8HiYmwzekxxEVgY8k+AdwAMlzUlkXz1CC XHcapm8lL006y0sbVrBSxQGKAhYk5/+2B/l6yIFwSjG5mZy1ZXTGUDdtOUOHDD7KIXlw unQUAOvAy3mQhfWCSLRA0fi6FWq1pOUeKfjgmPGL3G2xoRKTC2QvktOz+Mh2aypPnMTB QzKg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=35MgUySkivZiu3Aq5AqtYwsVQJ4Uq1MrdaE+7l+zuec=; fh=vbJaGc7RZigTH6S3Kk7hZEJyQ3ziLV9PiOHAUCStnwU=; b=tB0v6xD6OPVIPvm9ac+F7bFYtl/H+InPKp7T77gS790uDs+zazoHXctpPOkAuJeoN1 hWMzvBWuWaspk5ohwlc81S2LDJeuhkQb+yw7N/2YBo736IpoGhtWtiVf36Jvt5O8+9/I pfSAHbsr0ljVMLTbrwfhnZlgOOcCyqedE/Av7ai4w0aaCVKeRMTVzLA6TKe8fWeOcgeR 0kp0lwjANIZM9NvX+dUrV9cVRBkzyZ/aPCRHBFPUAwISkApX71gt/lTL6yqlS4On99Kz EulMmAlA4MSPtsoKceW4WjbG53jWfdXIn6VqIk1pvGHD+z3AJh5WYYdUlSBUYNNo8Thm u4cg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=FhH+pNpY; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-29986-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-29986-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id a6-20020a05622a064600b00429d4137889si10788803qtb.167.2024.01.18.01.55.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jan 2024 01:55:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-29986-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=FhH+pNpY; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-29986-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-29986-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 6A8691C22211 for ; Thu, 18 Jan 2024 09:55:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6298920307; Thu, 18 Jan 2024 09:55:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="FhH+pNpY" Received: from mail-pf1-f170.google.com (mail-pf1-f170.google.com [209.85.210.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ABD6B29A2; Thu, 18 Jan 2024 09:55:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705571752; cv=none; b=NnFCVV43fF9yBNl87Jok9EMqFuZePCqlH7/KOzdeSE4G7Z0Y7Kx4Mus2BE3JQj3lEP+GWrzeQIDEFBFvwDWQHXXReVmYs/xBBAcTG3hXnV3eigL8+gIO5pe5WzkmMkeKeoOCBqDKPS9SvmH1y8VTYOJPzdZhXela7+Yy+h1zhdg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705571752; c=relaxed/simple; bh=FmtxJ1/Uk8uKGZ1IhBGuuuJVOGfB4FaSQCyPA4KP4YI=; h=Received:DKIM-Signature:X-Google-DKIM-Signature: X-Gm-Message-State:X-Google-Smtp-Source:X-Received:Received:Date: From:To:Cc:Subject:Message-ID:References:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; b=K7Em4VwUDsmWEHuYO5byALb2hHITnJVSSkQdhqEMuEdPfcIdicXHVpmkDdQR8DqA3Ukk58fZwxBPqITbrIJCp7OW/N1vC/kPI9VUC21nI9T/PJcjzvwrHDuRrWRtgFhaYmCd52PyLe7O9z3SIJfRjOr+infQhVEKQmc0Qfgf7uQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=FhH+pNpY; arc=none smtp.client-ip=209.85.210.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pf1-f170.google.com with SMTP id d2e1a72fcca58-6da6b0eb2d4so6534170b3a.1; Thu, 18 Jan 2024 01:55:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705571747; x=1706176547; darn=vger.kernel.org; h=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=35MgUySkivZiu3Aq5AqtYwsVQJ4Uq1MrdaE+7l+zuec=; b=FhH+pNpYKZqCuVF9GBY/NWlLqJztXxl0mW3gA7jSVYJKal48UVus9KWoGRk/y6Tb6M KSltvtq8pc0V7TrOwIXMYEOBuMMSKohJOPqaaPULh2WCLDavFbCiDG5/naz2wKl+CJbm LiWaJEmKg1xMT+XS0coOmRNTB0n7ch62oxb3TvUQDaMJcjw0zd8Sxdd83m0Bt9nkdKqb ZDaLDH1V8UwHooy5MILzASqWDSiD4M+2ZjaRduymoTHPwEb9K3l6CXBN7kLKMsNXOwTP VnquEtrT0sA7AFZmlscuhlehWdNSJkaDfDOyNkoXQrQa22fKnZZaSn1j7HHywL+SDlSk RPFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705571747; x=1706176547; h=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=35MgUySkivZiu3Aq5AqtYwsVQJ4Uq1MrdaE+7l+zuec=; b=VibfyP5e7mH/q2e6YuQioAaPhEKqt9UcTxzKpoSS8KGBtQYORT3LOx1oLY+i0m9OOu 6iHlw25Glry7/MhHwnpqEng5l0yR/zC9FEWhCVvbBL0ORAnKlYlAC3Rs7hilKUVSRq0m Bn2Ccz8Q3IyFA9qu2SfVksPKSM17C7fBWogX24rmDwasET3X1+jyowEN2J9SCCF7nPY9 ZaSIl7i7bBZVcudkjd+4W0wZ31arG2OEmnbAM+jypxoqcF7O+qmRMBGUAkKrQ9uMMIkY Lh2N2WIIAlRqk3KldFYpxsUqTiE1yO8IiArwhZ+kC3jKMFByEK/1f6PNR97oCtmmAQzK Gu9g== X-Gm-Message-State: AOJu0YwC8ypAcV+/tBswmvegSi4pNyRuE1Bd2r74hhDj5kMNqaW38JiR 7LzpcAoccbQv3DpWLbd5GdnS8E/jHWrKr6dXopaRCvApVe33l5Zk X-Received: by 2002:a05:6a21:3a47:b0:19a:5d53:e76b with SMTP id zu7-20020a056a213a4700b0019a5d53e76bmr508394pzb.41.1705571746882; Thu, 18 Jan 2024 01:55:46 -0800 (PST) Received: from Laptop-X1 ([43.228.180.230]) by smtp.gmail.com with ESMTPSA id a28-20020aa78e9c000000b006d9bdc0f765sm2901519pfr.53.2024.01.18.01.55.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jan 2024 01:55:46 -0800 (PST) Date: Thu, 18 Jan 2024 17:55:41 +0800 From: Hangbin Liu To: Taehee Yoo Cc: Nikita Zhandarovich , "David S. Miller" , David Ahern , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, syzbot+a9400cabb1d784e49abf@syzkaller.appspotmail.com Subject: Re: [PATCH net] ipv6: mcast: fix data-race in ipv6_mc_down / mld_ifc_work Message-ID: References: <20240117172102.12001-1-n.zhandarovich@fintech.ru> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Thu, Jan 18, 2024 at 04:24:52PM +0900, Taehee Yoo wrote: > > I saw mld_process_v1() also cancel these works when changing to v1 mode. > > Should we also add lock there? > > I think mld_process_v1() doesn't have a problem. > Because mld_process_v1() is always called under mc_lock by mld_query_work(). > > mld_query_work() > mutex_lock(&idev->mc_lock); > __mld_query_work(); > mld_process_v1(); > mutex_unlock(&idev->mc_lock); Thanks for this info, then this works for me. Hangbin