Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp6863962ybf; Fri, 6 Mar 2020 06:04:25 -0800 (PST) X-Google-Smtp-Source: ADFU+vsAl4D4vqJFoX86Ccb/lsSaY3XdbxRqGO0PzNul3oEdQp851kYUrVroU0IJDrWO1jpRrq6t X-Received: by 2002:a9d:3c1:: with SMTP id f59mr2717781otf.170.1583503465763; Fri, 06 Mar 2020 06:04:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583503465; cv=none; d=google.com; s=arc-20160816; b=PSH9D4PL6HIMnsggguWBG5Ro81PimvhtGeajRihqxfqrobnOE1LjTGlWbRC5z2sBJ1 HE17Q+ZTeYBuXkHffUFXc+ZLHkVHLYAqP8XLMCxzIpFp7qZT6WUMj0WqUpS34iPYHL+n uMwXVexvSKQfBFq867ejQyryZy+C7z7r4I17q2IqYhR5ZKexedgvlJRRPJbKa9BYeb5k UZxYF8JOIQ+PCvoXTsAJUk05H53CPT0+LQhm9Lq4ZdW5kVuNNNBB5rlLxmYrfCnSqBHy /ckZkdkh1WcHvFyN7OPCfAmLFdbKuENC3eZTXzZnR7LDTBV3XxcqXoYH2zI7BXdU7XIw IwHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=F6z93t22I7dLlqpUv6xj1BwmvrGeQlkAY0z61utmChI=; b=TwIvmnWyD2b/MqG3zNNsB1DyvMGYySeXEZPU1nx8AmHmf6itxW78o8kUZm0cTk3v4m OMyHV7UbjFLoNEU5SYDqq3TqM4IN6UVPUotPeS9JPrp8LzzFeQTrArvhGJCVZxF3ycTG HT5UlfsJNfsYPaUo8t1eQGpAaEF/PQfebeifJ+dlYPTxm1G3Rhab9+cIBxIrpUDUHyYb Lk3o6G/NiRDOa0h6JKdnTPD907QaRLORq7qaTFrK1SoCFGvI/NCP5tVhFJ+xguaO1CAf X4m00NY/G9zVh4ZAJ3HPENfQZY2nW2zDyxRN8t1PBoPKekE9f3bkP4yAz/AT2NIW8/LS F0kw== 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 e2si1260370oig.158.2020.03.06.06.04.12; Fri, 06 Mar 2020 06:04:25 -0800 (PST) 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 S1726781AbgCFODs (ORCPT + 99 others); Fri, 6 Mar 2020 09:03:48 -0500 Received: from www62.your-server.de ([213.133.104.62]:36220 "EHLO www62.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726299AbgCFODs (ORCPT ); Fri, 6 Mar 2020 09:03:48 -0500 Received: from sslproxy03.your-server.de ([88.198.220.132]) by www62.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89_1) (envelope-from ) id 1jADZc-0000cm-NY; Fri, 06 Mar 2020 15:03:32 +0100 Received: from [85.7.42.192] (helo=pc-9.home) by sslproxy03.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jADZc-000ACl-1Q; Fri, 06 Mar 2020 15:03:32 +0100 Subject: Re: [PATCH bpf 1/2] bpf, x32: fix bug with JMP32 JSET BPF_X checking upper bits To: Luke Nelson , bpf@vger.kernel.org Cc: Luke Nelson , Xi Wang , Wang YanQing , "David S. Miller" , Alexey Kuznetsov , Hideaki YOSHIFUJI , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , x86@kernel.org, Alexei Starovoitov , Martin KaFai Lau , Song Liu , Yonghong Song , Andrii Nakryiko , Shuah Khan , Jiong Wang , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org References: <20200305234416.31597-1-luke.r.nels@gmail.com> From: Daniel Borkmann Message-ID: Date: Fri, 6 Mar 2020 15:03:30 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <20200305234416.31597-1-luke.r.nels@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Authenticated-Sender: daniel@iogearbox.net X-Virus-Scanned: Clear (ClamAV 0.102.2/25742/Thu Mar 5 15:10:18 2020) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/6/20 12:44 AM, Luke Nelson wrote: > The current x32 BPF JIT is incorrect for JMP32 JSET BPF_X when the upper > 32 bits of operand registers are non-zero in certain situations. [...] > We found this bug using our automated verification tool, Serval. > > Fixes: 69f827eb6e14 ("x32: bpf: implement jitting of JMP32") > Co-developed-by: Xi Wang > Signed-off-by: Xi Wang > Signed-off-by: Luke Nelson Applied both, thanks for the fix!