Re: [PATCH] block: nbd: fix a missing check for nla_nest_start

From: Josef Bacik
Date: Fri Mar 15 2019 - 09:27:46 EST


On Fri, Mar 15, 2019 at 01:31:38AM -0500, Kangjie Lu wrote:
> nla_nest_start may fail and thus deserves a check.
>
> The fix inserts such a check and exits gracefully in case it
> fails.
>

Except it won't because we pre-reserve enough space for that attr. Subsequent
calls could fail, and those are checked properly, but this one won't. Thanks,

Josef