qio: Add a check to pullupblock
authorBarret Rhoden <brho@cs.berkeley.edu>
Tue, 4 Oct 2016 19:32:58 +0000 (15:32 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Thu, 6 Oct 2016 19:41:48 +0000 (15:41 -0400)
commit27c7c0faf2ab08ff42e42ea641e254cb5d96ae6b
tree1f902aad99a681f649bd88becf4d684b704bc5bb
parent2a2afd8e7884cc5f009373b41f3cdd786eb0c91a
qio: Add a check to pullupblock

This delays the impending doom associated with BLOCK_EXTRA_DATA.  It's
relatively easy to trigger the problem if the block len (and block list
len) is < n.  Just write gibberish into a UDP data FD!

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/src/ns/qio.c