]> git.baikalelectronics.ru Git - kernel.git/commit
fs/fcntl: use copy_to/from_user() for u64 types
authorJens Axboe <axboe@kernel.dk>
Wed, 28 Jun 2017 14:09:45 +0000 (08:09 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 28 Jun 2017 14:09:45 +0000 (08:09 -0600)
commite5f1796c0f4e24d8ae6e1acb8d3e8cc178ce2f8a
treeca0b3a6843965f6da3128472491f47cd3f6f3785
parente664609fb346fa27db7934c8b6463298b3446a4e
fs/fcntl: use copy_to/from_user() for u64 types

Some architectures (at least PPC) doesn't like get/put_user with
64-bit types on a 32-bit system. Use the variably sized copy
to/from user variants instead.

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Fixes: 70da5cd5da08 ("fs: add fcntl() interface for setting/getting write life time hints")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/fcntl.c