From: Greg KH <gregkh@linuxfoundation.org>
To: Xia Fukun <xiafukun@huawei.com>
Cc: prajnoha@redhat.com, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v7] kobject: Fix global-out-of-bounds in kobject_action_type()
Date: Thu, 15 Jun 2023 08:04:18 +0200 [thread overview]
Message-ID: <2023061554-defective-islamist-fab5@gregkh> (raw)
In-Reply-To: <c8e7106c-872f-4d18-f4d8-de4c450fc587@huawei.com>
On Thu, Jun 15, 2023 at 09:43:34AM +0800, Xia Fukun wrote:
>
> On 2023/6/15 4:09, Greg KH wrote:
>
> >
> > How did you test it? How have you verified that the previous failures
> > were caught this time?
> >
>
> My testing method is to apply the patch, compile the kernel image,
> and start the QEMU virtual machine. Then compile and execute the code
> mentioned in the patch that triggers out-of-bounds issues.
>
> In addition, the following operations will be performed to verify the
> functions mentioned by Peter Rajnoha <prajnoha@redhat.com>:
>
> # echo "add fe4d7c9d-b8c6-4a70-9ef1-3d8a58d18eed A=1 B=abc" >
> /sys/block/ram0/uevent
>
> # udevadm monitor --kernel --env
> monitor will print the received events for:
> KERNEL - the kernel uevent
>
> KERNEL[189.376386] add /devices/virtual/block/ram0 (block)
> ACTION=add
> DEVPATH=/devices/virtual/block/ram0
> SUBSYSTEM=block
> SYNTH_UUID=fe4d7c9d-b8c6-4a70-9ef1-3d8a58d18eed
> SYNTH_ARG_A=1
> SYNTH_ARG_B=abc
> DEVNAME=/dev/ram0
> DEVTYPE=disk
> DISKSEQ=14
> SEQNUM=3781
> MAJOR=1
> MINOR=0
So you have not run this on any real systems? Please try doing that
(boot your laptop, your server, your server farm, etc.) with it and do a
lot of testing that way.
To only use qemu means it has not really been tested at all, which now
explains why you didn't find the previous problems with this patch
series as this is a kernel path that is HIGHLY dependent on the hardware
involved (i.e. it wants real hardware, not emulated ones.)
thanks,
greg k-h
next prev parent reply other threads:[~2023-06-15 6:05 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-18 9:16 [PATCH v7] kobject: Fix global-out-of-bounds in kobject_action_type() Xia Fukun
2023-06-14 11:32 ` Xia Fukun
2023-06-14 20:09 ` Greg KH
2023-06-15 1:43 ` Xia Fukun
2023-06-15 6:04 ` Greg KH [this message]
2023-10-05 11:48 ` Greg KH
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=2023061554-defective-islamist-fab5@gregkh \
--to=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=prajnoha@redhat.com \
--cc=xiafukun@huawei.com \
/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