[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20220223064734.28874-1-xiam0nd.tong@gmail.com>
Date: Wed, 23 Feb 2022 14:47:34 +0800
From: Xiaomeng Tong <xiam0nd.tong@...il.com>
To: jirislaby@...nel.org
Cc: xiam0nd.tong@...il.com, gregkh@...uxfoundation.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] vt_ioctl: fix potential spectre v1 in VT_DISALLOCATE
On Tue, 22 Feb 2022 07:56:13 +0100, Jiri Slaby wrote:
> Could you add a break; here and remove the else branching completely?
> ...
> You could simply do:
> arg = array_index_nospec(arg - 1, MAX_NR_CONSOLES);
> and remove
> --arg;
> completely.
Already adjusted as suggested in Patch v2, thanks!
Best regards,
--
Xiaomeng Tong
Powered by blists - more mailing lists