[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC PATCH-for-5.2 0/2] net: Do not accept packets with invalid huge
From: |
Peter Maydell |
Subject: |
Re: [RFC PATCH-for-5.2 0/2] net: Do not accept packets with invalid huge size |
Date: |
Sat, 28 Nov 2020 20:59:03 +0000 |
On Fri, 27 Nov 2020 at 15:45, Philippe Mathieu-Daudé <philmd@redhat.com> wrote:
>
> Hi,
>
> This is a simple attempt to avoid the following pattern:
>
> ssize_t pkt_size = get_pkt_size(); // returns errno
>
> // no check
>
> send_packet(size_t size=pkt_size); // size casted to unsigned
> // -> overflow
"RFC" and "for-5.2" are not a great combination at this point :-(
What are the consequences if we don't put this patchset in 5.2?
thanks
-- PMM