Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp3059330imm; Sun, 1 Jul 2018 11:17:06 -0700 (PDT) X-Google-Smtp-Source: AAOMgpen02KUXUu0Co8w59Ne0EGMnFll7F+1P7LMFoPyKQHtQdE19jtJQkh+W4QWjuncU9ZJPQiu X-Received: by 2002:a62:a8e:: with SMTP id 14-v6mr22432256pfk.57.1530469026019; Sun, 01 Jul 2018 11:17:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530469025; cv=none; d=google.com; s=arc-20160816; b=Pr0Bjw67dpiOvMZ5dmPPVPsbLEhrTkX+a7VK3+8Bes/kYEhsMf/ReRwlEn+l1d/wiN ofqHANMKajB9pilXo7hSbAU92evsO/M2A8wq/UH3tZYE23oYNMQ55qjL3RNhtjgJX5Ju 31zogbglsnDVUxGknd0zXn0zSwGmn35wYWc7LbNZaTc0gd1Z9KNAH6AMrodnBLG3GdF5 AMoO1SGOFRLJqeECoQOZuPSIljMv/G4qcxSGxoo19KTE51gOB9GZYCPUACw/nm6rZQxg H59r/Quwz13zhhr0s8WVMyrSzON2TAi1NbMWCwxi4QZnd8jE+aijfZvyes218g6uj+SC gI0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=VfnY1lWb06zXgBl8J8ZG+NxK5fI471YSFuEjJ8rjeIw=; b=aWxPnZMi1Ud1OM66GVcADXhjqbMncmbVJXqv0Kr3YEymOD6oBLMFCj54s/O9TqBSXl LRHL4xLX2ZdQoDywuRuIxNquYI/dMUltRjlk0Ch+WT/cR1sg3wLtIZmVoNcxjG88nhTX Z5h8v/h9d42N47cWm4hplPHaHxH1jGFrrVQ1c15MJEsarkVDyrJVEGR3i9te90sJZhsD GW4Qr1Ak0p0GSYk0K+gEdTve4+y75gX1ZRVbpBjymDRqdPDFmj761Xsw7nkk6Kgt52JM 1WuF15rL0MdNXToKMhYEmD1Nv6o4A27kDD7/1IZ1Xdgd0GoAbNJYoFH/zDhiV7a9l4k8 /+JQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l10-v6si14212206pfb.69.2018.07.01.11.16.51; Sun, 01 Jul 2018 11:17:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965342AbeGASPc (ORCPT + 99 others); Sun, 1 Jul 2018 14:15:32 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:33964 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965356AbeGAQ0o (ORCPT ); Sun, 1 Jul 2018 12:26:44 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 1A9D092B; Sun, 1 Jul 2018 16:26:43 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Leon Romanovsky , Doug Ledford Subject: [PATCH 4.9 039/101] RDMA/mlx4: Discard unknown SQP work requests Date: Sun, 1 Jul 2018 18:21:25 +0200 Message-Id: <20180701160758.731045435@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180701160757.138608453@linuxfoundation.org> References: <20180701160757.138608453@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Leon Romanovsky commit 6b1ca7ece15e94251d1d0d919f813943e4a58059 upstream. There is no need to crash the machine if unknown work request was received in SQP MAD. Cc: # 3.6 Fixes: 37bfc7c1e83f ("IB/mlx4: SR-IOV multiplex and demultiplex MADs") Signed-off-by: Leon Romanovsky Signed-off-by: Doug Ledford Signed-off-by: Greg Kroah-Hartman --- drivers/infiniband/hw/mlx4/mad.c | 1 - 1 file changed, 1 deletion(-) --- a/drivers/infiniband/hw/mlx4/mad.c +++ b/drivers/infiniband/hw/mlx4/mad.c @@ -1897,7 +1897,6 @@ static void mlx4_ib_sqp_comp_worker(stru "buf:%lld\n", wc.wr_id); break; default: - BUG_ON(1); break; } } else {