[PATCH 2/5] arcmsr: Support Hibernation

2013-02-06 Thread NickCheng
From: Nick Cheng nick.ch...@areca.com.tw Support hibernation for whole series of RAID controllers Signed-off-by: Nick Cheng nick.ch...@areca.com.tw --- patch2 Description: Binary data

[PATCH 3/5] arcmsr: Support MSI and MSI-X

2013-02-06 Thread NickCheng
From: Nick Cheng nick.ch...@areca.com.tw Support MSI or MSI-X for whole series of RAID controllers. Meanwhile correct the register access as iowrite32/ioread32 Signed-off-by: Nick Cheng nick.ch...@areca.com.tw --- patch3 Description: Binary data

[PATCH 5/5] arcmsr: Modify ARC-1214 Inband Messages Behavior

2013-02-06 Thread NickCheng
From: Nick Cheng nick.ch...@areca.com.tw Modify ARC-1214 inband messages behavior to make up for HW seldom malfunction. Signed-off-by: Nick Cheng nick.ch...@areca.com.tw --- patch5 Description: Binary data

[PATCH RESEND 1/1] Drivers: scsi: storvsc: Initialize the sglist

2013-02-06 Thread K. Y. Srinivasan
Properly initialize scatterlist before using it. Signed-off-by: K. Y. Srinivasan k...@microsoft.com Cc: sta...@vger.kernel.org --- drivers/scsi/storvsc_drv.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/scsi/storvsc_drv.c b/drivers/scsi/storvsc_drv.c index

re: [SCSI] csiostor: Chelsio FCoE offload driver

2013-02-06 Thread Dan Carpenter
Hopefully, you recieved an email about this last November, but this is a follow up because the bug is still there. Smatch complains about a buffer overflow in this: drivers/scsi/csiostor/csio_rnode.c:872 csio_rnode_fwevt_handler() error: buffer overflow '(rn)-stats.n_evt_fw' 22 = 26

[PATCH v2 00/14] Corrections and customization of the SG_IO command whitelist (CVE-2012-4542)

2013-02-06 Thread Paolo Bonzini
This series regards the whitelist that is used for the SG_IO ioctl. This whitelist has three problems: * the bitmap of allowed commands is designed for MMC devices (roughly, play/burn CDs without requiring root) but some opcodes overlap across SCSI device classes and have different meanings

[PATCH v2 14/14] sg_io: use unpriv_sgio to disable whitelisting for scanners

2013-02-06 Thread Paolo Bonzini
Scanners allow all commands because vendor-specific commands are common. The queue flag we just added lets us keep this behavior by default, while making it possible to disable it. Cc: James E.J. Bottomley jbottom...@parallels.com Cc: linux-scsi@vger.kernel.org Cc: Jens Axboe ax...@kernel.dk

[PATCH v2 12/14] sg_io: remove remnants of sysfs SG_IO filters

2013-02-06 Thread Paolo Bonzini
Some defines and structs remained when support was removed for SG_IO filters in sysfs. Remove them. Cc: James E.J. Bottomley jbottom...@parallels.com Cc: linux-scsi@vger.kernel.org Cc: Jens Axboe ax...@kernel.dk Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- include/linux/genhd.h |9

[PATCH v2 13/14] sg_io: introduce unpriv_sgio queue flag

2013-02-06 Thread Paolo Bonzini
This queue flag will let unprivileged users send any SG_IO command to the device, without any filtering. This is useful for virtualization, where some trusted guests would like to send commands such as persistent reservations, but still the virtual machine monitor should run with restricted

[PATCH v2 09/14] sg_io: whitelist a few more commands for disks

2013-02-06 Thread Paolo Bonzini
This adds missing commands to the table from SBC and related standards. Only commands that affect the medium are added. Commands that affect other state of the LUN are all privileged, with the sole exception of START STOP UNIT (which has always been allowed for all file descriptors. I do not

[PATCH v2 04/14] sg_io: resolve conflicts between commands assigned to multiple classes (CVE-2012-4542)

2013-02-06 Thread Paolo Bonzini
Some SCSI commands can be sent to disks via SG_IO even by unprivileged users. Unfortunately, some opcodes overlap across SCSI device classes and have different meanings for different classes. Four of them can be used for read-only file descriptors on MMC, but should be limited to descriptors

[PATCH v2 08/14] sg_io: whitelist a few more commands for tapes

2013-02-06 Thread Paolo Bonzini
Tapes have no problematic overlap, but quite a few commands are missing that are useful when operating tapes with /dev/sg. This patch adds them. START STOP UNIT, FORMAT UNIT and SEEK(10) have similar meanings but different names for tapes, so move them to the tape section of the whitelist. Cc:

[PATCH v2 07/14] sg_io: whitelist a few more commands for media changers

2013-02-06 Thread Paolo Bonzini
Besides CD-ROMs, three more device types are interesting for SG_IO: media changers, tapes and of course disks. Starting with this patch, we will whitelist a few more commands for these devices. For media changers, enable INITIALIZE ELEMENT STATUS and REQUEST VOLUME ELEMENT ADDRESS. A few

[PATCH v2 06/14] sg_io: whitelist another command for multimedia devices

2013-02-06 Thread Paolo Bonzini
Three MMC commands were never included: PLAY AUDIO(12), SERVICE ACTION IN(12), MECHANISM STATUS. Add MECHANISM STATUS, the only one that has not been obsoleted in recent versions of the standard. Cc: James E.J. Bottomley jbottom...@parallels.com Cc: linux-scsi@vger.kernel.org Cc: Jens Axboe

[PATCH v2 10/14] sg_io: whitelist a few obsolete commands

2013-02-06 Thread Paolo Bonzini
These are added to their own section of the table, together with SEEK(10) which has always been permitted. Cc: James E.J. Bottomley jbottom...@parallels.com Cc: linux-scsi@vger.kernel.org Cc: Jens Axboe ax...@kernel.dk Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- block/scsi_ioctl.c |

[PATCH v2 03/14] sg_io: use different default filters for each device class

2013-02-06 Thread Paolo Bonzini
Store the filters in a 256-entry array, and pick an appropriate filter for SCSI devices. Apart from SCSI disks, SG_IO is supported for CCISS, ide-floppy and virtio-blk devices; TYPE_DISK (which is zero, i.e. the default) is more appropriate for these devices than TYPE_ROM. This patch already

[PATCH v2 02/14] sg_io: reorganize list of allowed commands

2013-02-06 Thread Paolo Bonzini
To prepare for the next patches, reorganize the list of commands into a two-way table of command numbers and device types. One command (READ CAPACITY) was listed twice in the old table, hence the new table has one entry less than the old one. Right now, there is still just one bitmap and the

Re: [PATCH v9 4/4] sd: change to auto suspend mode

2013-02-06 Thread Alan Stern
On Wed, 6 Feb 2013, Aaron Lu wrote: The if (err == -EAGAIN) test and the call to pm_schedule_suspend seem to have been dropped since v8 of this series. It looks like they ought to be moved into sdev_runtime_suspend. I thought they were no longer needed... You did not mention this in

Re: [PATCH 2/2] virtio-scsi: reset virtqueue affinity when doing cpu hotplug

2013-02-06 Thread Paolo Bonzini
Il 16/01/2013 04:55, Wanlong Gao ha scritto: Add hot cpu notifier to reset the request virtqueue affinity when doing cpu hotplug. You need to be careful to get_online_cpus() and put_online_cpus() here, so CPUs can't go up and down in the middle of operations. In particular,

Re: [SCSI] sd: Ensure we correctly disable devices with unknown protection type

2013-02-06 Thread Dan Carpenter
This patch wasn't applied. Probably because it didn't have [PATCH] in the email subject. regards, dan carpenter On Wed, Sep 26, 2012 at 10:39:44PM -0400, Martin K. Petersen wrote: Dan == Dan Carpenter dan.carpen...@oracle.com writes: Dan, Dan warn: buffer overflow 'cap' 4 = 4 Argh,

[PATCH 60/77] scsi/bfa: convert to idr_alloc()

2013-02-06 Thread Tejun Heo
Convert to the much saner new idr interface. Only compile tested. Signed-off-by: Tejun Heo t...@kernel.org Cc: Krishna C Gudipati kgudi...@brocade.com Cc: linux-scsi@vger.kernel.org --- drivers/scsi/bfa/bfad_im.c | 15 --- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git

[LSF/MM TOPIC][ATTEND] protection information and userspace

2013-02-06 Thread Ben Myers
Hi, I'm interested in discussing how to pass protection information to and from userspace. Maybe Martin could be enlisted for the discussion. I read that some work has already been done in this area but have not been able to locate it. It looks like the bio-integrity code already makes it

[PATCH 63/77] scsi/lpfc: convert to idr_alloc()

2013-02-06 Thread Tejun Heo
Convert to the much saner new idr interface. Only compile tested. Signed-off-by: Tejun Heo t...@kernel.org Cc: James Smart james.sm...@emulex.com Cc: linux-scsi@vger.kernel.org --- drivers/scsi/lpfc/lpfc_init.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git

[PATCH 62/77] target/iscsi: convert to idr_alloc()

2013-02-06 Thread Tejun Heo
Convert to the much saner new idr interface. Only compile tested. Signed-off-by: Tejun Heo t...@kernel.org Cc: Nicholas A. Bellinger n...@linux-iscsi.org Cc: linux-scsi@vger.kernel.org Cc: target-de...@vger.kernel.org --- drivers/target/iscsi/iscsi_target.c | 15 ---

[PATCH 61/77] scsi: convert to idr_alloc()

2013-02-06 Thread Tejun Heo
Convert to the much saner new idr interface. Only compile tested. Signed-off-by: Tejun Heo t...@kernel.org Cc: James E.J. Bottomley james.bottom...@hansenpartnership.com Cc: linux-scsi@vger.kernel.org --- drivers/scsi/ch.c | 21 + drivers/scsi/sg.c | 43

Re: [LSF/MM TOPIC][ATTEND] protection information and userspace

2013-02-06 Thread Darrick J. Wong
On Wed, Feb 06, 2013 at 01:51:22PM -0600, Ben Myers wrote: Hi, I'm interested in discussing how to pass protection information to and from userspace. Maybe Martin could be enlisted for the discussion. I read that some work has already been done in this area but have not been able to

Re: [LSF/MM TOPIC][ATTEND] protection information and userspace

2013-02-06 Thread Chuck Lever
On Feb 6, 2013, at 3:24 PM, Darrick J. Wong darrick.w...@oracle.com wrote: On Wed, Feb 06, 2013 at 01:51:22PM -0600, Ben Myers wrote: Hi, I'm interested in discussing how to pass protection information to and from userspace. Maybe Martin could be enlisted for the discussion. I read

targetcli-fb and rtslib-fb update, Feb '13

2013-02-06 Thread Andy Grover
Hi all, I don't know how many of you follow my work on github so I just wanted to give an update on some stuff I've been working on, for my branches of the kernel target user space configuration tools. The biggest recent rtslib change is that we've gone back to using Python classes to

Re: [PATCH v8 0/10] More device removal fixes

2013-02-06 Thread Joe Lawrence
On Tue, 5 Feb 2013, Bart Van Assche wrote: Fix a few race conditions that can be triggered by removing a device: - Fix a race between starved list processing and device removal. - Avoid that a SCSI LLD callback can get invoked after scsi_remove_host() finished. - Speed up device removal by

RE: Linux Libsas/Libata updates/releases

2013-02-06 Thread Mahesh Rajashekhara
** Resending in TEXT/PLAIN, earlier sent email bounce back ** Adding linux-scsi group to this email... I would like to check with you if anyone had encountered similar issues with upper layers older libsas/libata drivers. It would be of great help if anyone can shed some light on this issue.