Thread (7 messages) 7 messages, 3 authors, 2018-09-13

Re: [PATCH crypto-2.6] crypto: ccp: add timeout support in the SEV command

From: Borislav Petkov <bp@alien8.de>
Date: 2018-09-11 13:53:30
Also in: lkml

On Mon, Sep 10, 2018 at 02:06:57PM -0500, Brijesh Singh wrote:
Nothing prevent user from supplying a bogus number. The main question
is, clamp with what number ?
So you definitely want to forbid too large timeouts - that wouldn't make
any sense anyway. And too small either, because a too small timeout
would make a potentially functioning fw broken.
IMO, if user is overriding the default timeout number then its possible
that user is dealing with a buggy firmware which does not work with
default timeout and silently clamping the value will not help them.
No one said "silently" - you simply say:

	"Correcting PSP	"Correcting PSP probe timeout to X seconds."

when loading the driver so that the user is aware that the value she
entered might not be an optimal one.

-- 
Regards/Gruss,
    Boris.

Good mailing practices for 400: avoid top-posting and trim the reply.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help