Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4756330imm; Wed, 30 May 2018 11:20:48 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKkd6M1IynRMIY5GDJT48Wk3CrzUCv2hruxmHzWkY9Zo2nmCn631De7Ry/oUthUQMJf7rqG X-Received: by 2002:a63:ba4b:: with SMTP id l11-v6mr2940526pgu.295.1527704448439; Wed, 30 May 2018 11:20:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527704448; cv=none; d=google.com; s=arc-20160816; b=hhzc8WWz55DXzcXzdv6v4YNVTZUbydkqKYVW3mxuyEWUdjvhqNZxs2hoWQnE0jXk+q NDsMtPEFSHmMiwDDsCJSECfy91goGpdhPtdLw4b9U1LRNP0arX2JhYhr56MtreIBWC8c tDaNKhzrkuQStN3ay3qIgm13s4l83yD/1d+9041Y5bFNFFECVqY9L2SmPdIKRNxvpqvC STvm1o+kBc4xc0ijcOVdkOKdNMs12iYeRKcDXyqjS/O6rxHrxgojvD7qyTy0JZXn8OCq pkyCBT4y0jsThwOtRcnHEfJhpxbiu6HPr7OuFT6bzUwUV9N+/BwMTPTyiXdRQxcwV3oC 1WAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:mail-followup-to:message-id:subject:cc:to :from:date:arc-authentication-results; bh=RJ/TKrvCgYGaHPYSAMV4e66VmDeZJuNvoiwGk34efb8=; b=pi/DtRYv7VIrE/R32GuA67g9dosyzpYVZSxkrKRoC9g5VmQtkDYB3TnxSJ8NGI0RQr hPMB4PSsj+5XJsIcy6AvgCMzGB2Jiz/OgI8BLByT3UEE0Zln+ti9qby+c+Qd/q8qCGpY HZ8W3t6uIiFZySsaBt3qKFBQ02Vj+I0gyEOd4StmztQRRgXd1kXdnknqi7j/CXrjBHCA R2yvVaqZnNzNeM1nNEDarx6CbUBVje6iRyFjhoMD5cv9zjXabdXZ4zSiXuGCfinXXjDU 3WOek5PSXysZWDCw7mYdrW2IxWK7yTaScMVSFBBDLrf3Rg830/rbVUeqBx8r4x86OoyC Sicw== 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 c74-v6si15428608pga.522.2018.05.30.11.20.33; Wed, 30 May 2018 11:20:48 -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 S1753708AbeE3STD (ORCPT + 99 others); Wed, 30 May 2018 14:19:03 -0400 Received: from vmicros1.altlinux.org ([194.107.17.57]:34542 "EHLO vmicros1.altlinux.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750752AbeE3STA (ORCPT ); Wed, 30 May 2018 14:19:00 -0400 Received: from mua.local.altlinux.org (mua.local.altlinux.org [192.168.1.14]) by vmicros1.altlinux.org (Postfix) with ESMTP id 3DD6772D1E7; Wed, 30 May 2018 21:18:58 +0300 (MSK) Received: by mua.local.altlinux.org (Postfix, from userid 508) id 2C5757CC6FF; Wed, 30 May 2018 21:18:58 +0300 (MSK) Date: Wed, 30 May 2018 21:18:58 +0300 From: "Dmitry V. Levin" To: Eugene Syromiatnikov Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Martin KaFai Lau , Daniel Borkmann , Alexei Starovoitov , "David S. Miller" , Jiri Olsa , Ingo Molnar , Lawrence Brakmo , Andrey Ignatov , Jakub Kicinski , John Fastabend Subject: Re: [PATCH bpf 1/2] bpf: fix alignment of netns_dev/netns_ino fields in bpf_{map,prog}_info Message-ID: <20180530181857.GA6744@altlinux.org> Mail-Followup-To: Eugene Syromiatnikov , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Martin KaFai Lau , Daniel Borkmann , Alexei Starovoitov , "David S. Miller" , Jiri Olsa , Ingo Molnar , Lawrence Brakmo , Andrey Ignatov , Jakub Kicinski , John Fastabend References: <20180527112842.GA18204@asgard.redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="FL5UXtIhxfXey3p5" Content-Disposition: inline In-Reply-To: <20180527112842.GA18204@asgard.redhat.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --FL5UXtIhxfXey3p5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, May 27, 2018 at 01:28:42PM +0200, Eugene Syromiatnikov wrote: > Recent introduction of netns_dev/netns_ino to bpf_map_info/bpf_prog info > has broken compat, as offsets of these fields are different in 32-bit > and 64-bit ABIs. One fix (other than implementing compat support in > syscall in order to handle this discrepancy) is to use __aligned_u64 > instead of __u64 for these fields. >=20 > Reported-by: Dmitry V. Levin > Fixes: 52775b33bb507 ("bpf: offload: report device information about > offloaded maps") > Fixes: 675fc275a3a2d ("bpf: offload: report device information for > offloaded programs") Reviewed-by: "Dmitry V. Levin" Cc: # v4.16+ Thanks, --=20 ldv --FL5UXtIhxfXey3p5 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIcBAEBCAAGBQJbDusRAAoJEAVFT+BVnCUIXbEP/AwqWZwvcE5kx8KFhZTcPBo3 6N/1OsST+PMv6eNzGSjp6vVNp0n7gLjtT5XMjYP4S30UtG28SEXq0+52KR2dCRuQ RhzeSEE0Gk95kn98a0q5Fjko0O8+GHhvhMt2MGQ0ZN4x7PGSSTWDTSql853CzdBV FyDEjl/K5o3D1fmqCPGS+ZjAI2gUbtf1uP4mBCSUoqqpwmTCG17KZUmAbm5C+zyQ /p4lOhsG0ZLE2AsVwsSvQVLa1ihw2SyawqrFbF3Wi8Jl+AA1qiwl+H+ANPdgLkTK Rw7UeWdW7wzXsVuahz1tTQyZNkpy26h+bwZYyKPrkRD9zaAxOHNsxmrH88rp/fpP N3qIOgfIoqOovY2cLy4ghbOAbacSt+nVonhLUYFQIQPFivZFql9jKsMxyNF4kA/0 VLrGH8CJ/MJxQTDM0YVQBsbDZ2JNHJB3zv9Rw5cpVzbC5hYrbfLT/npebV5hrFNk wk2qTgQoMHXAvsfvNyzowWVxeOzujFZmvlMZmRbBLSXPS+PykgHJHkSn1e03vhYu CG81W946tGb71TNXWN7dCYNWRTOaSAjzlZyECcbM07ckPJnpZk4QLsFDoDacq9Ls Tsq9/MNpGrK8YXH7BXqj6G/GYrED7H82Ng/g/CFO4Fon/bTBDYu9Zn8/LlaCtqn4 Nqlas/SFSpgdWBHUxBG3 =gJ61 -----END PGP SIGNATURE----- --FL5UXtIhxfXey3p5--