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-next>] [day] [month] [year] [list]
Message-ID: <20091124213723.GA22689@comet.dominikbrodowski.net>
Date:	Tue, 24 Nov 2009 22:37:23 +0100
From:	Dominik Brodowski <linux@...inikbrodowski.net>
To:	x86@...nel.org
Cc:	Komuro <komurojun-mbn@...ty.com>, linux-pcmcia@...ts.infradead.org,
	linux-kernel@...r.kernel.org
Subject: ioports 0x100-0x3af and iomem 0xd000-0xdffff,
	0xa0000000-0xa0ffffff -- safe to use on x86 for pcmcia?

Hej!

One of the most problematic issues with the whole 16-bit PCMCIA subsystem on
the x86 architecture is the following: cards request iomem or ioport
resources, but the PCMCIA subsystem does and can not know reliably at what
addresses iomem and ioport resources may be used, without interfering with
any third hardware.

Currently, we utilize two approaches to correctly "guess" which iomem and
ioport resource areas are safe to use[*]:

- If the PCMCIA bridge resides behind a PCI-PCI bridge or a PCI root bridge
  with specific memory or I/O windows, these resoruces -- if not registered
  otherwise -- are made available to PCMCIA devices. This works great on
  modern hardware, and hasn't caused us any major hassles since its
  introduction in 2.6.13 or so.

- Userspace (pcmcia-cs or pcmciautils) parses /etc/pcmcia/config.opts and
  registers a couple of memory and I/O resources.

  This latter configuration file most often contains 
	include port 0x100-0x3af
	include memory 0xc0000-0xfffff
	include memory 0xa0000000-0xa0ffffff

And so Komuro (CCed) suggested to add these default resource entries to the
kernel, so that it can later use parts of these resource areas to enable
PCMCIA devices without userspace interaction.

Do you think it would be safe to enable these areas by (kernel) default on
x86? Of course, other entries in /proc/io{mem,ports} would be honoured, there
would be a boot option to disable this feature, and some tests are run on the
iomem and ioport resource areas.

Best,
	Dominik

[*] In addition, there are some tests which are run on iomem and ioport
resources before marking them as available to PCMCIA devices, but let's
ignore this aspect for the moment.
--
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