Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1139402imm; Mon, 9 Jul 2018 18:18:50 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcM5zTCU9x9kmaNPAyGFPlNIcM9oRN6fXMzd6+amEks9s7hewgcTpuwBHuvuxGJrKRZCYd9 X-Received: by 2002:a63:7c18:: with SMTP id x24-v6mr20897000pgc.311.1531185530604; Mon, 09 Jul 2018 18:18:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531185530; cv=none; d=google.com; s=arc-20160816; b=Q0kTJQOg5RS6+LKgp7QbpEBOldb0+ek4i3A2nxl1adujxdKljVNnGx2LXjgjez2bYv NEzK5AT3HxoEm/fDtnhCoL9M7CBmzIMnd15zaxW81Bm79FH7tkDfc3mTA5bCst0kWx3U 6Q2EepW3lvDh1XlaqQXFVxB1NNfiRuABJ6Yz4Q3HQD0wZcicmuDWjvFHpGFmQ62bY613 rpFFTTuX/GL8e3tlo/vKjYRvTa/BB+TWhIqHrpm7Vkec44dh5uh1PHcOPSpqXrBqOwP+ lOekZZVNd6H21frrt883BYzyIV4b94XjMgEHA6rVshjyrvdHgXZJgvUt/kIE4+3hlat4 xOSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:subject:cc:to :from:date:dkim-signature:arc-authentication-results; bh=sWUbWUfbZHgBrN1dhk+PDXFD7OvAU+rynSxyhCV3ajo=; b=ELYW6pva5TsmW8zSE/Ddz6rGxrj5ZimYT6Xdw/x197ouSEVpA0VzCFCDjfG45KNvYg BVi3+oHhLN9VVYuFWlcVLUYay83r71Xscjzfpdyp9ORToCq/5HdZUU9md+YC53P6Xs7+ bNXCCE8NpK91i7dgDlk83Uh/Zytf1rpZcRycvOPoj3YcjRKZCP1LNGOJOT3cClPxYjJb aTo3fcfZOv8lxvIGrLFkKCwRHR+ZVMOMvwyrhT23vf3ijrUMY3RPdbAMuvU+6fvwKXs1 QpRFxyPMllTuy4bTwfahmfoDGC1KEshXoX1vVMxpAixkD2GNiLssKXlk/FXCOjT/uuJ/ H3jg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=RdhHspqq; 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 f12-v6si7288500pgg.653.2018.07.09.18.18.35; Mon, 09 Jul 2018 18:18:50 -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; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=RdhHspqq; 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 S933258AbeGJBRs (ORCPT + 99 others); Mon, 9 Jul 2018 21:17:48 -0400 Received: from ozlabs.org ([203.11.71.1]:51567 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754581AbeGJBRn (ORCPT ); Mon, 9 Jul 2018 21:17:43 -0400 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPSA id 41PkpF0Y3Yz9rxs; Tue, 10 Jul 2018 11:17:41 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=canb.auug.org.au DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=canb.auug.org.au; s=201702; t=1531185461; bh=Il3l69rXyZGeugcue/xE4ItwQ1/ZRYS7DDus1nBRiHc=; h=Date:From:To:Cc:Subject:From; b=RdhHspqqXeUpKSbIXDk8yY61C6BO05R7De9abwstlPbaPspv40SoEykzp3GscFMtH Ft6mHgxr3vzL+90dxb0h7UKUb+j+JekXb9wgJmOiYCqeRj1HbYuG81Pb/8PAGqKvAL CG790tYjEYi4evGKjBZCFY0ovYbU5bUCLlMQNW38awtf0CPlBL+GahjSfNqproIXMJ Ge0iA2q474B46I6WnSlnaOO+tcDfWYO9YwmRHUQVBlECD9VCxKDx6+bXMlHFLGdbpe AvZYBu82Foj5n21MgyWsuw+0ypqaLIF/bk3g69ReVxSMOaWz1PnR8r2FMoLElXNrL8 0IuBE+7ZZte+g== Date: Tue, 10 Jul 2018 11:17:40 +1000 From: Stephen Rothwell To: Doug Ledford , Jason Gunthorpe Cc: Linux-Next Mailing List , Linux Kernel Mailing List , Leon Romanovsky Subject: linux-next: manual merge of the rdma tree with the rdma-fixes tree Message-ID: <20180710111740.5f345088@canb.auug.org.au> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/Te+p1LKerFUhZtZMfBnBc/9"; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Sig_/Te+p1LKerFUhZtZMfBnBc/9 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi all, Today's linux-next merge of the rdma tree got a conflict in: drivers/infiniband/core/uverbs_cmd.c between commit: 4fae7f170416 ("RDMA/uverbs: Fix slab-out-of-bounds in ib_uverbs_ex_create= _flow") from the rdma-fixes tree and commit: 2cc1e3b80942 ("IB/uverbs: Replace file->ucontext with file in uverbs_cmd.= c") from the rdma tree. I fixed it up (see below) and can carry the fix as necessary. This is now fixed as far as linux-next is concerned, but any non trivial conflicts should be mentioned to your upstream maintainer when your tree is submitted for merging. You may also want to consider cooperating with the maintainer of the conflicting tree to minimise any particularly complex conflicts. --=20 Cheers, Stephen Rothwell diff --cc drivers/infiniband/core/uverbs_cmd.c index cc06e8404e9b,d048cabc4246..000000000000 --- a/drivers/infiniband/core/uverbs_cmd.c +++ b/drivers/infiniband/core/uverbs_cmd.c @@@ -3559,11 -3505,11 +3505,16 @@@ int ib_uverbs_ex_create_flow(struct ib_ goto err_uobj; } =20 + if (qp->qp_type !=3D IB_QPT_UD && qp->qp_type !=3D IB_QPT_RAW_PACKET) { + err =3D -EINVAL; + goto err_put; + } + + if (!qp->device->create_flow) { + err =3D -EOPNOTSUPP; + goto err_put; + } +=20 flow_attr =3D kzalloc(struct_size(flow_attr, flows, cmd.flow_attr.num_of_specs), GFP_KERNEL); if (!flow_attr) { @@@ -3583,15 -3529,13 +3534,15 @@@ flow_attr->flags =3D kern_flow_attr->flags; flow_attr->size =3D sizeof(*flow_attr); =20 - kern_spec =3D kern_flow_attr + 1; + kern_spec =3D kern_flow_attr->flow_specs; ib_spec =3D flow_attr + 1; for (i =3D 0; i < flow_attr->num_of_specs && - cmd.flow_attr.size > offsetof(struct ib_uverbs_flow_spec, reserved)= && - cmd.flow_attr.size >=3D - ((struct ib_uverbs_flow_spec *)kern_spec)->size; i++) { - err =3D kern_spec_to_ib_spec(file, kern_spec, ib_spec, uflow_res); + cmd.flow_attr.size >=3D sizeof(*kern_spec) && + cmd.flow_attr.size >=3D kern_spec->size; + i++) { + err =3D kern_spec_to_ib_spec( - file->ucontext, (struct ib_uverbs_flow_spec *)kern_spec, ++ file, (struct ib_uverbs_flow_spec *)kern_spec, + ib_spec, uflow_res); if (err) goto err_free; =20 --Sig_/Te+p1LKerFUhZtZMfBnBc/9 Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAltECTQACgkQAVBC80lX 0Gwx0wf/T1xiq4+0+/x3zkIaiz4fgpeOo7TCASY5+s3c+UBoxI9ZvLyWKaqiE3Z+ wrRnEAckCBYX78e0BDFXVkj+2Ca03/e+9WRxeoC5eYYvbujXAeE4ySmGxXfjO18B G6QINMvKxPdilfxLfH5SofdViJiVs5TlGxOKoOjo0IaHZJcgY2gx9wOHmeIdNjeI VJs2CYK8law/Gmx+3Zc1xIqNnsA3iUi4WNSeoyNPv8Aki8gMblFGs6mXThLHn1UT Hf3jfC6Q7hy7L4Fnnl0TiPg+oKgJBTVWMjThSalRJVnuhgmoRmLdJbEAyZTi3ema 6/PAewnTtEkBRFUY8y2XcaPy/oarTw== =lZby -----END PGP SIGNATURE----- --Sig_/Te+p1LKerFUhZtZMfBnBc/9--