From: Cyrill Gorcunov <gorcunov@gmail.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: mingo@elte.hu, hpa@zytor.com, tglx@linutronix.de,
andi@firstfloor.org, linux-kernel@vger.kernel.org,
linux-acpi@vger.kernel.org
Subject: Re: [patch 1/5] x86: ACPI - add checking for NULL early param
Date: Tue, 22 Jul 2008 14:19:45 +0400 [thread overview]
Message-ID: <20080722101945.GA6699@lenovo> (raw)
In-Reply-To: <20080722025332.afddd49b.akpm@linux-foundation.org>
[Andrew Morton - Tue, Jul 22, 2008 at 02:53:32AM -0700]
| On Sat, 05 Jul 2008 15:53:35 +0400 Cyrill Gorcunov <gorcunov@gmail.com> wrote:
|
| > Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
| > ---
| >
| > Index: linux-2.6.git/drivers/acpi/tables.c
| > ====================================================================
| > --- linux-2.6.git.orig/drivers/acpi/tables.c 2008-01-21 23:14:47.000000000 +0300
| > +++ linux-2.6.git/drivers/acpi/tables.c 2008-07-05 12:24:16.000000000 +0400
| > @@ -300,6 +300,8 @@ int __init acpi_table_init(void)
| >
| > static int __init acpi_parse_apic_instance(char *str)
| > {
| > + if (!str)
| > + return -EINVAL;
| >
| > acpi_apic_instance = simple_strtoul(str, NULL, 0);
| >
|
| Could you please explain this patch?
|
we could get NULL deref here - if you start kernel as
qemu-system-x86_64 -kernel arch/x86/boot/bzImage -append "root=/dev/sda acpi_apic_instance" ../images/root-j
so user was not carried about correct boot option and the kernel respond by
hang - which is not good I think. Actually - by the patch we easy protect
ourself from user-madness :)
- Cyrill -
next prev parent reply other threads:[~2008-07-22 10:20 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20080705115334.892720771@gmail.com>
2008-07-05 11:53 ` [patch 1/5] x86: ACPI - add checking for NULL early param Cyrill Gorcunov
2008-07-22 9:53 ` Andrew Morton
2008-07-22 10:19 ` Cyrill Gorcunov [this message]
2008-07-05 11:53 ` [patch 2/5] x86: idle process " Cyrill Gorcunov
2008-07-05 11:53 ` [patch 3/5] x86: io delay " Cyrill Gorcunov
2008-07-05 11:53 ` [patch 4/5] x86: smpboot maxcpus " Cyrill Gorcunov
2008-07-05 11:53 ` [patch 5/5] x86: e820 memmap " Cyrill Gorcunov
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=20080722101945.GA6699@lenovo \
--to=gorcunov@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=andi@firstfloor.org \
--cc=hpa@zytor.com \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=tglx@linutronix.de \
/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