Received: by 2002:ab2:69cc:0:b0:1fd:c486:4f03 with SMTP id n12csp506569lqp; Tue, 11 Jun 2024 10:30:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUSVqK/CLdEdhEoJ8dmWgD1nJ16acwMCu6aRos5jXPu0dJ/fB/P+OhIs3YZSw4LtWFHi9DrmcaTt8/YkxouGtmkdMdqba5WhkaZfgIYZQ== X-Google-Smtp-Source: AGHT+IEGM30NLOEoNx81H2Qo8cfGWAIXBH64aCCjIox+dk+sy/7DySXC1f+h6Mf1DBpZZwJ9iJ5I X-Received: by 2002:a05:6808:1782:b0:3d2:28cf:3fce with SMTP id 5614622812f47-3d228cf449bmr7085847b6e.27.1718127038072; Tue, 11 Jun 2024 10:30:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718127038; cv=pass; d=google.com; s=arc-20160816; b=QITLuvYDr0ltgYvU2xJljvYG51DyGGrI6P7KkDKbOf4I6Xf8RcaK6gjNX0dKvlZ08E jRCOeOJHEoN5cV2DDZ1iHzCmB8zqllkuBrZfsrTQiYJrzPIJnezXeYOhrLZJJzFlVRzK iy5XIM96/sizB/FF0bfhCB1cxO5uUsGSJEBcZs5OhmW52fJCg8udVQmWVi0OPCVCDGo+ PokZs5iFPztIjfFPbqKggRGKwdtQADAtXcKUsJFp3SHFAyWw4Qzs1LXnCNkNiO47rcmj O4RbnyggpYKexVoermM0CSatPRnPib9fm7Ss/DgOM5Svcuv5M4iVZpaGshembDupJjWC wCRg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=Pk8DoBnbz6vtXoXQNnfBoYqMT/a2CUvFeRwaPDTU320=; fh=n6GR/dAWkypaFF5PvpoJgmPz721sq6KVRwV1MfBBzyU=; b=dmwfSNySiedvdb65rbdl/HwxMv9/yLSecv3pFH4TFLXOOuP2Vuatt2oycUIEj5TtlB QJTzf8vudE5XFSUKtkxGI1zab/Zl3tF3RlFbk8rI8iB2gIj3r1SIXACw8ufv/1k1DH7d fC3231elzAH/aI17maNUdUbnOpMe3uzbXow0SuOgFFUHVPRWnOHRmGBSGonE0nCRn54N CsdSMedwpZoJ0EQuDsME9jE04pwK5lQriyITTcvIUZWY4Rr5BYqKJRVvEp3pHvhY0Bnt 3nvizpFr1pkVImWAzN6TuRZBloODb9ovdJ86Q5LlZdNF1QjbntDGO25c92BvE4mZxQUh lSnQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=2MCxWJVL; arc=pass (i=1 dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-210334-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210334-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-4405a59f04fsi79655441cf.793.2024.06.11.10.30.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 10:30:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-210334-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=2MCxWJVL; arc=pass (i=1 dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-210334-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210334-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id A06921C24F80 for ; Tue, 11 Jun 2024 17:30:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4AFE156B72; Tue, 11 Jun 2024 17:30:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="2MCxWJVL" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 689504F883 for ; Tue, 11 Jun 2024 17:30:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718127007; cv=none; b=AsOXkLI5zf+pGavN8SsWEBl42yENKZAtLhVsukbtrfzJh4E6Zz5L9+C6VjTb/KynbFDuIr+UDw8vRtBLFpT+/mqcIWuVOyPiiP84XL0XVGebPDhsydTN8aMtzfbX/hepVjEXLoLBgUutjydqdqwIyWkhJ0i+fBmVJiYHEk9meGc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718127007; c=relaxed/simple; bh=T3EWslxjAsU7h6lchFAg4Shsv2DXVnhbls8Bv1615MM=; h=Date:From:To:Cc:Subject:Message-Id:In-Reply-To:References: Mime-Version:Content-Type; b=Sv3SCiPHxoEF4yncIbJOfLjuilh1O2IhIT/TDHIZcxaVgY+ac7b5f4sEtIZ9CCajqNxd+beVK42lo8XnEQ7DBsKG4RhtheWozIlq2q7dwxgoLF/LUwq6MJ+H/3FYdys8SzPirxnXd+k1U4YzTp7U5M8X90GhqMHyBcMIDaDqUVg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=2MCxWJVL; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9D8A7C2BD10; Tue, 11 Jun 2024 17:30:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1718127006; bh=T3EWslxjAsU7h6lchFAg4Shsv2DXVnhbls8Bv1615MM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=2MCxWJVLaV4p9IUJ3yEQKhjBd+GDc+KxqDvDeyLYngyo97242qa6hNuQFycP/1qoG +zjH3FrCKNXaBPmM93H4M4N4qBjEW4kgUhP7joC/iWwQW9pk/TwWSEbIqDYonKMlZ6 vYGlWstDDrAhGpxdTDiPagwHQBLFZHYDp4FGz/9k= Date: Tue, 11 Jun 2024 10:30:05 -0700 From: Andrew Morton To: syzbot Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, muchun.song@linux.dev, syzkaller-bugs@googlegroups.com, Vivek Kasireddy Subject: Re: [syzbot] [mm?] general protection fault in dequeue_hugetlb_folio_nodemask (2) Message-Id: <20240611103005.ae4170608bd15d63adee2492@linux-foundation.org> In-Reply-To: <0000000000004f12bb061a9acf07@google.com> References: <0000000000004f12bb061a9acf07@google.com> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Tue, 11 Jun 2024 03:34:25 -0700 syzbot wrote: > Hello, > > syzbot found the following issue on: Thanks. > Call Trace: > > alloc_hugetlb_folio_nodemask+0xae/0x3f0 mm/hugetlb.c:2603 > memfd_alloc_folio+0x15e/0x390 mm/memfd.c:75 > memfd_pin_folios+0x1066/0x1720 mm/gup.c:3864 > udmabuf_create+0x658/0x11c0 drivers/dma-buf/udmabuf.c:353 > udmabuf_ioctl_create drivers/dma-buf/udmabuf.c:420 [inline] > udmabuf_ioctl+0x304/0x4f0 drivers/dma-buf/udmabuf.c:451 > vfs_ioctl fs/ioctl.c:51 [inline] > __do_sys_ioctl fs/ioctl.c:907 [inline] > __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:893 > 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 I think we can pretty confidently point at the series "mm/gup: Introduce memfd_pin_folios() for pinning memfd folios". I'll drop the v14 series.