Re: [PATCH net 1/4] ptp: ocp: prevent timestamp rearming during detach
From: netdev-bot+sashiko
Date: Sun Nov 22 2026 - 15:41:12 EST
Thank you for your contribution! Sashiko AI review found more severe
issue(s) in other patches of this series. This mail is only an FYI, in case
you want to address the nit picks below when you respin.
Low priority / nit picks for your consideration:
- [Low] The commit message for "ptp: ocp: prevent timestamp rearming
during detach" has a broken trailer block and keeps workflow notes in…
--
ptp: ocp: prevent timestamp rearming during detach
This patch adds a ts_lock mutex and a ts_stopping flag to struct ptp_ocp,
which serializes ptp_ocp_ts_enable() against ptp_ocp_detach(). After
detach sets ts_stopping, later enable requests fail with -ENODEV. Disables
still go through for the PTP core cleanup.
Link: https://lore.kernel.org/r/179502617840.3136.12704245716223038161@xxxxxxxxxx
> Reported by the netdev Sashiko AI review, then checked against the
> current PTP and POSIX-clock paths. A source-derived userspace harness
> forces an enable after detach's disable and reproduces the rearm with
> the old source. With this fix it rejects that enable, waits for an
> enable already in progress, and waits for a mocked active IRQ. Both
> timestamp and combined PPS/EXTTS paths pass with ASan/UBSan. This
> validates ordering with stubbed MMIO/IRQ operations, not an in-kernel
> use-after-free reproduction. No physical card was tested.
>
> Codex prepared the fix, tests and changelog from the review and upstream
> source, at the request to separate common-driver fixes from WiWi support
> and validate removal ordering.
>
> Fixes: 627366c51145 ("ptp: ocp: fix resource freeing order")
>
> Link: https://lore.kernel.org/r/179502617840.3136.12704245716223038161@xxxxxxxxxx
>
> Signed-off-by: Ahmad Byagowi <ahmadexp@xxxxxxxxx>
[Severity: Low]
This isn't a bug, but blank lines separate the Fixes:, Link: and
Signed-off-by: lines from each other.
Tools such as git interpret-trailers, b4 and patchwork only treat the last
paragraph of the message as the trailer block. As written, is
Signed-off-by: the only trailer they will find, with Fixes: and Link:
missed?
Could these three lines go into one trailer block with no blank lines?
The report credit is written as prose ("Reported by the netdev Sashiko AI
review"). Would a Reported-by: tag work better, with the lore URL as a
Closes: or Link: trailer?
Three parts of the body describe how the patch was produced, not what the
change does:
- the userspace harness and ASan/UBSan paragraph
- the "No physical card was tested" note
- the Codex/WiWi paragraph
Could these move below the --- line so they stay out of git history? If
the tool assistance should be recorded, an Assisted-by: style trailer may
fit better than a paragraph in the body.
--
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261118-timecard-common-301f823ddd-0-ahmadexp%40gmail.com