lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Tue, 18 Oct 2011 14:45:05 -0700
From:	Andrew Morton <akpm@...ux-foundation.org>
To:	Kees Cook <kees@...flux.net>
Cc:	linux-kernel@...r.kernel.org,
	Marco Stornelli <marco.stornelli@...il.com>,
	Sergiu Iordache <sergiu@...omium.org>,
	Seiji Aguchi <seiji.aguchi@....com>,
	James Bottomley <JBottomley@...allels.com>
Subject: Re: [PATCH] ramoops: update parameters only after successful init

On Tue, 18 Oct 2011 11:01:27 -0700
Kees Cook <kees@...flux.net> wrote:

> If a platform device exists on the system, but ramoops fails to attach to
> it, the module parameters are overridden before ramoops can fall back and
> try to use passed module parameters. Move update to end of init routine.

Modifying the module paremeters in this way seems like a Wrong Thing To
Do and a rather nasty hack.

I'd have thought that /sys/module/ramoops/parameters should reflect the
options which were provided to the module and should not be modified by
the kernel behind everyone's back.

If we wish to display the configuration which the driver acquired from
the platform data then sure, add an interface to do that.  But it's
wrong to go and pretend that this is what the user provided to
modprobe!

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ