Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1332141
| From | Tejun Heo <tj@kernel.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] libata: fix HDIO_GET_32BIT ioctl |
| Date | 2016-02-11 16:20 +0100 |
| Message-ID | <r11cf-26P-25@gated-at.bofh.it> (permalink) |
| References | <r0Zk6-QV-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH] libata: fix HDIO_GET_32BIT ioctl Arnd Bergmann <arnd@arndb.de> - 2016-02-11 14:20 +0100 Re: [PATCH] libata: fix HDIO_GET_32BIT ioctl Tejun Heo <tj@kernel.org> - 2016-02-11 16:20 +0100
csiph-web