lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Thu, 5 Apr 2018 09:19:28 +0200
From:   Lars-Peter Clausen <>
To:     Kees Cook <>,
        Greg KH <>,
        Felipe Balbi <>,
        Al Viro <>
Cc:     Linus Torvalds <>,
        Andrew Morton <>,
        LKML <>,,
        Christoph Hellwig <>
Subject: Re: [GIT PULL] USB/PHY driver patches for 4.17-rc1

On 04/05/2018 08:31 AM, Kees Cook wrote:
> On Wed, Apr 4, 2018 at 3:31 AM, Greg KH <> wrote:
>> Lars-Peter Clausen (2):
>>       usb: gadget: ffs: Execute copy_to_user() with USER_DS set
> Isn't there a better way to do this without the set_fs() usage? We've
> been try to eliminate it in the kernel. I thought there was a safer
> way to use iters now?

The problem is use_mm(). It needs to be accompanied with set_fs(DS_USER) to
work reliably. This has simply been missing for this particular instance of

Now, in my opinion, use_mm() is not the best approach here in the first
place and instead of using copy_to_user() it is probably better to map the
userspace pages to kernel space and then access them directly. But that's a
lot more intrusive and separate from this issue.

- Lars

Powered by blists - more mailing lists