[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20170928071306.GB1498@leo.usersys.redhat.com>
Date: Thu, 28 Sep 2017 15:13:06 +0800
From: Hangbin Liu <haliu@...hat.com>
To: Michal Kubecek <mkubecek@...e.cz>
Cc: Hangbin Liu <liuhangbin@...il.com>,
Stephen Hemminger <stephen@...workplumber.org>,
netdev@...r.kernel.org, Phil Sutter <phil@....cc>
Subject: Re: [PATCHv3 iproute2 1/2] lib/libnetlink: re malloc buff if size is
not enough
Hi Michal,
On Thu, Sep 21, 2017 at 09:34:20AM +0200, Michal Kubecek wrote:
> I will have to check but IIRC it might be possible to use zero length
> for the peek to only check the length which could help you to avoid both
> the reallocation and copying the same data from kernel to userspace
> twice.
Yes, msg with zero buf length also works. I will post a new patch after fix.
Thanks
Hangbin
Powered by blists - more mailing lists