Re: [syzbot] WARNING: refcount bug in sys_memfd_secret

From: syzbot
Date: Sat Oct 23 2021 - 19:00:39 EST


syzbot has bisected this issue to:

commit 110860541f443f950c1274f217a1a3e298670a33
Author: Jordy Zomer <jordy@xxxxxxxxxxxxxxxxxxxx>
Date: Wed Sep 8 02:56:18 2021 +0000

mm/secretmem: use refcount_t instead of atomic_t

bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=141a071cb00000
start commit: 9c0c4d24ac00 Merge tag 'block-5.15-2021-10-22' of git://gi..
git tree: upstream
final oops: https://syzkaller.appspot.com/x/report.txt?x=161a071cb00000
console output: https://syzkaller.appspot.com/x/log.txt?x=121a071cb00000
kernel config: https://syzkaller.appspot.com/x/.config?x=be398dd7862f4b36
dashboard link: https://syzkaller.appspot.com/bug?extid=b904a1de3ec43711eba5
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=130cabdcb00000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=175b91acb00000

Reported-by: syzbot+b904a1de3ec43711eba5@xxxxxxxxxxxxxxxxxxxxxxxxx
Fixes: 110860541f44 ("mm/secretmem: use refcount_t instead of atomic_t")

For information about bisection process see: https://goo.gl/tpsmEJ#bisection