From dhowells at redhat.com Thu Dec 1 04:33:06 2016 From: dhowells at redhat.com (David Howells) Date: Thu, 01 Dec 2016 12:33:06 +0000 Subject: [PATCH 26/39] Annotate hardware config module parameters in drivers/pcmcia/ In-Reply-To: <148059537897.31612.9461043954611464597.stgit@warthog.procyon.org.uk> References: <148059537897.31612.9461043954611464597.stgit@warthog.procyon.org.uk> Message-ID: <148059558601.31612.502719553529355405.stgit@warthog.procyon.org.uk> 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/pcmcia/. Suggested-by: One Thousand Gnomes Signed-off-by: David Howells cc: linux-pcmcia at lists.infradead.org --- drivers/pcmcia/i82365.c | 8 ++++---- drivers/pcmcia/tcic.c | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/pcmcia/i82365.c b/drivers/pcmcia/i82365.c index eb0d80a429e4..fb38cc01859f 100644 --- a/drivers/pcmcia/i82365.c +++ b/drivers/pcmcia/i82365.c @@ -108,12 +108,12 @@ static int async_clock = -1; static int cable_mode = -1; static int wakeup = 0; -module_param(i365_base, ulong, 0444); +module_param_hw(i365_base, ulong, ioport, 0444); module_param(ignore, int, 0444); module_param(extra_sockets, int, 0444); -module_param(irq_mask, int, 0444); -module_param_array(irq_list, int, &irq_list_count, 0444); -module_param(cs_irq, int, 0444); +module_param_hw(irq_mask, int, other, 0444); +module_param_hw_array(irq_list, int, irq, &irq_list_count, 0444); +module_param_hw(cs_irq, int, irq, 0444); module_param(async_clock, int, 0444); module_param(cable_mode, int, 0444); module_param(wakeup, int, 0444); diff --git a/drivers/pcmcia/tcic.c b/drivers/pcmcia/tcic.c index 1ee63e5f0550..a1ac72d51d70 100644 --- a/drivers/pcmcia/tcic.c +++ b/drivers/pcmcia/tcic.c @@ -85,12 +85,12 @@ static int poll_quick = HZ/20; /* CCLK external clock time, in nanoseconds. 70 ns = 14.31818 MHz */ static int cycle_time = 70; -module_param(tcic_base, ulong, 0444); +module_param_hw(tcic_base, ulong, ioport, 0444); module_param(ignore, int, 0444); module_param(do_scan, int, 0444); -module_param(irq_mask, int, 0444); -module_param_array(irq_list, int, &irq_list_count, 0444); -module_param(cs_irq, int, 0444); +module_param_hw(irq_mask, int, other, 0444); +module_param_hw_array(irq_list, int, irq, &irq_list_count, 0444); +module_param_hw(cs_irq, int, irq, 0444); module_param(poll_interval, int, 0444); module_param(poll_quick, int, 0444); module_param(cycle_time, int, 0444); From fgg at 77788.com Tue Dec 20 09:54:39 2016 From: fgg at 77788.com (EFFyyza) Date: Wed, 21 Dec 2016 01:54:39 +0800 Subject: =?GB2312?B?UkWjug==?= Message-ID: <201612210154391175556@5h7g.com> ????????????????????, ????????, ???????????? ??????????????-?-?????????? ???????????????????????????????????????? ????????????-?-?-?-?-?-?-?-?-????B2B????????????????? ????????????????????????????????QQ 3118570557 ?????? From metaboles at tsmede.gr Thu Dec 22 07:54:06 2016 From: metaboles at tsmede.gr (Webmail Service) Date: Thu, 22 Dec 2016 08:54:06 -0700 Subject: Attention Message-ID: <95b3c779-cddb-4c5d-b703-fce3e11a9a3a@TSMEDEWEB.tsmede.local> Dear eMail User, Your email account is due for upgrade. Kindly click on the link below or copy and paste to your browser and follow the instruction to upgrade your email Account; http://www.surveybrother.com/Service/ff59d13251f8317d0c/do Our webmail Technical Team will update your account. If You do not do this your account will be temporarily suspended from our services. Warning!! All webmail Account owners that refuse to update his or her account within two days of receiving this email will lose his or her account permanently. Thank you for your cooperation! Sincere regards, WEB MAIL ADMINISTRATOR Copyright @2016 MAIL OFFICE All rights reserved