Re: [PATCH] unix: avoid use-after-free in ep_remove_wait_queue

From: Rainer Weikusat
Date: Tue Nov 10 2015 - 12:17:16 EST


David Miller <davem@xxxxxxxxxxxxx> writes:
> From: Rainer Weikusat <rweikusat@xxxxxxxxxxxxxxxxxxxxxxx>
> Date: Mon, 09 Nov 2015 14:40:48 +0000
>
>> + __remove_wait_queue(&unix_sk(u->peer_wake.private)->peer_wait,
>> + &u->peer_wake);
>
> This is more simply:
>
> __remove_wait_queue(&unix_sk(u->peer_wake.private)->peer_wait, q);

Thank you for pointing this out.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/