* Re: KASAN: use-after-free Write in kernfs_path_from_node_locked
[not found] <000000000000b8a70905b54ef5ca@google.com>
@ 2020-11-30 13:08 ` syzbot
2020-11-30 18:02 ` Axel Rasmussen
0 siblings, 1 reply; 2+ messages in thread
From: syzbot @ 2020-11-30 13:08 UTC (permalink / raw)
To: akpm, axelrasmussen, davem, dsahern, gregkh, kuba, linux-kernel,
liuhangbin, netdev, sfr, syzkaller-bugs, tj, vbabka
syzbot has bisected this issue to:
commit 0f818c4bc1f3dc0d6d0ea916e0ab30cf5e75f4c0
Author: Axel Rasmussen <axelrasmussen@google.com>
Date: Tue Nov 24 05:37:42 2020 +0000
mm: mmap_lock: add tracepoints around lock acquisition
bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=1626291d500000
start commit: 6174f052 Add linux-next specific files for 20201127
git tree: linux-next
final oops: https://syzkaller.appspot.com/x/report.txt?x=1526291d500000
console output: https://syzkaller.appspot.com/x/log.txt?x=1126291d500000
kernel config: https://syzkaller.appspot.com/x/.config?x=79c69cf2521bef9c
dashboard link: https://syzkaller.appspot.com/bug?extid=19e6dd9943972fa1c58a
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=12c3351d500000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=14c28809500000
Reported-by: syzbot+19e6dd9943972fa1c58a@syzkaller.appspotmail.com
Fixes: 0f818c4bc1f3 ("mm: mmap_lock: add tracepoints around lock acquisition")
For information about bisection process see: https://goo.gl/tpsmEJ#bisection
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: KASAN: use-after-free Write in kernfs_path_from_node_locked
2020-11-30 13:08 ` KASAN: use-after-free Write in kernfs_path_from_node_locked syzbot
@ 2020-11-30 18:02 ` Axel Rasmussen
0 siblings, 0 replies; 2+ messages in thread
From: Axel Rasmussen @ 2020-11-30 18:02 UTC (permalink / raw)
To: syzbot
Cc: Andrew Morton, David S. Miller, dsahern, gregkh, kuba, LKML,
liuhangbin, netdev, sfr, syzkaller-bugs, tj, Vlastimil Babka
I spent some time looking into this:
I think there are actually two bugs here. The write-after-free in
kernfs_path_from_node_locked has an entirely different call trace
(towards the end of this log:
https://syzkaller.appspot.com/text?tag=CrashLog&x=16b1e0e9500000)
compared to the NULL pointer dereference in neigh_periodic_work crash.
For the neigh_periodic_work crash, I struggle to see how this is
related to 0f818c4bc1. It looks like what happens is at some point (I
haven't spotted where) we free struct neighbour->lock, and then later
when the workqueue calls into us we try to acquire it. I don't see any
connection between this code and 0f818c4bc1. The lock in question
isn't mmap_lock, but rather a separate lock owned by the struct
neighbour.
For the kernfs_path_from_node_locked crash, that one *does* look
related to 0f818c4bc1. I'll continue debugging and send a patch.
On Mon, Nov 30, 2020 at 5:08 AM syzbot
<syzbot+19e6dd9943972fa1c58a@syzkaller.appspotmail.com> wrote:
>
> syzbot has bisected this issue to:
>
> commit 0f818c4bc1f3dc0d6d0ea916e0ab30cf5e75f4c0
> Author: Axel Rasmussen <axelrasmussen@google.com>
> Date: Tue Nov 24 05:37:42 2020 +0000
>
> mm: mmap_lock: add tracepoints around lock acquisition
>
> bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=1626291d500000
> start commit: 6174f052 Add linux-next specific files for 20201127
> git tree: linux-next
> final oops: https://syzkaller.appspot.com/x/report.txt?x=1526291d500000
> console output: https://syzkaller.appspot.com/x/log.txt?x=1126291d500000
> kernel config: https://syzkaller.appspot.com/x/.config?x=79c69cf2521bef9c
> dashboard link: https://syzkaller.appspot.com/bug?extid=19e6dd9943972fa1c58a
> syz repro: https://syzkaller.appspot.com/x/repro.syz?x=12c3351d500000
> C reproducer: https://syzkaller.appspot.com/x/repro.c?x=14c28809500000
>
> Reported-by: syzbot+19e6dd9943972fa1c58a@syzkaller.appspotmail.com
> Fixes: 0f818c4bc1f3 ("mm: mmap_lock: add tracepoints around lock acquisition")
>
> For information about bisection process see: https://goo.gl/tpsmEJ#bisection
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-11-30 18:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <000000000000b8a70905b54ef5ca@google.com>
2020-11-30 13:08 ` KASAN: use-after-free Write in kernfs_path_from_node_locked syzbot
2020-11-30 18:02 ` Axel Rasmussen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).