Re: Exposing ROM's though sysfs

From: Martin Mares (mj_at_ucw.cz)
Date: 07/30/04

  • Next message: Jesse Barnes: "Re: Exposing ROM's though sysfs"
    Date:	Fri, 30 Jul 2004 22:13:57 +0200
    To: Jon Smirl <jonsmirl@yahoo.com>
    
    

    > Do I understand it correctly that the ROM-in-sysfs hack is intended only
    > for debugging? If it is so, I do not see why we should do anything complicated
    > in order to avoid root shooting himself in the foot.

    ... for which the config space access code already sets the precedent --
    there exist (rare) devices which have configuration registers with side
    effects on reads, making it possible to produce SCSI errors or even crash
    the system by just dumping the config space. Even on these devices, the
    kernel does not attempt to forbid reading of these registers via sysfs.

                                    Have a nice fortnight

    -- 
    Martin `MJ' Mares   <mj@ucw.cz>   http://atrey.karlin.mff.cuni.cz/~mj/
    Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth
    A bug in the code is worth two in the documentation.
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at  http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at  http://www.tux.org/lkml/
    

  • Next message: Jesse Barnes: "Re: Exposing ROM's though sysfs"

    Relevant Pages

    • Re: [PATCH 1/1] pci: Block config access during BIST (resend)
      ... It actually only works for 4 byte accesses. ... It will certainly make the patch ... given device could have its config space blocked for a long time. ... To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ ...
      (Linux-Kernel)
    • Re: PCI Express support for 2.4 kernel
      ... For bus scanning fixmaps are fine, but for the normal use of the ... config space in the driver just doing ioremap once (e.g. at ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • [PATCH] Fix booting on some recent G5s
      ... during the probe of some slot numbers, ... to be related to some functions beeing disabled by the firmware ... This patch limits the config space accesses to devices that are ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH 1/1] pci: Block config access during BIST (resend)
      ... >> but from the higher level ones that does, the overhead is basically to ... >> performance wise, especially compared to the cost of a config space ... > need to do config space accesses in interrupt handlers. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: pci: Arch hook to determine config space size
      ... Isn't the config space size a property of the PCI device instead of the ... For a PCI device behind a PCIe host bridge, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)