Re: [PATCH] spi: expose spi_master and spi_device statistics via sysfs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 05/25/2015 07:28 PM, kernel@xxxxxxxxxxxxxxxx wrote:
From: Martin Sperl <kernel@xxxxxxxxxxxxxxxx>

per spi-master statistics accessible as:
   /sys/class/spi_master/spi*/statistics/

per spi-device statistics accessible via:
   /sys/class/spi_master/spi*/spi*.*/statistics/

The following statistics are exposed as separate "files" inside
these directories:
   * messages		number of spi_messages
   * transfers		number of spi_transfers
   * bytes		number of bytes transferred
   * bytes_rx		number of bytes transmitted
   * bytes_tx		number of bytes received
   * bytes_histo		transferred bytes/spi_transfer histogram

Having those kinds of stats in world readable files has serious security implications as they can be used to implement side-channel attacks. They should probably only be available in debugfs for root.
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux