From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f174.google.com (mail-pf1-f174.google.com [209.85.210.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6DB892797A9 for ; Fri, 8 Aug 2025 12:43:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754657014; cv=none; b=fLQ0lC4Abac9VZDv/wDCqbvSkhTO3/7vSWu9bSBTtJERGI5KC0UXryPJW6tg8MmjWbImTEBLNZtlc9xCjrGe0QPRZeUS0OQ6kpry577PVjevdEjJaJMQ3IGrIIetZyQ07yyQCNafrO1MGsymwm84mKgndlARDQKGt9AD677MNP8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754657014; c=relaxed/simple; bh=VANEhYXdK7z6r1QBNfY24wJzFaLuZiCTdqphI1a9F28=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=odHmSmhdbLAtZrPd9Xlwn1hgn2H03ZaUS1bcukPULtYX476gYvf+tmCaMnqQOwaOMuzRAr4Uh8+yrMBKlLmXOgLa2fjYKD92KkDD9CZwUTDyAVnwOOQQE2feTm+d2DuB3r6AmeFKKML479fVBpoVH99rgruf7EiGdFQIrrUmYoE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.dk; spf=pass smtp.mailfrom=kernel.dk; dkim=pass (2048-bit key) header.d=kernel-dk.20230601.gappssmtp.com header.i=@kernel-dk.20230601.gappssmtp.com header.b=esySw1Iu; arc=none smtp.client-ip=209.85.210.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.dk Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kernel.dk Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel-dk.20230601.gappssmtp.com header.i=@kernel-dk.20230601.gappssmtp.com header.b="esySw1Iu" Received: by mail-pf1-f174.google.com with SMTP id d2e1a72fcca58-76b8d289f73so2047742b3a.1 for ; Fri, 08 Aug 2025 05:43:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20230601.gappssmtp.com; s=20230601; t=1754657013; x=1755261813; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=TzfYUds3DmIRafs7qlzh+1ZOiNQM8kLprH6mSCrSkSU=; b=esySw1IuHODhdbB+knTLr6Xo0AyqhCSuz1NWeJfw4WOLi9i8iqXrSgKt8yzMyLtCyU 82+bDLZSpeIsnmxh3zr7ZfWs/+rkj9IZD3s4frM2gJWsdtKexiY1EkybNnIhnP4IFDZ+ ai3AJe0ES/NXD1q1CymC6Ss3AfDNOfzuUi1/eCtKaVWCUssW5OZ0xjs2MSNCPyyL8GNj pbbnRMRKDF+KdX/ykL9UZgtpeB0C/cSYMe5PjxFAt7Q38Gk4xh+xUohMJRYnMz9Zbn9J 1cwc5N39pUYKWMf2nTOhvcVD88nCqWseeP0k/6AGqPEdXdfA8tUyByFNsToQAMOXuuI1 dDWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1754657013; x=1755261813; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=TzfYUds3DmIRafs7qlzh+1ZOiNQM8kLprH6mSCrSkSU=; b=uoebb+66i8Fsqv/YP+wzI5uyw/AHNIQoAcLxASMQ5DUv6mAzXZbe/B3szRU3pQEilK SUxxVTlIm9UCIbNS8K/MyJ2Mz6S2p2S12is2oHOiOf6NuUg11qO1vPPqAomsduLkq+Vw NmgmEWHPUxMbgYpRseKqLXC9iEmQQs1fFw9tx3bbER+YhOC/BBXaPWeTyTEdCnkxwhNu Kg5JyAvhvR1FXYQk3xUH6SKfAWsaSAq8Qkuh5yuTrvaftoOGvDpC71bR8uBqh1uX9+// cp3SI4Nxjd+j4sb/M43rm+5nsZBq+OriFarc81rhPoHFBNmxzQt0u9uMJ4Faxnmd0s7i PrWw== X-Forwarded-Encrypted: i=1; AJvYcCUPax+N3hEAE1IaT5IfIy16ZZkU1HH8vZwpRaZe2axFFps145+qNvEwx3YhWd4acBdonPUdHemes8avtuk=@vger.kernel.org X-Gm-Message-State: AOJu0YyIVKzOyWlbus/Y/f/HzAtS0GeebG/o7tc8ek5/FLN74P/XC3IK uuSNYX1R7GLAqnDd6tScQpjYztnikabz9TfIKW2KcIEGSxdkGy/+8oISJrFoUd+P9IA= X-Gm-Gg: ASbGncslh0WYWFsoQzZ29W8dQV5D/IQ7mJ1z+BLI6qZXQO3eKkmndR6sgoEuAzdz3ok Q/PLOXg/btrsDJ0DQj6n+CE3GHmsxrA9vzElSXR/h92nwzaO1DmNlD+qOVvCIMU3KQSP+7VSESc 5bwiIJAOvyKYKJSYF0u2HfXhtHokxGSValOLCXwqsrSwE8/EBPhpnl44ARzz6pNOK1A3uzUPh1Y /SXhXPOLl9ntJA6baR5Da4l4zKkct+H3rSGlA/NvqNdKC8EHAWQw8fmdHN2CTqH+2Ai7TL+o5Nh fOdeMDX/qr4rqQ8BhGdJKg8vEBqvfqxQPAaGMyt/qC/cu7S4M9lmBTMcP0dgU2SdnFjB06+8ywc dgd2nMVKLu2RdNZFQnc/P X-Google-Smtp-Source: AGHT+IH77juZHYvpbBvBj4d6mlnGHzX46aU2nCAYzGX2bkq06/Kiwu4f2rf7icXIg7ROhv/Y0Kr5Dg== X-Received: by 2002:a17:902:c94d:b0:240:10dc:b7c9 with SMTP id d9443c01a7336-242c1fd9612mr43013765ad.9.1754657012608; Fri, 08 Aug 2025 05:43:32 -0700 (PDT) Received: from [192.168.1.150] ([198.8.77.157]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-241e89a6ec2sm208348225ad.145.2025.08.08.05.43.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 08 Aug 2025 05:43:32 -0700 (PDT) Message-ID: <05795247-a9c4-40ba-b213-c2b4370f86a7@kernel.dk> Date: Fri, 8 Aug 2025 06:43:31 -0600 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [syzbot] [io-uring?] WARNING in __vmap_pages_range_noflush To: syzbot Cc: asml.silence@gmail.com, io-uring@vger.kernel.org, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com References: <6895efab.050a0220.7f033.0063.GAE@google.com> Content-Language: en-US From: Jens Axboe In-Reply-To: <6895efab.050a0220.7f033.0063.GAE@google.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 8/8/25 6:38 AM, syzbot wrote: >> On 8/8/25 6:34 AM, syzbot wrote: >>>> On 8/8/25 2:17 AM, syzbot wrote: >>>>> Hello, >>>>> >>>>> syzbot found the following issue on: >>>>> >>>>> HEAD commit: 6e64f4580381 Merge tag 'input-for-v6.17-rc0' of git://git... >>>>> git tree: upstream >>>>> console+strace: https://syzkaller.appspot.com/x/log.txt?x=166ceea2580000 >>>>> kernel config: https://syzkaller.appspot.com/x/.config?x=5549e3e577d8650d >>>>> dashboard link: https://syzkaller.appspot.com/bug?extid=23727438116feb13df15 >>>>> compiler: Debian clang version 20.1.7 (++20250616065708+6146a88f6049-1~exp1~20250616065826.132), Debian LLD 20.1.7 >>>>> syz repro: https://syzkaller.appspot.com/x/repro.syz?x=10202ea2580000 >>>>> C reproducer: https://syzkaller.appspot.com/x/repro.c?x=140a9042580000 >>>> >>>> #syz test: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git> >>> >>> want either no args or 2 args (repo, branch), got 5 >> >> #syz test: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > > want either no args or 2 args (repo, branch), got 5 #syz test: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master diff --git a/io_uring/memmap.c b/io_uring/memmap.c index 725dc0bec24c..2e99dffddfc5 100644 --- a/io_uring/memmap.c +++ b/io_uring/memmap.c @@ -156,7 +156,7 @@ static int io_region_allocate_pages(struct io_ring_ctx *ctx, unsigned long mmap_offset) { gfp_t gfp = GFP_KERNEL_ACCOUNT | __GFP_ZERO | __GFP_NOWARN; - unsigned long size = mr->nr_pages << PAGE_SHIFT; + size_t size = (size_t) mr->nr_pages << PAGE_SHIFT; unsigned long nr_allocated; struct page **pages; void *p; -- Jens Axboe