[lkml]   [2019]   [Mar]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] block: nbd: fix a missing check for nla_nest_start
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,


 \ /
  Last update: 2019-03-15 14:28    [W:0.057 / U:0.376 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site