2023-01-19 21:11:10

by Alexander Shishkin

[permalink] [raw]
Subject: Re: [PATCH v1 1/6] virtio console: Harden multiport against invalid host input

Greg Kroah-Hartman <[email protected]> writes:

> On Thu, Jan 19, 2023 at 08:52:02PM +0200, Alexander Shishkin wrote:
>> Greg Kroah-Hartman <[email protected]> writes:
>>
>> > Why did I only get a small subset of these patches?
>>
>> I did what get_maintainer told me. Would you like to be CC'd on the
>> whole thing?
>
> If you only cc: me on a portion of the series, I guess you only want me
> to apply a portion of it? if so, why is it a longer series?

I was expecting that this series will eventually go in via the virtio
maintainers, assuming you can give your acks to the char bits.

Or, I can split off the char bits and send them to you
separately. Whichever makes the most sense.

>> > But, this still feels wrong. Why is this happening here, in init_vqs()
>> > and not in the calling function that already did a bunch of validation
>> > of the ports and the like? Are those checks not enough? if not, fix it
>> > there, don't spread it out all over the place...
>>
>> Good point! And there happens to already be 28962ec595d70 that takes
>> care of exactly this case. I totally missed it.
>
> So this series is not needed? Or just this one?

Just this one.

Regards,
--
Alex