qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] rtl8139: fix large_send_mss divide-by-zero


From: Michael Tokarev
Subject: Re: [PATCH] rtl8139: fix large_send_mss divide-by-zero
Date: Fri, 14 Apr 2023 12:17:54 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0

13.04.2023 20:19, Stefan Hajnoczi wrote:
If the driver sets large_send_mss to 0 then a divide-by-zero occurs.
Even if the division wasn't a problem, the for loop that emits MSS-sized
packets would never terminate.

Solve these issues by skipping offloading when large_send_mss=0.

Cc: qemu-stable@nongnu.org.

Buglink: https://gitlab.com/qemu-project/qemu/-/issues/1582
Fixes: 6d71357a3b65 ("rtl8139: honor large send MSS value")

/mjt




reply via email to

[Prev in Thread] Current Thread [Next in Thread]