mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andi Shyti <andi.shyti@linux.intel.com>
To: l1138897701@163.com
Cc: jani.nikula@linux.intel.com, luoqing@kylinos.cn,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] selftests: i915: Use struct_size() helper in kmalloc()
Date: Mon, 10 Feb 2025 18:08:56 +0100	[thread overview]
Message-ID: <Z6oyqL8aDCOmoCbd@ashyti-mobl2.lan> (raw)
In-Reply-To: <20250208013539.3586855-1-l1138897701@163.com>

Hi luoqing,

On Sat, Feb 08, 2025 at 09:35:39AM +0800, l1138897701@163.com wrote:
> From: luoqing <luoqing@kylinos.cn>
> 
> Make use of the struct_size() helper instead of an open-coded version,
> in order to avoid any potential type mistakes or integer overflows that,
> in the worst scenario, could lead to heap overflows.
> 
> Signed-off-by: luoqing <luoqing@kylinos.cn>

Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com>

Thanks,
Andi

  reply	other threads:[~2025-02-10 17:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-08  1:35 l1138897701
2025-02-10 17:08 ` Andi Shyti [this message]
2025-02-11  0:12 ` Andi Shyti

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=Z6oyqL8aDCOmoCbd@ashyti-mobl2.lan \
    --to=andi.shyti@linux.intel.com \
    --cc=jani.nikula@linux.intel.com \
    --cc=l1138897701@163.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=luoqing@kylinos.cn \
    /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®