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>] [day] [month] [year] [list]
Message-ID: <1376424911.11676.1.camel@deadeye.wl.decadent.org.uk>
Date:	Tue, 13 Aug 2013 22:15:11 +0200
From:	Ben Hutchings <ben@...adent.org.uk>
To:	LKML <linux-kernel@...r.kernel.org>
Cc:	tpmdd-devel@...ts.sourceforge.net,
	Bjorn Helgaas <bhelgaas@...gle.com>
Subject: [PATCH] modpost, tpm_tis: Remove wildcard ACPI and PNP aliases

tpm_tis has a 'spare' entry in its device ID table for adding
user-specified device IDs.  This will be ignored by the driver
matching logic, but modpost turns it into:

alias:          acpi*::*
alias:          pnp:d*

This seems to result in the driver being loaded on almost all PCs.
Change do_pnp_device_entry() to stop if it finds such an entry,
similarly to do_usb_entry_multi().

Signed-off-by: Ben Hutchings <ben@...adent.org.uk>
---
 scripts/mod/file2alias.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/scripts/mod/file2alias.c b/scripts/mod/file2alias.c
index 2370863..7dc7edf 100644
--- a/scripts/mod/file2alias.c
+++ b/scripts/mod/file2alias.c
@@ -535,6 +535,14 @@ static void do_pnp_device_entry(void *symval, unsigned long size,
 		char acpi_id[sizeof(*id)];
 		int j;
 
+		/*
+		 * Some modules (tpm_tis) have empty slots as
+		 * placeholder for run-time specification that results
+		 * in catch-all alias
+		 */
+		if (!**id)
+			return;
+
 		buf_printf(&mod->dev_table_buf,
 			   "MODULE_ALIAS(\"pnp:d%s*\");\n", *id);
 



Download attachment "signature.asc" of type "application/pgp-signature" (829 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ