On 05.08.2013 04:28, Gregory Hosler wrote: > Hi all, > > I have a Samsong phone. I used to mount it as Mass Storage (selected on the > phone) over the micro usb connection, to copy files to/from. > > Starting with kernel 3.10.3-300.fc19.x86_64, and continuing with kernel > 3.10.4-300.fc19.x86_64 this no longer works. > > Relevant snippets from /var/log/messages under both kernels attached. > > I will bugzilla, but I wish to know whether anyone else has seen this change > of behavior. > > All the best, > > -Greg > > $ modinfo -F filename usb_storage /lib/modules/3.10.5-400.fc19.x86_64/kernel/drivers/usb/storage/usb-storage.ko $ lsmod | grep usb_storage usb_storage 56690 2 poma Ref. http://marc.info/?l=linux-usb&m=137523956310060 http://vger.kernel.org/vger-lists.html#linux-usb http://vger.kernel.org/vger-lists.html#linux-scsi
--- kernel-3.10.4-300.fc19.spec 2013-07-30 13:15:36.000000000 +0200 +++ kernel.spec 2013-08-06 07:09:32.749216610 +0200 @@ -62,7 +62,7 @@ # For non-released -rc kernels, this will be appended after the rcX and # gitX tags, so a 3 here would become part of release "0.rcX.gitX.3" # -%global baserelease 300 +%global baserelease 400 %global fedora_build %{baserelease} # base_sublevel is the kernel version we're starting with and patching @@ -74,7 +74,7 @@ %if 0%{?released_kernel} # Do we have a -stable update to apply? -%define stable_update 4 +%define stable_update 5 # Is it a -stable RC? %define stable_rc 0 # Set rpm version accordingly @@ -730,9 +730,6 @@ #rhbz 948262 Patch25024: intel_iommu-Downgrade-the-warning-if-enabling-irq-remapping-fails.patch -#CVE-2013-2140 rhbz 971146 971148 -Patch25031: xen-blkback-Check-device-permissions-before-allowing.patch - #CVE-2013-2147 rhbz 971242 971249 Patch25032: cve-2013-2147-ciss-info-leak.patch @@ -776,13 +773,13 @@ #rhbz 969473 Patch25070: Input-elantech-fix-for-newer-hardware-versions-v7.patch -#rhbz 989093 -Patch25071: drm-i915-correctly-restore-fences-with-objects-attac.patch - #rhbz 989138 Patch25072: HID-Revert-Revert-HID-Fix-logitech-dj-missing-Unifying-device-issue.patch Patch25073: HID-hid-logitech-dj-querying_devices-was-never-set.patch +# SCSI: Don't attempt to send extended INQUIRY command if skip_vpd_pages is set +Patch25074: SCSI-Do-not-attempt-to-send-extended-INQUIRY-command-if-skip_vpd_pages-is-set.patch + # END OF PATCH DEFINITIONS %endif @@ -1461,9 +1458,6 @@ #rhbz 948262 ApplyPatch intel_iommu-Downgrade-the-warning-if-enabling-irq-remapping-fails.patch -#CVE-2013-2140 rhbz 971146 971148 -ApplyPatch xen-blkback-Check-device-permissions-before-allowing.patch - #CVE-2013-2147 rhbz 971242 971249 ApplyPatch cve-2013-2147-ciss-info-leak.patch @@ -1507,13 +1501,13 @@ #rhbz 969473 ApplyPatch Input-elantech-fix-for-newer-hardware-versions-v7.patch -#rhbz 989093 -ApplyPatch drm-i915-correctly-restore-fences-with-objects-attac.patch - #rhbz 989138 ApplyPatch HID-Revert-Revert-HID-Fix-logitech-dj-missing-Unifying-device-issue.patch ApplyPatch HID-hid-logitech-dj-querying_devices-was-never-set.patch +# SCSI: Don't attempt to send extended INQUIRY command if skip_vpd_pages is set +ApplyPatch SCSI-Do-not-attempt-to-send-extended-INQUIRY-command-if-skip_vpd_pages-is-set.patch + # END OF PATCH APPLICATIONS %endif @@ -2322,6 +2316,11 @@ # and build. %changelog +* Tue Aug 06 2013 poma <pomidorabelisima@xxxxxxxxx> - 3.10.5-400 +- Drop xen/blkback: Check device permissions before allowing OP_DISCARD patch +- Drop drm/i915: Restore fences after resume and GPU resets patch +- Add usb_storage fix - SCSI: Don't attempt to send extended INQUIRY command if skip_vpd_pages is set + * Tue Jul 30 2013 Josh Boyer <jwboyer@xxxxxxxxxx> - 3.10.4-300 - Revert some changes to make Logitech devices function properly (rhbz 989138)
[PATCH] SCSI: Don't attempt to send extended INQUIRY command if skip_vpd_pages is set If a device has the skip_vpd_pages flag set we should simply fail the scsi_get_vpd_page() call. Signed-off-by: Martin K. Petersen <martin.petersen@xxxxxxxxxx> Acked-by: Alan Stern <stern@xxxxxxxxxxxxxxxxxxx> Tested-by: Stuart Foster <smf.linux@xxxxxxxxxxxx> Cc: stable@xxxxxxxxxxxxxxx diff --git a/drivers/scsi/scsi.c b/drivers/scsi/scsi.c index 3b1ea34..eaa808e 100644 --- a/drivers/scsi/scsi.c +++ b/drivers/scsi/scsi.c @@ -1031,6 +1031,9 @@ int scsi_get_vpd_page(struct scsi_device *sdev, u8 page, unsigned char *buf, { int i, result; + if (sdev->skip_vpd_pages) + goto fail; + /* Ask for all the pages supported by this device */ result = scsi_vpd_inquiry(sdev, buf, 0, buf_len); if (result) --
-- users mailing list users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org