kernel BUG in remove_inode_hugepages

0 views
Skip to first unread message

syzbot

unread,
Jul 19, 2021, 5:39:30 PM7/19/21
to syzkaller-upst...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 8096acd7442e Merge tag 'net-5.14-rc2' of git://git.kernel...
git tree: upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=13fe7bd2300000
kernel config: https://syzkaller.appspot.com/x/.config?x=3cd18d8c27611a6c
dashboard link: https://syzkaller.appspot.com/bug?extid=a50bf47199903393d5e2
CC: [linux-...@vger.kernel.org linu...@kvack.org mike.k...@oracle.com]

Unfortunately, I don't have any reproducer for this issue yet.

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+a50bf4...@syzkaller.appspotmail.com

RBP: 00007f0dd413b1d0 R08: 0000000000000004 R09: 0000000000000000
R10: 0000000000002012 R11: 0000000000000246 R12: 0000000000000002
R13: 00007ffe8d28f7af R14: 00007f0dd413b300 R15: 0000000000022000
------------[ cut here ]------------
kernel BUG at fs/hugetlbfs/inode.c:532!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 12418 Comm: syz-executor.2 Tainted: G W 5.14.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:remove_inode_hugepages+0x52f/0xa90 fs/hugetlbfs/inode.c:532
Code: ff e8 c5 96 4d ff 48 89 ef e8 1d 30 71 ff e9 17 ff ff ff e8 b3 96 4d ff 48 89 ef e8 ab bd 71 ff e9 1a fe ff ff e8 a1 96 4d ff <0f> 0b e8 9a 96 4d ff 49 83 ed 01 e9 d5 fd ff ff e8 8c 96 4d ff 48
RSP: 0018:ffffc900018c77e0 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: ffff88802be86240 RSI: ffffffff822726ff RDI: 0000000000000003
RBP: ffffea0002568000 R08: 0000000000000000 R09: ffffea000256802f
R10: ffffffff82272557 R11: 0000000000000000 R12: 7fffffffffffffff
R13: 0000000000000001 R14: 0000000000000000 R15: 0000000000000000
FS: 0000000000000000(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000005461f8 CR3: 0000000036b5f000 CR4: 00000000001506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
hugetlbfs_evict_inode+0x1f/0x70 fs/hugetlbfs/inode.c:557
evict+0x2ed/0x6b0 fs/inode.c:584
iput_final fs/inode.c:1660 [inline]
iput.part.0+0x539/0x850 fs/inode.c:1686
iput+0x58/0x70 fs/inode.c:1676
dentry_unlink_inode+0x2b1/0x3d0 fs/dcache.c:376
__dentry_kill+0x3c0/0x640 fs/dcache.c:582
dentry_kill fs/dcache.c:708 [inline]
dput+0x73a/0xbc0 fs/dcache.c:888
__fput+0x3ae/0x920 fs/file_table.c:293
task_work_run+0xdd/0x1a0 kernel/task_work.c:164
exit_task_work include/linux/task_work.h:32 [inline]
do_exit+0xbd4/0x2a60 kernel/exit.c:825
do_group_exit+0x125/0x310 kernel/exit.c:922
get_signal+0x47f/0x2160 kernel/signal.c:2808
arch_do_signal_or_restart+0x2a9/0x1c40 arch/x86/kernel/signal.c:865
handle_signal_work kernel/entry/common.c:148 [inline]
exit_to_user_mode_loop kernel/entry/common.c:172 [inline]
exit_to_user_mode_prepare+0x17d/0x290 kernel/entry/common.c:209
__syscall_exit_to_user_mode_work kernel/entry/common.c:291 [inline]
syscall_exit_to_user_mode+0x19/0x60 kernel/entry/common.c:302
do_syscall_64+0x42/0xb0 arch/x86/entry/common.c:86
entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x4665d9
Code: Unable to access opcode bytes at RIP 0x4665af.
RSP: 002b:00007f0dd413b218 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: fffffffffffffe00 RBX: 000000000056bf88 RCX: 00000000004665d9
RDX: 0000000000000000 RSI: 0000000000000080 RDI: 000000000056bf88
RBP: 000000000056bf80 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf8c
R13: 00007ffe8d28f7af R14: 00007f0dd413b300 R15: 0000000000022000
Modules linked in:
---[ end trace ac00695e4dfb0207 ]---
RIP: 0010:remove_inode_hugepages+0x52f/0xa90 fs/hugetlbfs/inode.c:532
Code: ff e8 c5 96 4d ff 48 89 ef e8 1d 30 71 ff e9 17 ff ff ff e8 b3 96 4d ff 48 89 ef e8 ab bd 71 ff e9 1a fe ff ff e8 a1 96 4d ff <0f> 0b e8 9a 96 4d ff 49 83 ed 01 e9 d5 fd ff ff e8 8c 96 4d ff 48
RSP: 0018:ffffc900018c77e0 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: ffff88802be86240 RSI: ffffffff822726ff RDI: 0000000000000003
RBP: ffffea0002568000 R08: 0000000000000000 R09: ffffea000256802f
R10: ffffffff82272557 R11: 0000000000000000 R12: 7fffffffffffffff
R13: 0000000000000001 R14: 0000000000000000 R15: 0000000000000000
FS: 0000000000000000(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f19b79c9000 CR3: 000000001619b000 CR4: 00000000001506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

syzbot

unread,
Aug 16, 2021, 10:07:18 PM8/16/21
to syzkaller-upst...@googlegroups.com
Sending this report upstream.
Reply all
Reply to author
Forward
0 new messages