Received: by 2002:a89:2d5:0:b0:1ef:f8eb:5d24 with SMTP id d21csp176221lqs; Sun, 17 Mar 2024 16:47:55 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWQHV9wmPclmiGmnaTiDvcoIzZ6A3c8z/zxlJcJzps+d4+AntyhL2HMseQqCtFkIv3JOlMfdjeszYIAHhXCUK3MAH5DVa618s6e4Is8Gg== X-Google-Smtp-Source: AGHT+IHuYRi/XkCLni+U201AM4kmFuoqAsbqu0FGbcF3vS0wnuups07m0RrCYKbpLK+Wmc6IXzFY X-Received: by 2002:a05:6870:c0d3:b0:221:a348:85a9 with SMTP id e19-20020a056870c0d300b00221a34885a9mr12206842oad.38.1710719274997; Sun, 17 Mar 2024 16:47:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710719274; cv=pass; d=google.com; s=arc-20160816; b=vO3q9dLOKUJ348OFk2DOkU2YGwYd7pp7CIIoGJ22qVXDjYi1d3PyzaD1rFYJFo+m8n FejrYA6L01oCOxG5uwzbDjvKKqupIRBGsXFZmBqZJ8B0U1v+uOCzUaraSW0DH7KB3H/m sF+xO/wzFx3y94gIWOzHcC1kuMP0a5nPhwnYxDETePlsQxEfP8s2IO1hWyg7ti/Gbf8Q hyIxE6PfDtemtl6dSuYN9FrHQn0HMu0MgdXNUIoiFdGcychmJh0u8MMnW300pnAcjWEB A/Broa1whRm94JM4YNG3bhctvYMVl4EhWxj170Y2MZEN74Ge67sWod1cKaHFP1w/RuKd cMdg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=Cv73hQVexyl29yDPslEqVrExNAO6VzVtfMqzi6E38Gk=; fh=BxHo78ip4BDrEtgsRWWYj+G5sohG7NqOuQAx8JQaBDU=; b=UFZwA8ASmnWlWdTG9PcYMXQKaNaSr43V5A0EW8jHhtqxOHKEFEOby6gaAbXnRUOMoA vy/DolPJJzNbBbXfnoM3MTbyYaxjCy7uvftEdO8fPkLl8aQUuNHpcrJu9tL51TEB4WRz +4MlajyEJh4an0ZbjsGlBTVgqyo1ehk8b5bA2YkMyDg75kicwHtLB1/DqIKtCLOgFx4/ aBqvnH9wYU7iGFT7uBAlDOs37kJQQg4ZoIkr9stOfhkiOZ9ioCgS7thNf3YvVbUOwwg8 eOsuvgynQj3zWOGBLWbpbjSzpqWfKk6rwyWaBe30hEht4MelNFjCP1Uf55vob0dIpC9f 7NxA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=sp4C0qsu; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-105594-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-105594-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id gx24-20020a056a001e1800b006e4ee56c02esi7707045pfb.168.2024.03.17.16.47.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Mar 2024 16:47:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-105594-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=sp4C0qsu; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-105594-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-105594-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id A5797281161 for ; Sun, 17 Mar 2024 23:47:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4B6C721A06; Sun, 17 Mar 2024 23:47:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="sp4C0qsu" Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 240ED1D530 for ; Sun, 17 Mar 2024 23:47:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710719268; cv=none; b=d23Q1JapIZcOah6iqhSCu4jWCKZWt71/phPIGmFqIPmlM9dpnolSLcg7s5iP1xhe4ys322N2e646+EHeZq4Yul0Flw6Cd9fDMO3dlSXTO+Eh/6S9vqEpQmzFWFpoRZN+szbYG7Z6Oz+ZdHXocN2FYpei/fdH6NPk6HCxVgelpqY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710719268; c=relaxed/simple; bh=1t5THr41G20eGcgPBEBTTLvNWvw/QIvdXIoz3LkmfgM=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=C88t8yYWTvffiu6AVLSGjBWVm2PmnWpKb+cRPruPWHdM5ScXF53e1VOIB7RIzJVmD8WGjPCQDLUcwEnuzjv9MiTPDothZL9tYWJIOWUZ62i6Jj/10RiE6Ex2CfzF/udluev47ybP/sYhKhW6ObmODaHPydiBD0i6+AqETjgzsco= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=sp4C0qsu; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Sender:Reply-To:Content-ID:Content-Description; bh=Cv73hQVexyl29yDPslEqVrExNAO6VzVtfMqzi6E38Gk=; b=sp4C0qsudZMIXrDjSMy0ENeZxP fMw5hfgtycU33pow6CVoBqQJvtTjhsyQTXBoyTmbF4srzfR5QOZQhsrfBQKpjsfebRnLwgFr0eTeN 3gGzcDzmZZwEMLzi4rCxlEYsxJbCt8+svrpF0L78p0eOfjt6IHzWw9rJjrdFhoCmSkbQTOnrOVku0 P3iMFvMleAEqxPm88qz7q5+hA0DAJdgKbOaa2HtXOLpnWrUZt7lnSUuxTLtQRLbe5ThqPc1DmPk8X XftydgA3Z1QD89HNcNu3A4a5Fzi0tv48lXUTkrjRON5VCq2H70u77SH79oOV0n3pFGpbloTY6eb7d YbSk8XMA==; Received: from [50.53.2.121] (helo=[192.168.254.15]) by bombadil.infradead.org with esmtpsa (Exim 4.97.1 #2 (Red Hat Linux)) id 1rm0EC-00000006m3N-44FA; Sun, 17 Mar 2024 23:47:45 +0000 Message-ID: <252d1ba7-0ae0-4616-9ee7-f7c204531eaa@infradead.org> Date: Sun, 17 Mar 2024 16:47:44 -0700 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: [PATCH] init: open /initrd.image with O_LARGEFILE Content-Language: en-US To: John Sperbeck , Andrew Morton , Jens Axboe , "Peter Zijlstra (Intel)" , Thomas Gleixner , "ndesaulniers@google.com" Cc: linux-kernel@vger.kernel.org, Nazerke Turtayeva References: <20240317221522.896040-1-jsperbeck@google.com> From: Randy Dunlap In-Reply-To: <20240317221522.896040-1-jsperbeck@google.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi, On 3/17/24 15:15, John Sperbeck wrote: > If initrd data is larger than 2Gb, we'll eventually fail to write to > the /initrd.image file when we hit that limit, unless O_LARGEFILE is set. > Could this be related to https://lore.kernel.org/lkml/CAHY78BqCpMQptPN0SMaXuRqHOhYi+wnMEUSTYt7OHDZih4e7yQ@mail.gmail.com/ ? Thanks. > Signed-off-by: John Sperbeck > --- > init/initramfs.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/init/initramfs.c b/init/initramfs.c > index 76deb48c38cb..b607d3463b47 100644 > --- a/init/initramfs.c > +++ b/init/initramfs.c > @@ -683,7 +683,7 @@ static void __init populate_initrd_image(char *err) > > printk(KERN_INFO "rootfs image is not initramfs (%s); looks like an initrd\n", > err); > - file = filp_open("/initrd.image", O_WRONLY | O_CREAT, 0700); > + file = filp_open("/initrd.image", O_WRONLY|O_CREAT|O_LARGEFILE, 0700); > if (IS_ERR(file)) > return; > -- #Randy