From: Thomas Gleixner <tglx@linutronix.de>
To: Jiang Jiasheng <jiasheng@iscas.ac.cn>
Cc: linux-kernel@vger.kernel.org, Jiang Jiasheng <jiasheng@iscas.ac.cn>
Subject: Re: [PATCH 6/6] irq: Potentially 'offset out of size' bug
Date: Fri, 10 Sep 2021 12:28:16 +0200 [thread overview]
Message-ID: <87tuisd8sf.ffs@tglx> (raw)
In-Reply-To: <1631244372-1817960-1-git-send-email-jiasheng@iscas.ac.cn>
On Fri, Sep 10 2021 at 03:26, Jiang Jiasheng wrote:
> The find_next_bit() use nr_irqs as size, and using it without
> any check might cause its returned value out of the size
Why exactly is this a problem? The return value has to be checked at the
call site anyway.
Thanks,
tglx
prev parent reply other threads:[~2021-09-10 10:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-10 3:26 [PATCH 6/6] irq: Potentially 'offset out of size' bug Jiang Jiasheng
2021-09-10 10:28 ` Thomas Gleixner [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=87tuisd8sf.ffs@tglx \
--to=tglx@linutronix.de \
--cc=jiasheng@iscas.ac.cn \
--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