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
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <41949f23-794e-60c8-ce0f-fcb170b1db39@citrix.com>
Date:   Tue, 17 Jul 2018 16:56:47 +0100
From:   Anoob Soman <anoob.soman@...rix.com>
To:     <lduncan@...e.com>, <cleech@...hat.com>, <jejb@...ux.vnet.ibm.com>,
        <martin.petersen@...cle.com>, <open-iscsi@...glegroups.com>
CC:     <linux-scsi@...r.kernel.org>, <linux-kernel@...r.kernel.org>
Subject: Re: [RFC 1/1] libiscsi: Fix race between iscsi_xmit_task and
 iscsi_complete_task

On 09/07/18 11:43, Anoob Soman wrote:
> On 02/07/18 16:00, Anoob Soman wrote:
>> ---
>>   drivers/scsi/libiscsi.c | 6 ++++++
>>   1 file changed, 6 insertions(+)
>>
>> diff --git a/drivers/scsi/libiscsi.c b/drivers/scsi/libiscsi.c
>> index d609383..aa3be6f 100644
>> --- a/drivers/scsi/libiscsi.c
>> +++ b/drivers/scsi/libiscsi.c
>> @@ -1449,7 +1449,13 @@ static int iscsi_xmit_task(struct iscsi_conn 
>> *conn)
>>       if (test_bit(ISCSI_SUSPEND_BIT, &conn->suspend_tx))
>>           return -ENODATA;
>>   +    spin_lock_bh(&conn->session->back_lock);
>> +    if (conn->task == NULL) {
>> +        spin_unlock_bh(&conn->session->back_lock);
>> +        return -ENODATA;
>> +    }
>>       __iscsi_get_task(task);
>> +    spin_unlock_bh(&conn->session->back_lock);
>>       spin_unlock_bh(&conn->session->frwd_lock);
>>       rc = conn->session->tt->xmit_task(task);
>>       spin_lock_bh(&conn->session->frwd_lock);
>
>
> Hi Chris, Lee.
>
> Could one of you look at this change and provide some comments ?
>
> Thanks,
>
> -Anoob.
>

Hi,

Can someone look at this change ?

Thanks,

Anoob.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ