Thread (6 messages) 6 messages, 4 authors, 5d ago

Re: [PATCH] mctp: route: verify socket ownership in mctp_lookup_prealloc_tag()

From: Jeremy Kerr <jk@codeconstruct.com.au>
Date: 2026-09-20 08:39:07
Also in: lkml

Hi Hui,
When a socket transmits a packet with `MCTP_TAG_PREALLOC` set,
mctp_lookup_prealloc_tag() iterates over the per-netns `&mns->keys`
list and matches `netid`, `req_tag`, `peer_addr`, and `manual_alloc`,
but omits checking whether `tmp->sk == &msk->sk`.
OK, good catch.

Verify `tmp->sk == &msk->sk` in `mctp_lookup_prealloc_tag()`.
Or we could instead iterate the socket's tag list?

Cheers,


Jeremy
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help