From: Harald Hoyer <harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: Andrey Borzenkov <arvidjaar-JGs/UdohzUI@public.gmane.org>
Cc: initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH] Harden check for used modules in hostonly mode
Date: Wed, 04 Aug 2010 18:31:58 +0200 [thread overview]
Message-ID: <4C5995FE.2010009@redhat.com> (raw)
In-Reply-To: <20100509182358.3768.89142.stgit@cooker>
pushed
On 05/09/2010 08:23 PM, Andrey Borzenkov wrote:
> Make sure that we do not accept module name which is substring of
> some other module name. This resulted in piix being mistakenly loaded
> together with ata_piix. It completely broke DVD access here.
>
> Signed-off-by: Andrey Borzenkov<arvidjaar-JGs/UdohzUI@public.gmane.org>
>
> ---
>
> dracut-functions | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/dracut-functions b/dracut-functions
> index fdcfb7e..ebf09c0 100755
> --- a/dracut-functions
> +++ b/dracut-functions
> @@ -502,7 +502,7 @@ instmods() {
> [[ -f $initdir/$1 ]]&& { shift; continue; }
> # If we are building a host-specific initramfs and this
> # module is not already loaded, move on to the next one.
> - [[ $hostonly ]]&& ! grep -q "${mod//-/_}" /proc/modules&& \
> + [[ $hostonly ]]&& ! grep -qe "\<${mod//-/_}\>" /proc/modules&& \
> ! echo $add_drivers | grep -qe "\<${mod}\>"&& {
> shift; continue;
> }
>
> --
> To unsubscribe from this list: send the line "unsubscribe initramfs" in
> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
prev parent reply other threads:[~2010-08-04 16:31 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-09 18:23 [PATCH] Harden check for used modules in hostonly mode Andrey Borzenkov
2010-08-04 6:55 ` Andrey Borzenkov
2010-08-04 16:31 ` Harald Hoyer [this message]
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=4C5995FE.2010009@redhat.com \
--to=harald-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
--cc=arvidjaar-JGs/UdohzUI@public.gmane.org \
--cc=initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.