From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.7 required=3.0 tests=BAYES_00,FROM_LOCAL_HEX, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 24037C4338F for ; Tue, 17 Aug 2021 02:07:26 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id C3024603E7 for ; Tue, 17 Aug 2021 02:07:25 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org C3024603E7 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kvack.org Received: by kanga.kvack.org (Postfix) id 5912D6B006C; Mon, 16 Aug 2021 22:07:25 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 53FE56B0072; Mon, 16 Aug 2021 22:07:25 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 42E3E8D0001; Mon, 16 Aug 2021 22:07:25 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0218.hostedemail.com [216.40.44.218]) by kanga.kvack.org (Postfix) with ESMTP id 276C76B006C for ; Mon, 16 Aug 2021 22:07:25 -0400 (EDT) Received: from smtpin06.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id BCAD4160A5 for ; Tue, 17 Aug 2021 02:07:24 +0000 (UTC) X-FDA: 78482935608.06.560AA3B Received: from mail-io1-f70.google.com (mail-io1-f70.google.com [209.85.166.70]) by imf13.hostedemail.com (Postfix) with ESMTP id 404311024E0F for ; Tue, 17 Aug 2021 02:07:24 +0000 (UTC) Received: by mail-io1-f70.google.com with SMTP id n22-20020a6bf6160000b0290520c8d13420so10334061ioh.19 for ; Mon, 16 Aug 2021 19:07:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=B3AAPQuMcQ62qqulG+gvB5HQAEfDQ5g/T+ib/OQjkUU=; b=exH4x+jsOXPW1otznUtmEDxyCKdlujkFrD0i2aHRPAL03uFQVhhp0fxU1e0mVMeac1 0MssQVKfVTD4l3l8+w/rvWwMIoph097UeAwahWXUPJrmtanarP9jQ71x4zAQh9+iF/aw 5JWe6TGZH5JLD0cssHMf0sXn6EmceAKLPrKXFrcavt5Y7s1wkXh7tfWGSGcaeF+slCvf BuMvnYzBRfSqnWX1JcsyJJ+s64TkDwiCkAwsguIKEWMqYSY6K7MrBK9VEr1Bp2xsiKiZ 4PhV5CmYq72VcTNV0NEPUTvc+3EbR77WADlzhN3b410rhdS03Pbi8se24ASgFbPbi4D6 PKEg== X-Gm-Message-State: AOAM530oYzrSHF6RHgKZZYrA8NjIIFa91EdQtD7uoO4ke50uSKt9JMwB p49H14Da+wIMXeEO0LlL0Xk0EkP4qLwxSIxEZspc4RK7o6a0 X-Google-Smtp-Source: ABdhPJwmgHpjOZmlXhwQBShLlP55HuoWCGGOFAETkI8fDeI1jjHx65yd7UXNcta4RhC3sbA6B92mkvMvjY3lJwEYytXJyipT0174 MIME-Version: 1.0 X-Received: by 2002:a05:6e02:2184:: with SMTP id j4mr755018ila.30.1629166043689; Mon, 16 Aug 2021 19:07:23 -0700 (PDT) Date: Mon, 16 Aug 2021 19:07:23 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <00000000000050776d05c9b7c7f0@google.com> Subject: [syzbot] kernel BUG in remove_inode_hugepages From: syzbot To: linux-kernel@vger.kernel.org, linux-mm@kvack.org, mike.kravetz@oracle.com, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 404311024E0F Authentication-Results: imf13.hostedemail.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=appspotmail.com (policy=none); spf=pass (imf13.hostedemail.com: domain of 32xkbYQkbAIo6CDyozzs5o33wr.u22uzs86s5q217s17.q20@M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com designates 209.85.166.70 as permitted sender) smtp.mailfrom=32xkbYQkbAIo6CDyozzs5o33wr.u22uzs86s5q217s17.q20@M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com X-Rspamd-Server: rspam04 X-Stat-Signature: biw4mr71z9b5qou4e4t1ymy8sj89az3f X-HE-Tag: 1629166044-994255 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Hello, syzbot found the following issue on: HEAD commit: a2824f19e606 Merge tag 'mtd/fixes-for-5.14-rc7' of git://g.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=110d54ee300000 kernel config: https://syzkaller.appspot.com/x/.config?x=96f0602203250753 dashboard link: https://syzkaller.appspot.com/bug?extid=67654e51e54455f1c585 compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.1 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=12eeb6a6300000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=13515779300000 IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+67654e51e54455f1c585@syzkaller.appspotmail.com Code: 28 c3 e8 2a 14 00 00 66 2e 0f 1f 84 00 00 00 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffedef26928 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 000000000043f589 RDX: 000000000000effd RSI: 0000000020000680 RDI: 0000000000000003 RBP: 00007ffedef26930 R08: 0000000000000001 R09: 0000000000400034 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000005 R13: 0000000000000000 R14: 00000000004ad018 R15: 0000000000400488 ------------[ cut here ]------------ kernel BUG at fs/hugetlbfs/inode.c:532! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 8445 Comm: syz-executor211 Not tainted 5.14.0-rc6-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 d5 f2 4c ff 48 89 ef e8 3d c3 70 ff e9 17 ff ff ff e8 c3 f2 4c ff 48 89 ef e8 cb 50 71 ff e9 1a fe ff ff e8 b1 f2 4c ff <0f> 0b e8 aa f2 4c ff 49 83 ed 01 e9 d5 fd ff ff e8 9c f2 4c ff 48 RSP: 0018:ffffc900017afa30 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: ffff888017093880 RSI: ffffffff8228b64f RDI: 0000000000000003 RBP: ffffea0000a48000 R08: 0000000000000000 R09: ffffea0000a4802f R10: ffffffff8228b4a7 R11: 0000000000000000 R12: 7fffffffffffffff R13: 0000000000000001 R14: 0000000000000000 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000004801c0 CR3: 0000000029917000 CR4: 00000000001506e0 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 __do_sys_exit_group kernel/exit.c:933 [inline] __se_sys_exit_group kernel/exit.c:931 [inline] __x64_sys_exit_group+0x3a/0x50 kernel/exit.c:931 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x43e289 Code: Unable to access opcode bytes at RIP 0x43e25f. RSP: 002b:00007ffedef26908 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 RAX: ffffffffffffffda RBX: 00000000004af3b0 RCX: 000000000043e289 RDX: 000000000000003c RSI: 00000000000000e7 RDI: 0000000000000000 RBP: 0000000000000000 R08: ffffffffffffffc0 R09: 0000000000400034 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000004af3b0 R13: 0000000000000001 R14: 0000000000000000 R15: 0000000000000001 Modules linked in: ---[ end trace b9c8e89a63f407f9 ]--- RIP: 0010:remove_inode_hugepages+0x52f/0xa90 fs/hugetlbfs/inode.c:532 Code: ff e8 d5 f2 4c ff 48 89 ef e8 3d c3 70 ff e9 17 ff ff ff e8 c3 f2 4c ff 48 89 ef e8 cb 50 71 ff e9 1a fe ff ff e8 b1 f2 4c ff <0f> 0b e8 aa f2 4c ff 49 83 ed 01 e9 d5 fd ff ff e8 9c f2 4c ff 48 RSP: 0018:ffffc900017afa30 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: ffff888017093880 RSI: ffffffff8228b64f RDI: 0000000000000003 RBP: ffffea0000a48000 R08: 0000000000000000 R09: ffffea0000a4802f R10: ffffffff8228b4a7 R11: 0000000000000000 R12: 7fffffffffffffff R13: 0000000000000001 R14: 0000000000000000 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000004801c0 CR3: 0000000029917000 CR4: 00000000001506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 28 c3 sub %al,%bl 2: e8 2a 14 00 00 callq 0x1431 7: 66 2e 0f 1f 84 00 00 nopw %cs:0x0(%rax,%rax,1) e: 00 00 00 11: 48 89 f8 mov %rdi,%rax 14: 48 89 f7 mov %rsi,%rdi 17: 48 89 d6 mov %rdx,%rsi 1a: 48 89 ca mov %rcx,%rdx 1d: 4d 89 c2 mov %r8,%r10 20: 4d 89 c8 mov %r9,%r8 23: 4c 8b 4c 24 08 mov 0x8(%rsp),%r9 28: 0f 05 syscall 2a: 48 3d 01 f0 ff ff cmp $0xfffffffffffff001,%rax <-- trapping instruction 30: 73 01 jae 0x33 32: c3 retq 33: 48 c7 c1 c0 ff ff ff mov $0xffffffffffffffc0,%rcx 3a: f7 d8 neg %eax 3c: 64 89 01 mov %eax,%fs:(%rcx) 3f: 48 rex.W --- 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 syzkaller@googlegroups.com. syzbot will keep track of this issue. See: https://goo.gl/tpsmEJ#status for how to communicate with syzbot. syzbot can test patches for this issue, for details see: https://goo.gl/tpsmEJ#testing-patches