From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751354AbcBKPKg (ORCPT ); Thu, 11 Feb 2016 10:10:36 -0500 Received: from mail-yw0-f174.google.com ([209.85.161.174]:35727 "EHLO mail-yw0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751157AbcBKPKc (ORCPT ); Thu, 11 Feb 2016 10:10:32 -0500 Date: Thu, 11 Feb 2016 10:10:30 -0500 From: Tejun Heo To: Arnd Bergmann Cc: linux-arm-kernel@lists.infradead.org, Soohoon Lee , stable@vger.kernel.org, linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] libata: fix HDIO_GET_32BIT ioctl Message-ID: <20160211151030.GW3741@mtj.duckdns.org> References: <1455196595-3466120-1-git-send-email-arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1455196595-3466120-1-git-send-email-arnd@arndb.de> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 11, 2016 at 02:16:27PM +0100, Arnd Bergmann wrote: > As reported by Soohoon Lee, the HDIO_GET_32BIT ioctl does not > work correctly in compat mode with libata. > > I have investigated the issue further and found multiple problems > that all appeared with the same commit that originally introduced > HDIO_GET_32BIT handling in libata back in linux-2.6.8 and presumably > also linux-2.4, as the code uses "copy_to_user(arg, &val, 1)" to copy > a 'long' variable containing either 0 or 1 to user space. Applied to libata/for-4.5-fixes. Thanks a lot! -- tejun