Article View: linux.kernel.netdev
Article #23393Re: [PATCH net-next v12 2/8] hsr: Use skb_clone() while adding the HSR header
From: Sebastian Andrzej Siewior
Date: Fri, 27 Nov 2026 07:40
Date: Fri, 27 Nov 2026 07:40
24 lines
10535 bytes
10535 bytes
On 2026-11-26 14:40:32 [+0000], netdev-bot+sashiko@kernel.org wrote: > If you believe none of the issues are legitimate, please reply to each > issue of Medium severity or higher and explain why the AI is wrong. > > - [Medium] In hsr_create_tagged_frame() (net/hsr/hsr_forward.c), the > clone made with skb_clone() keeps the original skb's timestamp request… > - [Low] hsr_create_tagged_frame() in net/hsr/hsr_forward.c now calls > skb_set_network_header(skb, HSR_HLEN + movelen) and… > > -- … > [Severity: Medium] > After skb_clone() and skb_cow_head(), the frame for each slave port has > the original tx_flags (SKBTX_HW_TSTAMP / SKBTX_SW_TSTAMP) and tskey. > pskb_expand_head() copies them into the clone's private shinfo. But > __skb_clone() leaves the clone's sk NULL. Can a timestamp generated for > this clone ever reach anyone? The socket is attached later in the series. It is possible to forward the timestamp properly within this series. Sebastian
Technical Details
Message-ID:
<20261127074049.1DL-U1BM@linutronix.de>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-372520-linux-kernel-netdev=dewy.ruReferences:
<20261125-hsr_ptp-v12-2-9ddd2a73cb90@linutronix.de> <179570403216.3135.10008194988280246872@kernel.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-372520-linux-kernel-netdev=dewy.ru From: bigeasy@linutronix.de (Sebastian Andrzej Siewior) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v12 2/8] hsr: Use skb_clone() while adding the HSR header Date: Fri, 27 Nov 2026 08:40:49 +0100 Organization: Usenet Network Message-ID: <20261127074049.1DL-U1BM@linutronix.de> References: <20261125-hsr_ptp-v12-2-9ddd2a73cb90@linutronix.de> <179570403216.3135.10008194988280246872@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: usenet.network; logging-data="673757"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:DG2laA0MZ8ax20HPTwzSgSU/ff4= sha256:cj90MplU2iQKvGleYK3CiMiRMZvyHSPs/KRuS9hqDSo= sha1:70EACqPF8b4cvWkO0F2Lq3DnwtE= sha256:HXNu2RvCI62PXb+sxQRZXSyjCjRuFKqOAQS9XGfrR6U= Content-Disposition: inline List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id A5048125F11; Fri, 27 Nov 2026 10:41:14 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.051 X-Spam-Status: No, score=-3.051 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=linutronix.de header.b=uFAGwKh1; dkim=neutral reason="invalid (unsupported algorithm ed25519-sha256)" header.d=linutronix.de header.b=d7cB27l5 X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FVPeuK6_3POG; Fri, 27 Nov 2026 10:41:11 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-372520-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=linutronix.de X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id A7C3E125F10; Fri, 27 Nov 2026 10:40:56 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id 0BE883DB33; Fri, 27 Nov 2026 07:40:55 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1795765254; b=ItyvpBNaGdSPKR0Y+BNeYwA72O+iaUMBorAfg2djuM2+nF4HCE8ZskFiK8lxUf6Y9Kl9 qwL0TrUxC+vHe+yj4t1RWIUb0VwsZsA7QYbLvH90hR2ri3e6EM6Uon2m6ITeMr2uAbDs7 ElmIXpQxWVWt6np6zAKHFXHtmR3EwYqR6gDD8h7zu8ebz8D5Ql6NDKl01xGpkRW8BOCkN Y75f8WTItyTxRc/AlGEVLCtCrsnqqKlOefoWewQWnhQW++5Goe76SCJrEEJ661eNiOKqI E6JzJWhpJTtNJVeyqrljrl5IrPD/rSMjY5ItiKwTW753i0mdo1vilfQdGqmVfhWgRDQ== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795765254; h=X-Original-To:Received:DMARC-Filter:Date:DKIM-Signature: DKIM-Signature:From:To:Cc:Subject:Message-ID:References: X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence:MIME-Version:Content-Type: Content-Disposition:Content-Transfer-Encoding:In-Reply-To; bh=YJURtdxXhk/lHCVcZI4FeclTTDjf9Rsj5NTK+HMt0g0=; b=17hawPOzLTBz1cTgPdzdPbbs0gWTFxFYutldsEezfytDroSEAlvbbPA4A9hsDlVjgyRR Abdj/yGWyA8D/JzMI9p3PC6zcnK6phEL1uqkBguRa9ABJEoWfZIcyQ8t+kFgVx4n4l2YP vcSYWH5zDiHYPCHznqwGocVeGsHfbgRxantJ7eeY4tSmEIAZVmMStWC//9Db/CGYoHJRw xs+EInw9GLPRlhursqY46xaFocAccbhmF/LgEfD2eKWS/t9xaIF8wr4bkQRrup7avPAoQ MSgFTG/lTgkMGX4tTAFawXhOO4dFF5TXXTQ2hYAE/DLAgJRw1zOSMhLIkbqtdvutDKg== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=linutronix.de header.i=@linutronix.de header.a=rsa-sha256 header.s=2020 header.b=uFAGwKh1; dkim=pass header.d=linutronix.de header.i=@linutronix.de header.a=ed25519-sha256 header.s=2020e header.b=d7cB27l5; dmarc=pass header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D76E4606A329; Fri, 27 Nov 2026 07:40:54 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.a=rsa-sha256 header.s=2020 header.b=uFAGwKh1; dkim=pass header.d=linutronix.de header.i=@linutronix.de header.a=ed25519-sha256 header.s=2020e header.b=d7cB27l5 X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=193.142.43.55 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795765254; b=KygwcA90Cd5KhWys7gb+5dZ7bv6D8+Ycdr+O+PICAa9D6cWU8JBxxSA2+ACNxieDC/d1 CgiVF5R6rvD9LiwCmZQZE8tHALB4ckZ0QrUCbV7kyd7z206jQERBAkRfzsRKkSi98f30V nVUhAHSYBRr1geaC8dJHBkuHleKv4OfqRjiDCgFiNiXLxcWMpDnqBsfT1BFIUeedQRA5l g6YJRf+7fl/xWleiWwBsSnjRYeQHr6eyYPeSyBsIm5bsHs1Vb/Gw5tV8dB0jS+UKD95LB xbtqkMbch2H5aQAf3xmsRWdAcw2aAiHaDKRXNaD6hCvB0e3j2ga7F9EK9jSxy8O8AZg== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795765254; h=DMARC-Filter:Date:DKIM-Signature:DKIM-Signature:From:To:Cc:Subject: Message-ID:References:MIME-Version:Content-Type:Content-Disposition: Content-Transfer-Encoding:In-Reply-To; bh=YJURtdxXhk/lHCVcZI4FeclTTDjf9Rsj5NTK+HMt0g0=; b=ZL4NLVsJEwjIa1dLz7IKtnVwidRaztSeTdCLAgQ9HMwNeDSjwB9PhodRiOU/x35uB/FV YHhHrMo4M0Z1uKUP/lgqpV2rK+oenv4jwu7dpC3LsKQWyZNpm+ZpkbBC9XmPIGcXUm6zv gp1C/dXUERV0pCQdee4G4cEreUEtuo3+hCCdaV1WNqUC05kUqP+o6XrLQhaz0el99a2D6 ID6kL8zsj8aIJzur7bu3re7qmZujg4O2ZHlYJ0WCAUlXOBPhnJRaDs9JzFCEBuElfL9GK czHjPBFgb8UAMHtYtN/a3r67Xy+724DMakBFR5f8m+6/H2vGitdOpP0WPsBZ8CYduuQ== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass header.d=linutronix.de header.i=@linutronix.de header.a=rsa-sha256 header.s=2020 header.b=uFAGwKh1; dkim=pass header.d=linutronix.de header.i=@linutronix.de header.a=ed25519-sha256 header.s=2020e header.b=d7cB27l5; arc=none smtp.remote-ip=193.142.43.55 X-Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8487D606A330 for <netdev@vger.kernel.org>; Fri, 27 Nov 2026 07:40:53 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 8487D606A330 X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1795765251; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=YJURtdxXhk/lHCVcZI4FeclTTDjf9Rsj5NTK+HMt0g0=; b=uFAGwKh1mYYcN/ZFaYoL/O++vUd/8BRC/Q6CKLoryXdWQnbz4i7T3nlfwJu0RrT2pR83jd MaB1SZbA7RxlKtXsdcIFvvKtwXZdWi6KjGiazAoJLrzfmTJpDxzkDYguXvFhkg5UnUpOWj BoANrsYMaFLlqw29N51lHAgdJ4RIrK6Ny3hgAyHudv99PLEYDV8+5IGmotGSpTXMDDci/A SzY/Hpg0DUfCFPkwVPGWQIqnpVr0XByOay64ZNLjBz1UoDnNwstrPGGbjGARQgjViEhv01 Od6ZgAU1B42fUipbUdzifW/3yUPCo+zvejLp5p1FnF8B+R2kRf4xmgigowkh7w== X-DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1795765251; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=YJURtdxXhk/lHCVcZI4FeclTTDjf9Rsj5NTK+HMt0g0=; b=d7cB27l51k0fyU1WX7KekOMVfSV6Leshcm+YbbDPZWfQ1ftX5UkN2KG3LxKyT3Zh7vbE34 /cgvxw1qzZiLBkBw== X-Cc: netdev@vger.kernel.org, j-rameshbabu@ti.com, andrew+netdev@lunn.ch, danishanwar@ti.com, d-qiu@ti.com, davem@davemloft.net, fmaurer@redhat.com, kuba@kernel.org, neelima@ti.com, pabeni@redhat.com, praneeth@ti.com, pratheesh@ti.com, richardcochran@gmail.com, horms@kernel.org, vigneshr@ti.com, willemdebruijn.kernel@gmail.com, daniel.machon@microchip.com, edumazet@kernel.org X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list X-In-Reply-To: <179570403216.3135.10008194988280246872@kernel.org>