On 2026-12-01 08:55:24 [+0000], netd…@kernel.org wrote:
> Thank you for your contribution! Sashiko AI review found 1 potential
> issue(s) to consider.
>
> Critical: 0 · High: 0 · Medium: 1 · Low: 0
>
…
> > @@ -342,33 +341,40 @@ struct sk_buff *hsr_create_tagged_frame(struct hsr_frame_info *frame,
> > /* set the lane id properly */
> > hsr_set_path_id(frame, hsr_ethhdr, port);
> > return skb_clone(frame->skb_hsr, GFP_ATOMIC);
> > - } else if (port->dev->features & NETIF_F_HW_HSR_TAG_INS) {
> > - return skb_clone(frame->skb_std, GFP_ATOMIC);
> > }
> >
> > - /* Create the new skb with enough headroom to fit the HSR tag */
> > - skb = __pskb_copy(frame->skb_std,
> > - skb_headroom(frame->skb_std) + HSR_HLEN, GFP_ATOMIC);
> > + skb = skb_clone(frame->skb_std, GFP_ATOMIC);
> > if (!skb)
> > return NULL;
> > - skb_reset_mac_header(skb);
> >
> > - if (skb->ip_summed == CHECKSUM_PARTIAL)
> > - skb->csum_start += HSR_HLEN;
> > + if (port->dev->features & NETIF_F_HW_HSR_TAG_INS)
> > + return skb;
> > +
> > + /* Ensure the cloned skb has enough headroom to fit the HSR tag */
> > + if (skb_cow_head(skb, skb_metadata_len(skb) + HSR_HLEN))
> > + goto err;
>
> [Severity: Medium]
> Can the HW timestamp requested for these tagged frames ever be delivered?
…
> The timestamp is then dropped.
>
> The path is hsr_dev_xmit() -> hsr_forward_skb() -> hsr_forward_do() ->
> hsr_create_tagged_frame() -> hsr_xmit() -> dev_queue_xmit(). If HW TX
> timestamping is enabled on the slave NICs, could every timestamp-requesting
> frame sent through hsr0 use the TX timestamp resource on both ports for
> nothing? On drivers with a single outstanding TX timestamp slot, could
> this cause real PTP frames on that port to lose their timestamps?
The socket is attached later in the series. It is possible to forward
the timestamp properly within this series.
…
Sebastian