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  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:   Sun, 3 Mar 2019 18:37:59 -0800
From:   Linus Torvalds <>
To:     Masami Hiramatsu <>
Cc:     kernel test robot <>,
        Steven Rostedt <>,
        Shuah Khan <>,
        Linux List Kernel Mailing <>,
        Andy Lutomirski <>,
        Ingo Molnar <>,
        Andrew Morton <>,
        Changbin Du <>,
        Jann Horn <>,
        Kees Cook <>,
        Andy Lutomirski <>,
        Alexei Starovoitov <>,
        Nadav Amit <>,
        Peter Zijlstra <>,
        Joel Fernandes <>,,
Subject: Re: [uaccess] 780464aed0: WARNING:at_arch/x86/include/asm/uaccess.h:#strnlen_user/0x

On Sun, Mar 3, 2019 at 5:14 PM Masami Hiramatsu <> wrote:
> I think it comes from WARN_ON_ONCE(!segment_eq(get_fs(), USER_DS)) in
> user_access_ok(). The call trace shows that strndup_user might be called
> from kernel daemon context.

Ahh, yes.

We've had this before. We've gotten rid of the actual "use system
calls", but we still have some of the init sequence in particular just
calling the wrappers instead.

And yes, ksys_mount() takes __user pointers.

It would be a lot better to use "do_mount()", which is the interface
that takes actual "char *" pointers.


Powered by blists - more mailing lists