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: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:   Mon, 8 Jun 2020 09:37:52 +0800
From:   Chao Yu <>
To:     Eric Biggers <>,
CC:     <>, Daniel Rosenberg <>,
        <>, Al Viro <>,
        Gabriel Krisman Bertazi <>
Subject: Re: [PATCH v2] f2fs: avoid utf8_strncasecmp() with unstable name

On 2020/6/2 4:08, Eric Biggers wrote:
> From: Eric Biggers <>
> If the dentry name passed to ->d_compare() fits in dentry::d_iname, then
> it may be concurrently modified by a rename.  This can cause undefined
> behavior (possibly out-of-bounds memory accesses or crashes) in
> utf8_strncasecmp(), since fs/unicode/ isn't written to handle strings
> that may be concurrently modified.
> Fix this by first copying the filename to a stack buffer if needed.
> This way we get a stable snapshot of the filename.
> Fixes: 2c2eb7a300cd ("f2fs: Support case-insensitive file name lookups")
> Cc: <> # v5.4+
> Cc: Al Viro <>
> Cc: Daniel Rosenberg <>
> Cc: Gabriel Krisman Bertazi <>
> Signed-off-by: Eric Biggers <>

Reviewed-by: Chao Yu <>


Powered by blists - more mailing lists