Re: [PATCH RESEND 1/2] x86/boot: validate earlyprintk= baud rate

From: Dave Hansen

Date: Wed May 13 2026 - 13:35:02 EST


> Values greater than BASE_BAUD would produce divisor 0, and
> baud 1 would produce divisor BASE_BAUD, which exceeds 16 bits.

My inclination would be to leave this code as simple as possible. If
users screw up a baud rate, they'll get no output and have to go fix it.

Why does this need to be robust against bad user input?