Thread (5 messages) flat view 5 messages, 3 authors, 2021-09-15

Re: [PATCH v2 net] net: qrtr: make checks in qrtr_endpoint_post() stricter

From: Yassine Oudjana <y.oudjana@protonmail.com>
Date: 2021-09-15 18:40:07
Also in: linux-arm-msm

On Wednesday, September 15th, 2021 at 9:30 PM, Steev Klimaszewski [off-list ref] wrote:
On 9/6/21 1:53 AM, Dan Carpenter wrote:
quoted
On Fri, Sep 03, 2021 at 07:29:28PM +0000, Yassine Oudjana wrote:
quoted
quoted
if (cb->dst_port != QRTR_PORT_CTRL && cb->type != QRTR_TYPE_DATA &&
@@ -506,8 +506,12 @@ int qrtr_endpoint_post(struct qrtr_endpoint
*ep, const void *data, size_t len)

if (cb->type == QRTR_TYPE_NEW_SERVER) {

/* Remote node endpoint can bridge other distant nodes */

-   const struct qrtr_ctrl_pkt *pkt = data + hdrlen;

-   const struct qrtr_ctrl_pkt *pkt;

-   if (size < sizeof(*pkt))

-   goto err;


-   pkt = data + hdrlen;

    qrtr_node_assign(node, le32_to_cpu(pkt->server.node));

    }


--

2.20.1
This is crashing MSM8996. I get these messages (dmesg | grep

remoteproc):

Yes. I apologize for that. The fix has been merged already.
regards,

dan carpenter
Where has the fix been merged to?  5.14.4 released with this patch in

it, and wifi is now crashing on the Lenovo Yoga C630 with the same

messages that Yassine was seeing.
The fix is in master[1]. You need to cherry-pick it.

[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d2cabd2dc8da78faf9b690ea521d03776686c9fe
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help