Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752457AbbFZNR4 (ORCPT ); Fri, 26 Jun 2015 09:17:56 -0400 Received: from foss.arm.com ([217.140.101.70]:60199 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752333AbbFZNRs (ORCPT ); Fri, 26 Jun 2015 09:17:48 -0400 Date: Fri, 26 Jun 2015 14:17:44 +0100 From: Catalin Marinas To: Xi Wang Cc: linux-arm-kernel@lists.infradead.org, Zi Shen Lim , linux-kernel@vger.kernel.org, Alexei Starovoitov Subject: Re: [RFC PATCH] arm64: bpf: fix endianness conversion bugs Message-ID: <20150626131744.GF3078@e104818-lin.cambridge.arm.com> References: <1435282755-12011-1-git-send-email-xi.wang@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1435282755-12011-1-git-send-email-xi.wang@gmail.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 802 Lines: 25 On Thu, Jun 25, 2015 at 06:39:15PM -0700, Xi Wang wrote: > Upper bits should be zeroed in endianness conversion: > > - even when there's no need to change endianness (i.e., BPF_FROM_BE > on big endian or BPF_FROM_LE on little endian); > > - after rev16. > > This patch fixes such bugs by emitting extra instructions to clear > upper bits. > > Cc: Zi Shen Lim > Cc: Alexei Starovoitov > Fixes: e54bcde3d69d ("arm64: eBPF JIT compiler") > Signed-off-by: Xi Wang Applied. Thanks. -- Catalin -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/