From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DD458C5B57D for ; Fri, 5 Jul 2019 07:20:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9FAF1218BE for ; Fri, 5 Jul 2019 07:20:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1562311205; bh=1uqDzrpBxZPWMFNSI0wJ4J/DrSHxwiBbUr7CRF8qQxs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-ID:From; b=cNQCQ+0aWH7QwhOxuN2tSQNX9X3KxZipF6mSsckaOVdUm83sR8xJVaX0kZt/F2vZ1 vnP67YD7DKALah0J6Q4XhH0nT9R8TZeg4ArlJX44QbCIJ8kQ/SqR+1uLn6+rVyQR9S ugxChaBIuFj21hLbOfn4XvfE3PG6DpjhBqisKSHM= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727727AbfGEHUF (ORCPT ); Fri, 5 Jul 2019 03:20:05 -0400 Received: from mail.kernel.org ([198.145.29.99]:56456 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726436AbfGEHUF (ORCPT ); Fri, 5 Jul 2019 03:20:05 -0400 Received: from localhost (unknown [122.167.76.109]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E5DB3218BB; Fri, 5 Jul 2019 07:20:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1562311204; bh=1uqDzrpBxZPWMFNSI0wJ4J/DrSHxwiBbUr7CRF8qQxs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=TzKeQy7UmXpxHB9XrFz9e6393jobald8LYWcpIiUCpZyVZQoxiq2MiurlFvuALG5U CANHFx7p1T+C976Qv2+5cZeUJi/oI1TLSgya0cpI9yb8EK5yiL+JMlbl53qBuwmPVt +h/z+bZ6vmHKW4XE951ywiHsPs7atPkGaZlbLBL4= Date: Fri, 5 Jul 2019 12:46:46 +0530 From: Vinod Koul To: Dan Carpenter Cc: Zubair Lutfullah Kakakhel , Paul Cercueil , Dan Williams , dmaengine@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: Re: [PATCH] dmaengine: jz4780: Fix an endian bug in IRQ handler Message-ID: <20190705071646.GZ2911@vkoul-mobl> References: <20190624134940.GC1754@mwanda> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190624134940.GC1754@mwanda> User-Agent: Mutt/1.11.3 (2019-02-01) Sender: dmaengine-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org On 24-06-19, 16:49, Dan Carpenter wrote: > The "pending" variable was a u32 but we cast it to an unsigned long > pointer when we do the for_each_set_bit() loop. The problem is that on > big endian 64bit systems that results in an out of bounds read. Applied, thanks -- ~Vinod