Re: ses enclosure stuff not working with Promise Vtrak J610S JBOD

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

 



John Hughes wrote:
Attempts to change the "status" fail:

# echo "unconfigured" > status
[ 626.389093] general protection fault: 0000 [#1] SMP [ 626.389243] last sysfs file: /sys/class/enclosure/0:0:32:0/0/status
This bug still exists in 2.6.32-rc6.

It's pretty crazy - if we use a legal value then the routine correctly returns -EINVAL as there is no setter.

If we write an illegal value to status we get an oops!

Aha! It's because the enclosure_status array is not NULL terminated, so if we try to write an illegal value we run off the end of the array!



--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux