Received: by 2002:ab2:2441:0:b0:1f3:1f8c:d0c6 with SMTP id k1csp130396lqe; Thu, 4 Apr 2024 01:38:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW56C9NCKRJOQxn5W8gcAiJRUBAHSBFk6EFNNWolg6E2/1V06VRNRS9sVw6od76mwf0kQBugsqOMyFTgyn8T84N4QhDMT2MBOeHIIdctw== X-Google-Smtp-Source: AGHT+IHafDSdpaTLn4vPZ4/eJzU7tGgERwVMG0kn4t7VDVI/xG4UvbFhUb9Z9/YyrH1b2+3gGioe X-Received: by 2002:a05:6871:e011:b0:22e:bdec:8e5 with SMTP id by17-20020a056871e01100b0022ebdec08e5mr479356oac.18.1712219906418; Thu, 04 Apr 2024 01:38:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712219906; cv=pass; d=google.com; s=arc-20160816; b=PVm6kfEdf96+wstlrs0DNKpcqe3OGcghbZq//UVwiCOqZn0/HjGasX9SEYHTG7sgpI q+sBZS7cTvcvtJIKnZsZNkCLN5yxIlboj6xwKJdYrK1NKmKz92EDMFXzD02QXkF9hI6L uGRm6Njina6Zl9kc3TLOu8jTrhdCf3kvUD4rA5XsmUd50WkP0H3vAXhRVoNbPpIKkmuo yNwXshAZpeuu7GwLgpWhkBRjaltDEggXK4Fr9XOpys6G4bkKbTa7muKmeyJpNHzjpT6B U/eMoa8SoZij3/OIMxZDyb4u6w1ITvrjPl5z7idBeskcwqS18O8JN3F1itz260ajeWbe k9rg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:autocrypt:references :in-reply-to:date:cc:to:from:subject:message-id; bh=RUWAt6tTr1BoO0DACrinTOy1v3V69UJ6vNkPfIqNt3c=; fh=hv85ShD+b2vFHhEcrwq51zW7MW3qEznETXyocKB0LnU=; b=LNZtBVOgeOwY++iVMV+QL1OOz5K3dL1mh3TS5l3TT59wZ/ldQC02ceFqm/xwVVNdX8 ub2Ee0m+j9SXu3ywj94pq6ryoS38lEnA/cigqA+fny55ABrJZ2Jq05ZOtQgVA9htUEI4 YHU7amPNNlJth0LL+VwPo3Oe+CANUya5dDoSicelmKJ+VrWurs+OxxndC0Cb5lhVnjbi 7baNttZabDmnvYLeGnOvgx8eUUDN1m4VOVga31RVeBIpSu6vG1MRMmt2ic3MdP3tJxp3 uRtSdBEdgx76VpIEzS4bsQgxrO6HMFBmKEryGXgnESmBhSSy9ADr2ggDS6rHvJyKzbQA i82A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-131116-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131116-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 15-20020a056a00072f00b006e66a49e4ecsi254906pfm.250.2024.04.04.01.38.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 01:38:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-131116-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-131116-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131116-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 0DA2D28C83C for ; Thu, 4 Apr 2024 08:38:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D4D347173C; Thu, 4 Apr 2024 08:38:20 +0000 (UTC) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 32D6F70CDB for ; Thu, 4 Apr 2024 08:38:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712219900; cv=none; b=V7Jc9BWPB+Szi9lUTNzzguKdSaxeSSqpRLhXJA6YRFFJFfgo+TJogrSWLbojsA4QOBkw32CghDR3TDDro5fORGubqxCEKxDZDV2Wvtz/WSMc2h+7WozYlQTcmy091W4Y2p9ccGqdD5XpBH4KIM/ebksh9gsMhfHACd52shwSnVY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712219900; c=relaxed/simple; bh=qkPoIifBuSH5VuY0M6o1wfPpbRTpbHQCbQZ8R/5rDMM=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=EaFWCu6z7AJObFYDn+zDtAmK1o5ghimtWDsvoeCBHzF7ie4t+mhCBDtvmzbwuSECu6QBJBL4WfRjOKNjMvqWN0Li6SNxu23ApRSuZVMhnQeG8Eb79igywPdBef6wg5R8sv15SFmPXwWEO3FUOux0Ku95BypgrWOUjVjFtUIdIqw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-115-4iQVSF9yPq2nYhL05-BeCw-1; Thu, 04 Apr 2024 04:38:15 -0400 X-MC-Unique: 4iQVSF9yPq2nYhL05-BeCw-1 Received: by mail-wr1-f70.google.com with SMTP id ffacd0b85a97d-343b9425ed1so118482f8f.1 for ; Thu, 04 Apr 2024 01:38:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712219894; x=1712824694; h=mime-version:user-agent:content-transfer-encoding:autocrypt :references:in-reply-to:date:cc:to:from:subject:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=RUWAt6tTr1BoO0DACrinTOy1v3V69UJ6vNkPfIqNt3c=; b=A982pHv0Q2Q03v5PywfKJBnWB+T/LJje3/baKccGmtOtoZehNDJ7E6dXfXlGlTufk2 rSZ2f4WUt7DZRBGMG6kljgRVTXCxaYRN3v00RlT1CsPdO1nUGwwyV31wNl9QMlMuR1Vq f6G+yllLd3h8ydgE6SyG1Z3M3V3HIBDc4qKEUXa3lDLZtO7nyZzqDU8kmNzst2a+Fq/L SlKsPcYolxR70eL7KfGBWF5Q5FmbEC2wbG9XHwBdAs3PLCDzzCw7nb7uxguoPaXLwRIC wCowVhFiVS6mW8PRwkrQr99Oj3aJZT82Vnk3i5Uu34C6imeChwou9ZFmeRGEzijjE/WJ Efsg== X-Forwarded-Encrypted: i=1; AJvYcCXre5/0pGelqPWcTBepp73bVrsOlf61yRTBwNrs8ortoRa+BkRByhSV4O9ENYAloRFOZJFksV+XbZONkAb4AX0vYAaB/DiOs0jmI1eP X-Gm-Message-State: AOJu0YwD9n1pWWAVf2wzKpM/pHN0ayYS/3XHa2cMNi8xP84l9mCodjzt EoOx+HRaLtLHNVIKO8mwryqkI0sSFJ3Qm3/wVNxx4asuf1p/V5BI7cr592ZrH8YIZlF5GgcB/4y 7GRxiyH8ECr5BkPGd21u9hl4U495l15R0cOMkuG/beVmMHzj6RkGV17ULzGONJQ== X-Received: by 2002:a05:600c:1d98:b0:416:2abe:b709 with SMTP id p24-20020a05600c1d9800b004162abeb709mr801877wms.0.1712219894552; Thu, 04 Apr 2024 01:38:14 -0700 (PDT) X-Received: by 2002:a05:600c:1d98:b0:416:2abe:b709 with SMTP id p24-20020a05600c1d9800b004162abeb709mr801859wms.0.1712219894178; Thu, 04 Apr 2024 01:38:14 -0700 (PDT) Received: from gerbillo.redhat.com (146-241-247-213.dyn.eolo.it. [146.241.247.213]) by smtp.gmail.com with ESMTPSA id ck17-20020a5d5e91000000b003438e98e727sm4416451wrb.84.2024.04.04.01.38.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 01:38:13 -0700 (PDT) Message-ID: <168c9226d2cac6a5a53ce33ef1f76b99a02bedcb.camel@redhat.com> Subject: Re: [PATCH v4] net: hsr: Provide RedBox support (HSR-SAN) From: Paolo Abeni To: Lukasz Majewski , netdev@vger.kernel.org Cc: Andrew Lunn , Eric Dumazet , Vladimir Oltean , "David S. Miller" , Jakub Kicinski , Oleksij Rempel , Tristram.Ha@microchip.com, Sebastian Andrzej Siewior , Ravi Gunasekaran , Simon Horman , Nikita Zhandarovich , Murali Karicheri , Jiri Pirko , Dan Carpenter , Ziyang Xuan , Shigeru Yoshida , linux-kernel@vger.kernel.org Date: Thu, 04 Apr 2024 10:38:11 +0200 In-Reply-To: <20240402085850.229058-1-lukma@denx.de> References: <20240402085850.229058-1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HyIdOWSjM8DPLdGJaPgJdugHZowaoyCxffilMGXqc8axBtmYjUIoXurpl+f+a7S0tQhXjGUt09zKlNXxGcebL5TEPFqgJTHN/77ayLslMTtZVYHE2FiIxkvW48yDjZUlefmphGpfpoXe4nRBNto1mMB9Pb9vR47EjNBZCtWWbwJTIEUwHP2Z5fV9nMx9Zw2BhwrfnODnzI8xRWVqk7/5R+FJvl7s3nY4F+svKGD9QHYmxfd8Gx42PZc/qkeCjUORaOf1fsYyChTtJI4iNm6iWbD9HK5LTMzwl0n0lL7CEsBsCJ97i2swm1DQiY1ZJ95G2Nz5PjNRSiymIw9/neTvUT8VJJhzRl3Nb/EmO/qeahfiG7zTpqSn2dEl+AwbcwQrbAhTPzuHIcoLZYV0xDWzAibUnn7pSrQKja+b8kHD9WF+m7dPlRVY7soqEYXylyCOXr5516upH8vVBmqweCIxXSWqPAhQq8d3hB/Ww2A0H0PBTN1REVw8pRLNApEA7C2nX6RW0XmA53PIQvAP0EAakWsqHoKZ5WdpeOcH9iVlUQhRgemQSkhfNaP9LqR1XKujlTuUTpoyT3xwAzkmSxN1nABoutHEO/N87fpIbpbZaIdinF7b9srwUvDOKsywfs5HMiUZhLKoZzCcU/AEFjQsPTATACGsWf3JYPnWxL9 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.50.4 (3.50.4-1.fc39) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 On Tue, 2024-04-02 at 10:58 +0200, Lukasz Majewski wrote: > Introduce RedBox support (HSR-SAN to be more precise) for HSR networks. > Following traffic reduction optimizations have been implemented: > - Do not send HSR supervisory frames to Port C (interlink) > - Do not forward to HSR ring frames addressed to Port C > - Do not forward to Port C frames from HSR ring > - Do not send duplicate HSR frame to HSR ring when destination is Port C >=20 > The corresponding patch to modify iptable2 sources has already been sent: > https://lore.kernel.org/netdev/20240308145729.490863-1-lukma@denx.de/T/ >=20 > Testing procedure: > ------------------ > The EVB-KSZ9477 has been used for testing on net-next branch > (SHA1: 5fc68320c1fb3c7d456ddcae0b4757326a043e6f). >=20 > Ports 4/5 were used for SW managed HSR (hsr1) as first hsr0 for ports 1/2 > (with HW offloading for ksz9477) was created. Port 3 has been used as > interlink port (single USB-ETH dongle). >=20 > Configuration - RedBox (EVB-KSZ9477): > if link set lan1 down;ip link set lan2 down > ip link add name hsr0 type hsr slave1 lan1 slave2 lan2 supervision 45 ver= sion 1 > ip link add name hsr1 type hsr slave1 lan4 slave2 lan5 interlink lan3 sup= ervision 45 version 1 > ip link set lan4 up;ip link set lan5 up > ip link set lan3 up > ip addr add 192.168.0.11/24 dev hsr1 > ip link set hsr1 up >=20 > Configuration - DAN-H (EVB-KSZ9477): >=20 > ip link set lan1 down;ip link set lan2 down > ip link add name hsr0 type hsr slave1 lan1 slave2 lan2 supervision 45 ver= sion 1 > ip link add name hsr1 type hsr slave1 lan4 slave2 lan5 supervision 45 ver= sion 1 > ip link set lan4 up;ip link set lan5 up > ip addr add 192.168.0.12/24 dev hsr1 > ip link set hsr1 up >=20 > This approach uses only SW based HSR devices (hsr1). >=20 > -------------- ----------------- ------------ > DAN-H Port5 | <------> | Port5 | | > Port4 | <------> | Port4 Port3 | <---> | PC > | | (RedBox) | | (USB-ETH) > EVB-KSZ9477 | | EVB-KSZ9477 | | > -------------- ----------------- ------------ >=20 > Signed-off-by: Lukasz Majewski This is 'net-next' patch, you must insert the target tree in the subj prefix. Does not apply cleanly to 'net-next', please rebase. Introducing a new functionality, this deserve some paired self-tests.=20 Does this have specific H/W requirement or can it run e.g. on top of veths? If the latter applies, please bundle some basic test with the next revision (separate patch, same series). > @@ -561,6 +582,37 @@ void hsr_prune_nodes(struct timer_list *t) > jiffies + msecs_to_jiffies(PRUNE_PERIOD)); > } > =20 > +void hsr_prune_proxy_nodes(struct timer_list *t) > +{ > + struct hsr_priv *hsr =3D from_timer(hsr, t, prune_proxy_timer); > + unsigned long timestamp; > + struct hsr_node *node; > + struct hsr_node *tmp; > + > + spin_lock_bh(&hsr->list_lock); > + list_for_each_entry_safe(node, tmp, &hsr->proxy_node_db, mac_list) { > + timestamp =3D node->time_in[HSR_PT_INTERLINK]; > + > + /* Prune old entries */ > + if (time_is_before_jiffies(timestamp + > + msecs_to_jiffies(HSR_PROXY_NODE_FORGET_TIME))) { > + hsr_nl_nodedown(hsr, node->macaddress_A); > + if (!node->removed) { > + list_del_rcu(&node->mac_list); > + node->removed =3D true; > + /* Note that we need to free this entry later: */ > + kfree_rcu(node, rcu_head); > + } > + } > + } > + > + spin_unlock_bh(&hsr->list_lock); > + > + /* Restart timer */ > + mod_timer(&hsr->prune_proxy_timer, > + jiffies + msecs_to_jiffies(PRUNE_PROXY_PERIOD)); AFAICS this timer not explicitly cancelled at hsr port tear-down time. What prevent it from expiring after a port has been deleted and causing UaF? Cheers, Paolo