From: Matt Fleming <matt@codeblueprint.co.uk>
To: Arnd Bergmann <arnd@arndb.de>
Cc: "Compostella, Jeremy" <jeremy.compostella@intel.com>,
Ingo Molnar <mingo@kernel.org>,
linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] efibc: avoid stack overflow warning
Date: Sat, 30 Apr 2016 23:46:41 +0100 [thread overview]
Message-ID: <20160430224641.GQ2839@codeblueprint.co.uk> (raw)
In-Reply-To: <18565207.dPI1UNgYiO@wuerfel>
On Sun, 01 May, at 12:34:29AM, Arnd Bergmann wrote:
>
> The sys_restart() system call takes a mutex before calling kernel_restart()
> or kernel_poweroff().
>
> I've had a closer look now and found that there are a few other
> callers of kernel_restart, so I guess if you restart using sysctl
> at the exact same time as calling /sbin/reboot, things may break.
Right. Or if the dm-verify-target driver saw an error.
> It's not something we'd have to worry about in practice, but it does
> make my patch incorrect. Should we come up with a different way to
> do it?
Jeremy proposed a patch to dynamically allocate the memory, which I
think is the correct way to go given that our (reasonable) assumptions
about reboot notifier concurrency are not guaranteed,
https://lkml.kernel.org/r/87h9eked24.fsf@jcompost-MOBL1.tl.intel.com
next prev parent reply other threads:[~2016-04-30 22:46 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-29 17:48 [PATCH] efibc: avoid stack overflow warning Arnd Bergmann
2016-04-30 20:14 ` Matt Fleming
2016-04-30 22:34 ` Arnd Bergmann
2016-04-30 22:46 ` Matt Fleming [this message]
2016-04-30 23:25 ` Arnd Bergmann
2016-05-01 13:13 ` Matt Fleming
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=20160430224641.GQ2839@codeblueprint.co.uk \
--to=matt@codeblueprint.co.uk \
--cc=arnd@arndb.de \
--cc=jeremy.compostella@intel.com \
--cc=linux-efi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@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