From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=95.215.58.88 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1792742195; b=HaGokRLKTHpVhsjTdOEkGsW562URNUSN9tkDUPM9UYtFq+LOIcCyFW8rd3oMCr6WDAql 6XCXIAqYZoZhVI8wxm52sndpTxu3NhlFpTAqcRM4/Yj/VmYDqOJ2qf75UPYOm2NPeFCAn hZpTnnMHqhPdyTks9WZ9nXAleRY5/KLSCvQRXy+2EtITvpvMsn1Ppgh9Dg1NI6tENGdgK TfVqg8dD2S/He0de0K59Z9eJlBnlct2KdzeqakGnj3qrnkW3ZG+yCDBITMJTZQqBjuFGC hYvNiXO4r02s0VmVQhcooRQ67MusWLmI1TllVj9W4hUARNLoQHcYQSgHebmGw/GKrgA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792742195; h=DMARC-Filter:X-Envelope-To:DKIM-Signature:X-Envelope-To:Received: X-Mizu-Trace-ID:X-Migadu-Flow:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=a1fLNTNQuElQrkhiWKcrIu52BrjXQYMDASDkpVEAwms=; b=CHceOaS5JkjBzp4hDpw5dV0OHblsXI8CYuby7NRUgS7c76hQOt7BaKIk5Qb9fN813yaJ IzQtugQ6lIaCHkAs6LRdU5TXL6ipeVwLR7EPiD6TGEdcZXdJjQwTDUuvza954fVXNS41s xia+cI7g8uTiJ5Nbtnz/Lq0tpGlX6b2TIJCIECfmMcO7aaeNVtHlIcAzm2ePvFOjCIA2V H3VQHQtGV9OGVOdBvdBRmuOAWiLFZhT5LDQCNRCCFJrELRPViRchtbF4RQQcRXzF9dpPD I76urrGSRioAdvnoOhmBtrT9W7jZcjyT4TF+3vmg6ZaMKify2/ZsGjx4nxdO0lEKYxQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=wW2D8xx+; arc=none smtp.remote-ip=95.215.58.88 Received: from mta1.migadu.com (out-88.mta1.migadu.com [95.215.58.88]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0E944606A31B for ; Fri, 23 Oct 2026 07:56:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 0E944606A31B Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=wW2D8xx+ X-Envelope-To: stable@vger.kernel.org DKIM-Signature: a=rsa-sha256; bh=AxDTtbQpe1Pw1Gld4FexP/rem2OpjOhFrzr3t8rvVIc=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1792742191; v=1; x=1793346991; b=wW2D8xx+DdbRIC4AHcSsoWygNrMVamSR+kr6fATyTg+RyS24w+tgSGJSJea4RaHGc1sJGUTR uzy2bS5hJ0SH08Tstg8AwLygSAn1nXcr4+uSM40DDuBP9W6GwrgQjgb2jM1Wt50KldLURcH1v9y xNof3we7jE5136Rq/sttJ0m0= X-Envelope-To: stable@vger.kernel.org Received: by mta11.migadu.com with ESMTPS id 4835e8e05efbd0ae; Fri, 23 Oct 2026 07:56:30 +0000 X-Mizu-Trace-ID: 4835e8e05efbd0ae X-Migadu-Flow: FLOW_OUT Date: Fri, 23 Oct 2026 15:56:18 +0800 From: Hangbin Liu To: Xia Yan Cc: andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org, horms@kernel.org, john.fastabend@gmail.com, kuba@kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, pabeni@redhat.com, stable@vger.kernel.org, yana06070@163.com Subject: Re: [PATCH net] macvlan: fix passthru promiscuity accounting while down Message-ID: References: <20261022090809.12019-1-yanxia@cmss.chinamobile.com> <20261023061630.350083-1-yanxia@cmss.chinamobile.com> X-Mailing-List: stable@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261023061630.350083-1-yanxia@cmss.chinamobile.com> On Fri, Oct 23, 2026 at 02:16:30PM +0800, Xia Yan wrote: > Hi Hangbin, > > > If we discard the MACVLAN_FLAG_NOPROMISC change, should we remove the bit > > before calling WRITE_ONCE(vlan->flags, flags)? > > WRITE_ONCE() still saves the new flags. The patch only skips the > lower device's promiscuity count update while the macvlan is down. > > If NOPROMISC is cleared while down, macvlan_open() takes the > reference on the next open and macvlan_stop() releases it. If it is > set while down, the next open leaves the lower device's count alone. > > I'd keep saving the requested flags. Clearing the bit would lose > the user's setting. Rejecting the update would require bringing the > interface up before changing this option. Ah, I see. Thanks. Reviewed-by: Hangbin Liu