qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] net: mcf: check buffer descriptor length


From: P J P
Subject: Re: [Qemu-devel] [PATCH] net: mcf: check buffer descriptor length
Date: Thu, 22 Sep 2016 12:06:22 +0530 (IST)

  Hello Paolo,

+-- On Wed, 21 Sep 2016, Paolo Bonzini wrote --+
| Not exactly, because addr changes on every call to mcf_fec_read_bd.

  True, but the initial address 's->tx_descriptor' and 's->etdsr' could be set 
by user in imx_fec_write(). If bd.flags is set to FEC_BD_W, addr is reset to 
initial s->tx_descriptor value of s->etdsr.

        if ((bd.flags & FEC_BD_W) != 0) {                                       
            addr = s->etdsr;                                                    
        }

| You can add a limit (e.g. 1024 or 2048 descriptors), but the patches are
| incorrect.

  Okay, I'll send a revised patch.

Thank you.
--
Prasad J Pandit / Red Hat Product Security Team
47AF CE69 3A90 54AA 9045 1053 DD13 3D32 FE5B 041F



reply via email to

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