Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754885AbcCAXxd (ORCPT ); Tue, 1 Mar 2016 18:53:33 -0500 Received: from mail333.us4.mandrillapp.com ([205.201.137.77]:44579 "EHLO mail333.us4.mandrillapp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754106AbcCAXx1 (ORCPT ); Tue, 1 Mar 2016 18:53:27 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; q=dns; s=mandrill; d=linuxfoundation.org; b=nbYJPwn3JwAWOJu5RyN1ot8iCHOe3npV8EihnrzRA0ofgBVxo2vRTUaOdSCTFxci+LrH/irv2IV+ LAkL/TSoHLMR7zaiJQChOMzHqnDpEYoso2q/26cCl7xoWkpDoyTEEtNYyH1c0ynM3ERzJ01EHMYG BRg653TfdNU6aQauXrw=; From: Greg Kroah-Hartman Subject: [PATCH 3.14 090/130] s390/dasd: prevent incorrect length error under z/VM after PAV changes X-Mailer: git-send-email 2.7.2 To: Cc: Greg Kroah-Hartman , , Stefan Haberland , Martin Schwidefsky Message-Id: <20160301234503.026876185@linuxfoundation.org> In-Reply-To: <20160301234459.768886030@linuxfoundation.org> References: <20160301234459.768886030@linuxfoundation.org> X-Report-Abuse: Please forward a copy of this message, including all headers, to abuse@mandrill.com X-Report-Abuse: You can also report abuse here: http://mandrillapp.com/contact/abuse?id=30481620.7fbe38983b7d41bebb4400f4c7b9191c X-Mandrill-User: md_30481620 Date: Tue, 01 Mar 2016 23:53:27 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1192 Lines: 33 3.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Stefan Haberland commit 020bf042e5b397479c1174081b935d0ff15d1a64 upstream. The channel checks the specified length and the provided amount of data for CCWs and provides an incorrect length error if the size does not match. Under z/VM with simulation activated the length may get changed. Having the suppress length indication bit set is stated as good CCW coding practice and avoids errors under z/VM. Signed-off-by: Stefan Haberland Signed-off-by: Martin Schwidefsky Signed-off-by: Greg Kroah-Hartman --- drivers/s390/block/dasd_alias.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/s390/block/dasd_alias.c +++ b/drivers/s390/block/dasd_alias.c @@ -722,7 +722,7 @@ static int reset_summary_unit_check(stru ASCEBC((char *) &cqr->magic, 4); ccw = cqr->cpaddr; ccw->cmd_code = DASD_ECKD_CCW_RSCK; - ccw->flags = 0 ; + ccw->flags = CCW_FLAG_SLI; ccw->count = 16; ccw->cda = (__u32)(addr_t) cqr->data; ((char *)cqr->data)[0] = reason;