On Sat, 05 Dec 2026 21:54:50 +0000, netd…@kernel.org wrote:
> - [Medium] On SMD, this patch adds a way to lose a packet permanently, > and that packet can be the remote's HELLO.
Agreed. In v3, probe passes the held packets on one at a time, with interrupts enabled, and sets the driver data only when none is left. If qrtr_endpoint_post() fails with -ENOMEM, probe calls msleep(10) and tries the same packet again, 10 tries in all, as SMD would have tried it again from its FIFO. Only then is it dropped, with a warning.
> - [Low] The posted/dropped counts that qcom_smd_qrtr_post_held() > reports are wrong.
Agreed. In v3 the drain calls qrtr_endpoint_post() directly, so every error counts as dropped, and the warning prints the last error. The -EINVAL to 0 conversion stays only on the callback path, where it tells SMD to drop the packet.
> - [High] This problem wasn't introduced by this patch, but there is a > NULL dereference or use-after-free in the unbind window.
Yes, this is older than this patch. It is the remove() problem the notes mention, and the fix will come as its own patch after this one. Clearing the driver data under the lock is not enough on its own: once probe is done, the callback reads the driver data without the lock. pw-bot: cr