Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1623638

Re: [PATCH 32/38] Annotate hardware config module parameters in drivers/video/

Path csiph.com!usenet.pasdenom.info!news.redatomik.org!aioe.org!bofh.it!news.nic.it!robomod
From Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Newsgroups linux.kernel
Subject Re: [PATCH 32/38] Annotate hardware config module parameters in drivers/video/
Date Fri, 14 Apr 2017 13:30:02 +0200
Message-ID <tw7Al-u0-11@gated-at.bofh.it> (permalink)
References <tsWBr-5sA-3@gated-at.bofh.it> <tsWBv-5sA-107@gated-at.bofh.it> <tw7Am-u0-13@gated-at.bofh.it> <tsWBv-5sA-107@gated-at.bofh.it>
X-Auditid b6c32a2c-f79be6d0000051f7-58-58f0b21161f0
User-Agent KMail/4.13.3 (Linux/3.13.0-96-generic; KDE/4.13.3; x86_64; ; )
MIME-Version 1.0
Content-Transfer-Encoding 7Bit
Content-Type text/plain; charset=us-ascii
X-Brightmail-Tracker H4sIAAAAAAAAA+NgFlrIKsWRmVeSWpSXmKPExsWy7bCmuq7Qpg8RBjNXsVi8a/rNYjFpyl82 i+bF69ksph37x2Sx9U4Tm8WJvg+sFpd3zWGz+NDziM1i/fxbbA6cHtua97F67J+7ht2j9eQm Vo/3+66yeRy/sZ3J4/MmuQC2KC6blNSczLLUIn27BK6Mzjf9zAULeCrO3z/G2MDYwdXFyMkh IWAiceD1VFYIW0ziwr31bCC2kMBSRon2zzldjFxAdjuTxN7pF9hgGj7dPsgGkZjDKPH7/C0o 5yujxMXL8xlBqtgErCQmtq8Cs0UE1CUeLdvIDFLELNDBJLFtzTmgfRwcwgKREtf/6IOYLAKq EqcaNUDKeQU0JSbs7mIBsUUFvCS27GtnArE5BUIlGve9ZIeoEZT4MfkeWA2zgLzEvv0QHzAL 6EicPbaOEWSVhMA+dok5zQuZQOZLCMhKbDrADPGAi8Tap11MELawxKvjW9ghbGmJv0tvMULY 0xkltv+W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HGE2B3pvILCWanA9MDHkl8YYm5ibmxgYW 5paWJkZK4ryNs5+FCwmkJ5akZqemFqQWwfQxcXBKNTCK6rT8P7hvmrkB62ZrPW3DhS8u/hSa rN/MP5ltrlGkuewH0dNzos9zR96NqHwdnr6NS7JNaNfGvdf3btX0utjPMMd6wV65oLMGD+cb Ktopx23NeWxv4Pc/+Z2X5AauyQ8mTzu2IlNlX3qCsebVxEihq1I3HaVk/VsZd5esML7w++vd p3EsdoxKLMUZiYZazEXFiQCibOC21AIAAA==
X-Mtr 20000000000000000@CPGS
X-Cms-Mailid 20170414112713epcas5p218f3663e4f0ea4ca1bfaf4155d4724c8
X-Msg-Generator CA
X-Sender-IP 203.254.230.27
X-Local-Sender Bartlomiej ZolnierkiewiczSRPOL-Kernel (TP)삼성전자Senior Software Engineer
X-Global-Sender Bartlomiej ZolnierkiewiczSRPOL-Kernel (TP)Samsung ElectronicsSenior Software Engineer
X-Sender-Code C10EHQC10CD02CD027392
Cms-Type 105P
X-Hopcount 7
X-Cms-Rootmailid 20170414112713epcas5p218f3663e4f0ea4ca1bfaf4155d4724c8
X-Rootmtr 20170414112713epcas5p218f3663e4f0ea4ca1bfaf4155d4724c8
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 34
Organization linux.* mail to news gateway
X-Original-Cc linux-kernel@vger.kernel.org, gnomes@lxorguk.ukuu.org.uk, linux-fbdev@vger.kernel.org, gregkh@linuxfoundation.org, linux-security-module@vger.kernel.org, Tomi Valkeinen <tomi.valkeinen@ti.com>, keyrings@vger.kernel.org, Jaya Kumar <jayalk@intworks.biz>
X-Original-Date Fri, 14 Apr 2017 13:27:11 +0200
X-Original-Message-ID <1776542.mxlLkUsWmV@amdc3058>
X-Original-References <149141141298.29162.5612793122429261720.stgit@warthog.procyon.org.uk> <149141169417.29162.14993661679501972758.stgit@warthog.procyon.org.uk> <CGME20170414112713epcas5p218f3663e4f0ea4ca1bfaf4155d4724c8@epcas5p2.samsung.com> <149141169417.29162.14993661679501972758.stgit@warthog.procyon.org.uk>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1623638

Show key headers only | View raw


On Wednesday, April 05, 2017 06:01:34 PM David Howells wrote:
> When the kernel is running in secure boot mode, we lock down the kernel to
> prevent userspace from modifying the running kernel image.  Whilst this
> includes prohibiting access to things like /dev/mem, it must also prevent
> access by means of configuring driver modules in such a way as to cause a
> device to access or modify the kernel image.
> 
> To this end, annotate module_param* statements that refer to hardware
> configuration and indicate for future reference what type of parameter they
> specify.  The parameter parser in the core sees this information and can
> skip such parameters with an error message if the kernel is locked down.
> The module initialisation then runs as normal, but just sees whatever the
> default values for those parameters is.
> 
> Note that we do still need to do the module initialisation because some
> drivers have viable defaults set in case parameters aren't specified and
> some drivers support automatic configuration (e.g. PNP or PCI) in addition
> to manually coded parameters.
> 
> This patch annotates drivers in drivers/video/.
> 
> Suggested-by: Alan Cox <gnomes@lxorguk.ukuu.org.uk>
> Signed-off-by: David Howells <dhowells@redhat.com>
> cc: Jaya Kumar <jayalk@intworks.biz>
> cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
> cc: linux-fbdev@vger.kernel.org

Acked-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>

Best regards,
--
Bartlomiej Zolnierkiewicz
Samsung R&D Institute Poland
Samsung Electronics

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

Re: [PATCH 32/38] Annotate hardware config module parameters in  drivers/video/ Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> - 2017-04-14 13:30 +0200

csiph-web