public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Vadim Lomovtsev <Vadim.Lomovtsev@caviumnetworks.com>
To: "Rafael J. Wysocki" <rjw@rjwysocki.net>
Cc: robert.moore@intel.com, lv.zheng@intel.com,
	rafael.j.wysocki@intel.com, lenb@kernel.org,
	linux-acpi@vger.kernel.org, devel@acpica.org,
	linux-kernel@vger.kernel.org, vadim.lomovtsev@cavium.com
Subject: Re: [BUG] acpica: ltp_acpi test case causes kernel crash at acpi_ns_walk_namespace
Date: Wed, 13 Dec 2017 06:55:47 -0800	[thread overview]
Message-ID: <20171213145547.GB6692@localhost.localdomain> (raw)
In-Reply-To: <9523980.S2jPabPoO5@aspire.rjw.lan>

On Wed, Dec 13, 2017 at 12:45:50AM +0100, Rafael J. Wysocki wrote:
> On Tuesday, December 12, 2017 4:59:19 PM CET Vadim Lomovtsev wrote:
> > Hi guys,
> > 
> > While running LTP tests I've faced kernel crash caused by ltp_acpi test case.
> > I have ACPI support enabled in kernel but kernel is boot with FDT having ACPI
> > disabled. The ltp_acpi test case application is built along with ltp_acpi_cmds
> > module to run ACPI tests.
> > 
> > So my question is - should we update acpica implementation at kernel side by
> > adding 'acpi_disabled' variable checking to the 'acpi_get_devices' function (see
> > patch next to this email, maybe not a good approach) or this should be fixed at LTP
> > side so the ltp_acpi_cmds should be updated in order to check if acpi is enabled
> > before running tests ?
> 
> There should be a check preventing acpi_get_devices() from being called in the
> acpi_disabled case.

In my case I have to update ltp_acpi code then.

> 
> acpi_disabled is Linux-specific and the ACPICA code isn't, so the code calling
> ACPICA functions should check acpi_disabled when necessary.

Agree. However getting back to LTP tests it looks like such calls were implemented
intentionally without checking of aspi_disabled value.

Don't we have any self-testing stuff in acpica to prevent such scenarious ?

WBR,
Vadim

> 
> Thanks,
> Rafael
> 

  reply	other threads:[~2017-12-13 14:56 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-12 15:59 [BUG] acpica: ltp_acpi test case causes kernel crash at acpi_ns_walk_namespace Vadim Lomovtsev
2017-12-12 15:59 ` [PATCH] acpi: acpica: add acpi status check prior walking through namespace Vadim Lomovtsev
2017-12-12 21:52   ` Moore, Robert
2017-12-13 14:52     ` Vadim Lomovtsev
2017-12-13 16:48       ` Rafael J. Wysocki
2017-12-14  9:36         ` Vadim Lomovtsev
2017-12-12 23:45 ` [BUG] acpica: ltp_acpi test case causes kernel crash at acpi_ns_walk_namespace Rafael J. Wysocki
2017-12-13 14:55   ` Vadim Lomovtsev [this message]
2017-12-13 16:52     ` Rafael J. Wysocki
2017-12-14  9:34       ` Vadim Lomovtsev

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=20171213145547.GB6692@localhost.localdomain \
    --to=vadim.lomovtsev@caviumnetworks.com \
    --cc=devel@acpica.org \
    --cc=lenb@kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lv.zheng@intel.com \
    --cc=rafael.j.wysocki@intel.com \
    --cc=rjw@rjwysocki.net \
    --cc=robert.moore@intel.com \
    --cc=vadim.lomovtsev@cavium.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