Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp3008718imm; Sun, 1 Jul 2018 10:12:19 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIB8GlTAYSp0v+XtFKB5XCubIek2QSOXLo0esKWmUZIBi/hSyQiC12hOIeFoMWwe0ilEQrT X-Received: by 2002:a63:af49:: with SMTP id s9-v6mr19522187pgo.49.1530465139228; Sun, 01 Jul 2018 10:12:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530465139; cv=none; d=google.com; s=arc-20160816; b=x57Y1NmCLNLM2RLB4l2Y/s4XS1ByLos6RN1Um+fr1Uf+Eu8nzZE1xRPifJOjefxcdA c/Epp0dQpYgWc5vyhWYRweyzvVDmB5BAnumJcKgfOhLrnZzxb0zqv/1ML2hYOKErCs8X py6h8rPLwaGzQYfKelttY9hblUkb/b6hsI7WOHaaKnJwBdm9CXDxjAixwZpRTEcGsEBQ y4TZ+0qEM8fAaSDeoKr5sYOmI0accPuSMf1vFWJKM75mOSa1NSBOWNW97ZkUBmiOnmqR oAIMKisuAZJox8ORiGSBloXVaiRCQDAHHNuZkTKmBfhuR2x4GNOKLJX9+P5pXCaE5jEc fYeA== 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=gNjAqxhKNiEoUUj03SaxwOD16izdMMotwQKtp99Qhm8=; b=tanXmaN4x4u6wXVGc+oYO9XWufSx2gEso3XUToM99kykTmWkvj/xrACZjxUp1d1Dad 907ZM3ga+mXYrBUL5HIkgoDx1st+HSkCOPIrWm5hHbpYCApM1D220iDx6UNvrhwGX+aq GFRjVhIocOXHzJsa9GSzXgxj8M2s4cxeHiYTXuJL66bC1OVvLJr7/ojfbLbAcVX7WY+1 B1+OSMyOZHQH/LmPuZ2hUUta6fWXQIqJ1vnZ2aZuAYmu6lyVoi8XtEO7DEsr9fiNMSCn IAEszllrIQ6+ymErqV5CZzzvKVuOQxv8FmzAOyXPQ4Bv9ae0YAVy4bBU29wLRPi0/t+I 9W5w== 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 y20-v6si13996509pfm.186.2018.07.01.10.12.04; Sun, 01 Jul 2018 10:12:19 -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 S1031998AbeGAQlE (ORCPT + 99 others); Sun, 1 Jul 2018 12:41:04 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:37272 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1031568AbeGAQk6 (ORCPT ); Sun, 1 Jul 2018 12:40:58 -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 369A7AA6; Sun, 1 Jul 2018 16:40:57 +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.17 096/220] RDMA/mlx4: Discard unknown SQP work requests Date: Sun, 1 Jul 2018 18:22:00 +0200 Message-Id: <20180701160912.421980102@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180701160908.272447118@linuxfoundation.org> References: <20180701160908.272447118@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.17-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 @@ -1934,7 +1934,6 @@ static void mlx4_ib_sqp_comp_worker(stru "buf:%lld\n", wc.wr_id); break; default: - BUG_ON(1); break; } } else {