From: Xiaomeng Tong <xiam0nd.tong@gmail.com>
To: jirislaby@kernel.org
Cc: xiam0nd.tong@gmail.com, gregkh@linuxfoundation.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] vt_ioctl: fix potential spectre v1 in VT_DISALLOCATE
Date: Wed, 23 Feb 2022 14:47:34 +0800 [thread overview]
Message-ID: <20220223064734.28874-1-xiam0nd.tong@gmail.com> (raw)
In-Reply-To: <e0071c1e-cc20-e000-0673-f98e6f8fc316@kernel.org>
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
prev parent reply other threads:[~2022-02-23 6:47 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-22 3:56 Xiaomeng Tong
2022-02-22 6:56 ` Jiri Slaby
2022-02-23 6:47 ` Xiaomeng Tong [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220223064734.28874-1-xiam0nd.tong@gmail.com \
--to=xiam0nd.tong@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=jirislaby@kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®