[lkml]   [2019]   [Dec]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: WARNING in ovl_rename
On Fri, Dec 6, 2019 at 3:54 AM syzbot
<> wrote:
> syzbot suspects this bug was fixed by commit:
> commit 146d62e5a5867fbf84490d82455718bfb10fe824
> Author: Amir Goldstein <>
> Date: Thu Apr 18 14:42:08 2019 +0000
> ovl: detect overlapping layers
> bisection log:
> start commit: 037904a2 Merge branch 'x86-urgent-for-linus' of git://git...
> git tree: upstream
> kernel config:
> dashboard link:
> syz repro:
> C reproducer:
> If the result looks correct, please mark the bug fixed by replying with:
> #syz fix: ovl: detect overlapping layers

Not exactly. Depends how you define "the bug".

The actual bug wasn't introduced by:
ovl: fix EIO from lookup of non-indexed upper

Nor was it fixed by:
ovl: detect overlapping layers

It would be more accurate to say that the former commit exposed the bug
to this specific repro and the latter commit has masked it from this repro.

The actual bug was introduced by:
804032fabb3b ("ovl: don't check rename to self")

Which did not take into account hardlinking underneath overlayfs.

I posted a fix to relax this WARN_ON(), which is marked for stable 4.9+,
because I see that the repro is also reported on kernel 4.14.y and
"ovl: detect overlapping layers" is not expected to land in 4.14.y.


 \ /
  Last update: 2019-12-06 07:47    [W:0.074 / U:4.912 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site