Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2037577pxk; Tue, 1 Sep 2020 14:09:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwRw414sKHW5bSL6vpzDSfETLesyDzu/b5i+9I2Y13ZKtJJCOdbuUgOzXf6VrAfQO1d9K76 X-Received: by 2002:a17:906:c0d1:: with SMTP id bn17mr3272331ejb.311.1598994541752; Tue, 01 Sep 2020 14:09:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598994541; cv=none; d=google.com; s=arc-20160816; b=ZKkXlHl1jNuZTwCHphgSn4JQCJ9lszRc6TSVwMOzTLdRpSZNZS1Nl6I3dPF5/PI/Sb 4GhJiKoXLR770NQNMptm3VCq00ZWTbm0Tf4x+dUb3w8GTKhkuCXJfP+7H/lpkVB9LOtA qmBDgyKx7TYWE4L4m/O9z/bjrNg06szyA1pDxK+j608WNHb/9GqiukQDYUYOXDtNWq5D 42jpk6Dh0V8+dtXmABbo/3d7nWqYYqiU0vMEXthJwkNyH1QtWNCX7AdDeUg7Kvlq8XjO N8gWFrfoQL21cjWclXhTXE1ZsDo33MSQKZPqA92/4Erkbt2KBsJuJNac4cqjEjTJ381W na8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :date:cc:to:from:subject:message-id:dkim-signature:dkim-signature; bh=B1w6C1PUy3PcU7aanfuRulOBlOAmYoh9eIw790fUoow=; b=OusTsQvgrH5ZC5WwoAF3nnRREKW8PcMID8E99eNesYvzDHHtGw1bhsJCoP3z+mmFH5 /7JUiosddZRgalFcZSgF8X46cz4NKjRb0AmBS++ShiSEE/VgdD3RGIh4VQ1N+0Il/hsi IPmDXBiS67cqTwjohDH7Pp/kmDQihv310cVnjMfl5uVPZc/64N8BVlgibxXnM7jGgx4l tnYoKGAk9S4viDaKuQ6Qnp8AytT2rpsJfwk5IzB6uQVfYuQc2Gf3F6RMQHpp+vYx3s/e wstuaY1vJMHCb+3dmD2r7djtAf5Zp53LY2VkRXAB5HatfjEn+r6PLK05gJ4ylzT7DTJG w7cg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@hansenpartnership.com header.s=20151216 header.b=n31IY9+1; dkim=fail header.i=@hansenpartnership.com header.s=20151216 header.b=MQVRwKN0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=hansenpartnership.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cz6si1453249edb.350.2020.09.01.14.08.38; Tue, 01 Sep 2020 14:09:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@hansenpartnership.com header.s=20151216 header.b=n31IY9+1; dkim=fail header.i=@hansenpartnership.com header.s=20151216 header.b=MQVRwKN0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=hansenpartnership.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729269AbgIAVFB (ORCPT + 99 others); Tue, 1 Sep 2020 17:05:01 -0400 Received: from bedivere.hansenpartnership.com ([66.63.167.143]:48922 "EHLO bedivere.hansenpartnership.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726355AbgIAVFA (ORCPT ); Tue, 1 Sep 2020 17:05:00 -0400 Received: from localhost (localhost [127.0.0.1]) by bedivere.hansenpartnership.com (Postfix) with ESMTP id 254838EE112; Tue, 1 Sep 2020 14:04:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=hansenpartnership.com; s=20151216; t=1598994299; bh=3yQ8KCRSQAxpdGZ/cPAEMssmlgc5FoQPkt68+FhXhxM=; h=Subject:From:To:Cc:Date:From; b=n31IY9+1uutwxiqCR+Tn4Q7rdAWPoY4rda8bR1HpKjiKLQ71Pjq5paIXO9dU/qqWH h2+cln0tPXpxCNBL2bFq8WOBg02oM594M1bap9MPIIF+6ktR4mm0Z4UOIdY+oDQUVa L+5lYiuklSFGaQtWVi4vTBRdDgGDr9S75cmbSo+g= Received: from bedivere.hansenpartnership.com ([127.0.0.1]) by localhost (bedivere.hansenpartnership.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lm76zS-PMhPO; Tue, 1 Sep 2020 14:04:58 -0700 (PDT) Received: from [153.66.254.174] (c-73-35-198-56.hsd1.wa.comcast.net [73.35.198.56]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by bedivere.hansenpartnership.com (Postfix) with ESMTPSA id 19FB08EE0F5; Tue, 1 Sep 2020 14:04:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=hansenpartnership.com; s=20151216; t=1598994298; bh=3yQ8KCRSQAxpdGZ/cPAEMssmlgc5FoQPkt68+FhXhxM=; h=Subject:From:To:Cc:Date:From; b=MQVRwKN0KxlkwKC6kn2YW9+cq2JmRRS8FKN/tYXwjUfniwiPB10V7c5WRUPuTpvz1 L3Q1S1yNsCSNfRwFmaBfLO538PQvBryfNrOv8kQXgXvVjJiewjOltdF/93XBYBAE0T K7l2BURG6KZRQmJSXWENJChxKci82+hNAOlo45lU= Message-ID: <1598994296.4238.30.camel@HansenPartnership.com> Subject: [GIT PULL] SCSI fixes for 5.8-rc3 From: James Bottomley To: Andrew Morton , Linus Torvalds Cc: linux-scsi , linux-kernel Date: Tue, 01 Sep 2020 14:04:56 -0700 Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.26.6 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Three minor fixes, all in drivers. The patch is available here: git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi.git scsi-fixes The short changelog is: Dan Carpenter (1): scsi: libcxgbi: Fix a use after free in cxgbi_conn_xmit_pdu() Niklas Cassel (1): scsi: scsi_debug: Remove superfluous close zone in resp_open_zone() Ye Bin (1): scsi: qedf: Fix null ptr reference in qedf_stag_change_work With the diffstat: drivers/scsi/cxgbi/libcxgbi.c | 2 +- drivers/scsi/qedf/qedf_main.c | 2 +- drivers/scsi/scsi_debug.c | 2 -- 3 files changed, 2 insertions(+), 4 deletions(-) And full diff below. James --- diff --git a/drivers/scsi/cxgbi/libcxgbi.c b/drivers/scsi/cxgbi/libcxgbi.c index 71aebaf533ea..0e8621a6956d 100644 --- a/drivers/scsi/cxgbi/libcxgbi.c +++ b/drivers/scsi/cxgbi/libcxgbi.c @@ -2457,10 +2457,10 @@ int cxgbi_conn_xmit_pdu(struct iscsi_task *task) return err; } - __kfree_skb(skb); log_debug(1 << CXGBI_DBG_ISCSI | 1 << CXGBI_DBG_PDU_TX, "itt 0x%x, skb 0x%p, len %u/%u, xmit err %d.\n", task->itt, skb, skb->len, skb->data_len, err); + __kfree_skb(skb); iscsi_conn_printk(KERN_ERR, task->conn, "xmit err %d.\n", err); iscsi_conn_failure(task->conn, ISCSI_ERR_XMIT_FAILED); return err; diff --git a/drivers/scsi/qedf/qedf_main.c b/drivers/scsi/qedf/qedf_main.c index 3f04f2c81366..5ca424df355c 100644 --- a/drivers/scsi/qedf/qedf_main.c +++ b/drivers/scsi/qedf/qedf_main.c @@ -3863,7 +3863,7 @@ void qedf_stag_change_work(struct work_struct *work) container_of(work, struct qedf_ctx, stag_work.work); if (!qedf) { - QEDF_ERR(&qedf->dbg_ctx, "qedf is NULL"); + QEDF_ERR(NULL, "qedf is NULL"); return; } QEDF_ERR(&qedf->dbg_ctx, "Performing software context reset.\n"); diff --git a/drivers/scsi/scsi_debug.c b/drivers/scsi/scsi_debug.c index 139f0073da37..1ad7260d4758 100644 --- a/drivers/scsi/scsi_debug.c +++ b/drivers/scsi/scsi_debug.c @@ -4482,8 +4482,6 @@ static int resp_open_zone(struct scsi_cmnd *scp, struct sdebug_dev_info *devip) goto fini; } - if (zc == ZC2_IMPLICIT_OPEN) - zbc_close_zone(devip, zsp); zbc_open_zone(devip, zsp, true); fini: write_unlock(macc_lckp);