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
| ||
|
Date: Fri, 14 Dec 2007 13:32:40 +0800 From: "Dave Young" <hidave.darkstar@...il.com> To: "Andrew Morton" <akpm@...ux-foundation.org> Cc: linux-kernel@...r.kernel.org, mdharm-usb@...-eyed-alien.net, gregkh@...e.de, linux-usb@...r.kernel.org, usb-storage@...ts.one-eyed-alien.net Subject: Re: 2.6.24-rc5-mm1 Hi, The behaviour of my mp3 player (also act as usb-storage device) seems changed from rc5 to rc5-mm1. <dmesg output under rc5>: ========= usb 1-7: new high speed USB device using ehci_hcd and address 7 usb 1-7: configuration #1 chosen from 1 choice scsi4 : SCSI emulation for USB Mass Storage devices usb-storage: device found at 7 usb-storage: waiting for device to settle before scanning scsi 4:0:0:0: Direct-Access Newman mp3 PQ: 0 ANSI: 0 CCS sd 4:0:0:0: [sdb] 245248 512-byte hardware sectors (126 MB) sd 4:0:0:0: [sdb] Write Protect is on sd 4:0:0:0: [sdb] Mode Sense: 03 00 80 00 sd 4:0:0:0: [sdb] Assuming drive cache: write through sd 4:0:0:0: [sdb] 245248 512-byte hardware sectors (126 MB) sd 4:0:0:0: [sdb] Write Protect is on sd 4:0:0:0: [sdb] Mode Sense: 03 00 80 00 sd 4:0:0:0: [sdb] Assuming drive cache: write through sdb: sdb1 sd 4:0:0:0: [sdb] Attached SCSI removable disk sd 4:0:0:0: Attached scsi generic sg1 type 0 usb-storage: device scan complete ========== try mount it (or just blockdev --rereadpt), then write protect become off: ========== sd 4:0:0:0: [sdb] 245248 512-byte hardware sectors (126 MB) sd 4:0:0:0: [sdb] Write Protect is off sd 4:0:0:0: [sdb] Mode Sense: 03 00 00 00 sd 4:0:0:0: [sdb] Assuming drive cache: write through sd 4:0:0:0: [sdb] 245248 512-byte hardware sectors (126 MB) sd 4:0:0:0: [sdb] Write Protect is off sd 4:0:0:0: [sdb] Mode Sense: 03 00 00 00 sd 4:0:0:0: [sdb] Assuming drive cache: write through sdb: sdb1 But under rc5-mm1, after mount command being executed, it is just mouted as read only partition without set the write-protect to off I tried "blockdev --rereadpt", it do set the write-protect to off as rc5 kernel. Below is the output of dmesg under rc5-mm1 ========== usb 1-8: new high speed USB device using ehci_hcd and address 6 usb 1-8: configuration #1 chosen from 1 choice scsi3 : SCSI emulation for USB Mass Storage devices usb-storage: device found at 6 usb-storage: waiting for device to settle before scanning scsi 3:0:0:0: Direct-Access Newman mp3 PQ: 0 ANSI: 0 CCS sd 3:0:0:0: [sdb] 245248 512-byte hardware sectors (126 MB) sd 3:0:0:0: [sdb] Write Protect is on sd 3:0:0:0: [sdb] Mode Sense: 03 00 80 00 sd 3:0:0:0: [sdb] Assuming drive cache: write through sd 3:0:0:0: [sdb] 245248 512-byte hardware sectors (126 MB) sd 3:0:0:0: [sdb] Write Protect is on sd 3:0:0:0: [sdb] Mode Sense: 03 00 80 00 sd 3:0:0:0: [sdb] Assuming drive cache: write through sdb: sdb1 Regards dave sd 3:0:0:0: [sdb] Attached SCSI removable disk sd 3:0:0:0: Attached scsi generic sg1 type 0 usb-storage: device scan complete Regards dave -- 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