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 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9EFE8C0218A for ; Sat, 1 Feb 2025 20:51:30 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5C6D010E0D4; Sat, 1 Feb 2025 20:51:29 +0000 (UTC) Received: from mail-il1-f208.google.com (mail-il1-f208.google.com [209.85.166.208]) by gabe.freedesktop.org (Postfix) with ESMTPS id 23F4310E0D4 for ; Sat, 1 Feb 2025 20:51:28 +0000 (UTC) Received: by mail-il1-f208.google.com with SMTP id e9e14a558f8ab-3cfe0ce0dbbso44735605ab.3 for ; Sat, 01 Feb 2025 12:51:28 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738443087; x=1739047887; h=to:from:subject:message-id:in-reply-to:date:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=8GSWWCozoFb1QOqbQgyy8ub72qnv1yGm9/mfPo45tNE=; b=ITyJzGnB8tSfDodQz0TGU6z5Jm22YgEW2eXwGyXBkoZorgSBAzIfji5SNfRq4kmtxZ uRGohlYXZD0ljJitMyfxpyCAxgK4ck1REBLdV5dAcjICzTAYjhvSjlvjXaTA1GhIGufY 3N0uDfn3z+Zw4zJKYWbYt/ZPPMgeLjG9Pfl9fD+c4BTYUwNZx4z7hgwx4xrNuMw6SeUQ H2by9GO8AwrLjYqunq7GxDT1tt5TkdarIgD22/+n5IElP3ES7yiC902ljjeEvxukwngq 3m8wwsHJO4SetCjIsiLbWxu+xX8AyNFpxQ0WNILOqBFjPYpx9Oy/cAtOLXlDyGm/yE++ z0Mg== X-Forwarded-Encrypted: i=1; AJvYcCXWgWoEf98Amzwy8xsXYtamf6HybYp9JvOmOPLpea/EO4Bl+Zr539vNwIG7UcD3aBJbc5NSTwTIMBw=@lists.freedesktop.org X-Gm-Message-State: AOJu0YzbN/jfS7CB7698Q81UIKUxDo3tkLqTDK5bY2qGolWb/vaGS6Yd oRvdXno77H+BceBVr3mNEvF/ESMoI7XEGAITSu0byhv70fgPG5i6hQMdqX1LnDF+fx1V0hHsyyN B4qoqhPL7gjSTxQny/XR9Y9IzwDIORKD/0jBsCL6bAiO1gEWkkRAi2rE= X-Google-Smtp-Source: AGHT+IFU/CfR7irtqtvwg6ik1XKwgYgwT2C6RI4lAyPaJhVWygBKDk/nkFeJM3NUb9yBaAMSXSYwLaRaL6l6CmSUvq+dHs7LcOR3 MIME-Version: 1.0 X-Received: by 2002:a05:6e02:1707:b0:3cf:c5b0:6a0c with SMTP id e9e14a558f8ab-3cffe3d1744mr152049775ab.4.1738443087155; Sat, 01 Feb 2025 12:51:27 -0800 (PST) Date: Sat, 01 Feb 2025 12:51:27 -0800 In-Reply-To: <677928b5.050a0220.3b53b0.004d.GAE@google.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <679e894f.050a0220.163cdc.0027.GAE@google.com> Subject: Re: [syzbot] [mm?] kernel BUG in alloc_hugetlb_folio_reserve From: syzbot To: akpm@linux-foundation.org, david@redhat.com, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, muchun.song@linux.dev, steven.sistare@oracle.com, syzkaller-bugs@googlegroups.com, vivek.kasireddy@intel.com Content-Type: text/plain; charset="UTF-8" X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" syzbot has found a reproducer for the following issue on: HEAD commit: 69e858e0b8b2 Merge tag 'uml-for-linus-6.14-rc1' of git://g.. git tree: upstream console+strace: https://syzkaller.appspot.com/x/log.txt?x=1431cb24580000 kernel config: https://syzkaller.appspot.com/x/.config?x=d033b14aeef39158 dashboard link: https://syzkaller.appspot.com/bug?extid=a504cb5bae4fe117ba94 compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1324fddf980000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=128b55f8580000 Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/144a7468bf1b/disk-69e858e0.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/86d7d452eecc/vmlinux-69e858e0.xz kernel image: https://storage.googleapis.com/syzbot-assets/f56e292b01f5/bzImage-69e858e0.xz IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+a504cb5bae4fe117ba94@syzkaller.appspotmail.com ------------[ cut here ]------------ kernel BUG at mm/hugetlb.c:2333! Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI CPU: 0 UID: 0 PID: 5832 Comm: syz-executor274 Not tainted 6.13.0-syzkaller-09760-g69e858e0b8b2 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024 RIP: 0010:alloc_hugetlb_folio_reserve+0xbc/0xc0 mm/hugetlb.c:2333 Code: 1f eb 05 e8 c6 e9 9f ff 48 c7 c7 40 56 61 8e e8 1a 9b d8 09 4c 89 f0 5b 41 5c 41 5e 41 5f 5d c3 cc cc cc cc e8 a5 e9 9f ff 90 <0f> 0b 66 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f RSP: 0018:ffffc90003e3f7f8 EFLAGS: 00010093 RAX: ffffffff821f831b RBX: 0000000000000000 RCX: ffff888034813c00 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 1ffffffff348b4d1 R08: ffffffff821f82d3 R09: 1ffffd40005a2005 R10: dffffc0000000000 R11: fffff940005a2006 R12: dffffc0000000000 R13: dffffc0000000000 R14: ffffea0002d10000 R15: ffffffff9a45a688 FS: 000055557d1c0380(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000563d6d164000 CR3: 000000007abaa000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: memfd_alloc_folio+0x1bd/0x370 mm/memfd.c:88 memfd_pin_folios+0xf10/0x1570 mm/gup.c:3746 udmabuf_pin_folios drivers/dma-buf/udmabuf.c:346 [inline] udmabuf_create+0x70e/0x10c0 drivers/dma-buf/udmabuf.c:443 udmabuf_ioctl_create drivers/dma-buf/udmabuf.c:495 [inline] udmabuf_ioctl+0x301/0x4e0 drivers/dma-buf/udmabuf.c:526 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:906 [inline] __se_sys_ioctl+0xf5/0x170 fs/ioctl.c:892 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fcd524733a9 Code: 48 83 c4 28 c3 e8 37 17 00 00 0f 1f 80 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffddb5cce58 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007ffddb5cd028 RCX: 00007fcd524733a9 RDX: 0000000020000040 RSI: 0000000040187542 RDI: 0000000000000004 RBP: 00007fcd524e6610 R08: 0000000020000000 R09: 00007ffddb5cd028 R10: 0000000020000000 R11: 0000000000000246 R12: 0000000000000001 R13: 00007ffddb5cd018 R14: 0000000000000001 R15: 0000000000000001 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:alloc_hugetlb_folio_reserve+0xbc/0xc0 mm/hugetlb.c:2333 Code: 1f eb 05 e8 c6 e9 9f ff 48 c7 c7 40 56 61 8e e8 1a 9b d8 09 4c 89 f0 5b 41 5c 41 5e 41 5f 5d c3 cc cc cc cc e8 a5 e9 9f ff 90 <0f> 0b 66 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f RSP: 0018:ffffc90003e3f7f8 EFLAGS: 00010093 RAX: ffffffff821f831b RBX: 0000000000000000 RCX: ffff888034813c00 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 1ffffffff348b4d1 R08: ffffffff821f82d3 R09: 1ffffd40005a2005 R10: dffffc0000000000 R11: fffff940005a2006 R12: dffffc0000000000 R13: dffffc0000000000 R14: ffffea0002d10000 R15: ffffffff9a45a688 FS: 000055557d1c0380(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000563d6d164000 CR3: 000000007abaa000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 --- If you want syzbot to run the reproducer, reply with: #syz test: git://repo/address.git branch-or-commit-hash If you attach or paste a git patch, syzbot will apply it before testing.