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  PHC 
Open Source and information security mailing list archives
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Fri, 7 Aug 2020 13:29:24 -0700
From:   John Stultz <>
To:     Kees Cook <>
Cc:     Linux Kernel Mailing List <>,
        Christian Brauner <>,
        Sargun Dhillon <>,
        Christian Brauner <>,
        Tycho Andersen <>,
        David Laight <>,
        Christoph Hellwig <>,
        "David S. Miller" <>,
        Jakub Kicinski <>,
        Alexander Viro <>,
        Aleksa Sarai <>,
        Matt Denton <>,
        Jann Horn <>, Chris Palmer <>,
        Robert Sesek <>,
        Giuseppe Scrivano <>,
        Greg Kroah-Hartman <>,
        Andy Lutomirski <>,
        Will Drewry <>, Shuah Khan <>,
        netdev <>,,,,,
        Amit Pundir <>,
        Bjorn Andersson <>
Subject: Re: [PATCH v7 3/9] net/scm: Regularize compat handling of scm_detach_fds()

On Thu, Jul 9, 2020 at 11:28 AM Kees Cook <> wrote:
> Duplicate the cleanups from commit 2618d530dd8b ("net/scm: cleanup
> scm_detach_fds") into the compat code.
> Replace open-coded __receive_sock() with a call to the helper.
> Move the check added in commit 1f466e1f15cf ("net: cleanly handle kernel
> vs user buffers for ->msg_control") to before the compat call, even
> though it should be impossible for an in-kernel call to also be compat.
> Correct the int "flags" argument to unsigned int to match fd_install()
> and similar APIs.
> Regularize any remaining differences, including a whitespace issue,
> a checkpatch warning, and add the check from commit 6900317f5eff ("net,
> scm: fix PaX detected msg_controllen overflow in scm_detach_fds") which
> fixed an overflow unique to 64-bit. To avoid confusion when comparing
> the compat handler to the native handler, just include the same check
> in the compat handler.
> Acked-by: Christian Brauner <>
> Signed-off-by: Kees Cook <>
> ---

Hey Kees,
  So during the merge window (while chasing a few other regressions),
I noticed occasionally my Dragonboard 845c running AOSP having trouble
with the web browser crashing or other apps hanging, and I've bisected
the issue down to this change.

Unfortunately it doesn't revert cleanly so I can't validate reverting
it sorts things against linus/HEAD.  Anyway, I wanted to check and see
if you had any other reports of similar or any ideas what might be
going wrong?


Powered by blists - more mailing lists