From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-177.mta0.migadu.com (out-177.mta0.migadu.com [91.218.175.177]) (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 92B9D382379 for ; Tue, 24 Mar 2026 14:35:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.177 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774362931; cv=none; b=T2NcIVTP/9UgqmL9V3/wQyK4Rj7OAerd+hN+0g2FUkFSTojSpQVoLCwkVBynP+qTQbF6RYSvAWdA1TbvaQ5j12cvTOTMH49TmPPUUABaPVrpE4nv7CAuyBhcEqzMJWYuScY3t5FSHGIm6KCQTyyjL6nC+4D+V8k+3wCi3UfTb8g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774362931; c=relaxed/simple; bh=81VOhGcHXZyF8zdCvhyo0ZfnwPehL4xyOIFjX3KSt5k=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Xe+EP957BuioeleybwMfO4PW3av0kAb2mSpiSqe+sUTQKyTfRouIafB8/x0mGcuTvpgvJVoSIHOdjuZmiDp+FTMx/v6orqy349xWL73Uoegu4xL/yo2iuoW5//Py3jf9XtNTZEsMvxAYuNOVj0ejUdShdPtMDkFCr+uC0UGmIuU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=PWLelmAb; arc=none smtp.client-ip=91.218.175.177 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) header.d=linux.dev header.i=@linux.dev header.b="PWLelmAb" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1774362927; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=qIgbMiEXTu7RBk9IkhYKoH//hpYhoBi+5ucoYj9R9cM=; b=PWLelmAbNZeEwu1bINzpeWD6gTneJ4+kq/79p/2HPSVL2STskQ+gedtT5Qx3wrZP/5eT8r 3OuCgY8Gvs8cbNOzEcV5PesE4jCaSV2dG84FAMVdnHbEJ3vp1VfQXmQYJIlgIYBPWumB+Z Oz8l1sJ98T8ibycoawEakYH2Kg0Y/e4= From: luka.gejak@linux.dev To: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org Cc: horms@kernel.org, fmaurer@redhat.com, liuhangbin@gmail.com, bigeasy@linutronix.de, linux-kernel@vger.kernel.org, Luka Gejak Subject: [PATCH net-next v1 0/4] net: hsr: address functional and concurrency bugs Date: Tue, 24 Mar 2026 15:34:59 +0100 Message-ID: <20260324143503.187642-1-luka.gejak@linux.dev> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT From: Luka Gejak This series addresses four logic-level bugs in the HSR/PRP implementation identified during a protocol audit. The primary change resolves a race condition in the node merging path by implementing address-based lock ordering. This ensures that concurrent mutations of sequence blocks do not lead to state corruption or deadlocks. Additional fixes include correcting asymmetric VLAN error unwinding, enforcing strict supervision frame TLV validation, and improving Netlink error reporting for invalid interlink attributes. Luka Gejak (4): net: hsr: serialize seq_blocks merge across nodes net: hsr: fix VLAN add unwind on slave errors net: hsr: require valid EOT supervision TLV net: hsr: reject unresolved interlink ifindex net/hsr/hsr_device.c | 8 ++++++-- net/hsr/hsr_forward.c | 2 +- net/hsr/hsr_framereg.c | 38 ++++++++++++++++++++++++++++++++++++-- net/hsr/hsr_netlink.c | 7 ++++++- 4 files changed, 49 insertions(+), 6 deletions(-) -- 2.53.0