From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) (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 4DB8240757F for ; Wed, 1 Apr 2026 12:41:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775047319; cv=none; b=HregeAuX/j22V9Sctse6cD4kRW7NpCHLMcE4ENn6XSYlGkzRqNCA+ncWsW7sKzRQ//O2yFhQYddK27c9WgKRse6mD4v3FfyTti30DNKhxTJ+6GrOV8V2V8B5MX8Cq/zyAoqSFAfkiRkR2QZWdGhBzOAROWVxBdxytChslVFEoKI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775047319; c=relaxed/simple; bh=MpR6umjLXlsx1l4+rTIMsZp9WQomlXim0atjNxaIbsw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ldZbDdiLMKUygFI40+Dy1+crO2CEO130MbW6iQrlj1lmLzGbt7WpFUzN1MnYRc6Xq4jQAus7QVwE7Bf3pbV3ytvb4dr4MeNL4cn2+rwem0Kd5UAwWtEPqWHbnpagd2+SDk3CthgVFYv5eGMozbB+0wuo4jQT/dRkV2fgFYy4M7Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com; spf=pass smtp.mailfrom=suse.com; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b=K9sXkrqL; arc=none smtp.client-ip=209.85.128.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b="K9sXkrqL" Received: by mail-wm1-f53.google.com with SMTP id 5b1f17b1804b1-48700b1ba53so63180215e9.1 for ; Wed, 01 Apr 2026 05:41:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1775047315; x=1775652115; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=qnp1PqeJnbYqpsndWX81th/SOoJTeEAmLev2qjXfUek=; b=K9sXkrqLlabpj1N+hURGYcdtjl5EMbmqGCJrEIslGxm54t6mg3DfJDYhaQrpBcdtee RPRDwX+vW3TamUjMyKu+PBF/fF21ZslppMA+y58xqlcnWj3PRMCWx6OXcGHlfNmCDjS2 zi7+iXyBqIFf4vbDlkA4h0yu0rSnaC7eG0zZ2CPcuaCaYPzh4vaAvQs22G6SWBUvZakx FgYVfiBNvekw8d90Ge28xn2zDlgxvcN8tu4MGp8mSugrYnSxzdEiF8adIAlA7DBmV58d LMGOLMDHZRBuGNUPWZ5vkARgIXTy89Xj1R9DxpyhMJk0ucku7aJOa/7xvciHgrMUYkW0 577w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775047315; x=1775652115; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=qnp1PqeJnbYqpsndWX81th/SOoJTeEAmLev2qjXfUek=; b=FQ+HB/oGJtF/2uwf7XDoHCyVpGp+5ha15LiFBVyyXqScAOB/fDmJ0qg/SfYl+MGi+O 5tIHgoxTGf5kwhnE0Ck9fByPY0HmRNd+leVVasCT8twfTgp0QtEvkyGgvopeDe7GWqXo psaLeyMewfmGqAVTRX2mU27kLc5x+4uFu8pZVVbtil7clchxKCCMJk8eHctU5+WspjIh 8PMPvDxdps9VCONAktc1DbY1rS2RDX5tVChyL14GU/bB3zCg8p3XkzaBpYOpuQ9D/Aoa NkQRqRysL+e1/st1XiSUdpMeeIStwxhjAlnR4lLaVYMJIehuMJyTF+2bu2e2AZzjhEcE Ezug== X-Forwarded-Encrypted: i=1; AJvYcCVtcNteDcEC5jbGjlvQXNVMl089TfCf2MPmTA1E//sShJgpxTsC1pndWc1tPedpSmM9UoW9PCgcg/0pc30=@vger.kernel.org X-Gm-Message-State: AOJu0YxhN6AW8BxfpcjAxJP/Owis6bkH1D2QVY5qOkyV7kR/fk21T171 nPCTKjIcX9C5uD9OBvVFP6fk7jFn1Wcjh4Ny8OA/KN5fH9/WGGAnzbEMfdWJcVIOEMU= X-Gm-Gg: ATEYQzzONDEgbIckwmaG4pvOX2HIlN88j04NBsRi/90fYGOhyFHa1UfY0AXWg/oH1LZ zjgwc34L9Pke/ThH2/KnikL5mWLLorRcXEyHRFFuXJPQHPy+hnD6RPsXomm3xotx/oPHoicAjG6 fzPLsf9RPaC3ZFWLrLYVfK+0j8ljETa9FhTsSc9WinjM0DN03oB7bsYLnvpQJJyv4cK/NDEgqI9 MKIu/vjHWWK7yQ//rlBXxIRVpIJmTN41uECB6rix+4KhSkDaYYh8byiJy3M55r+CDYnEVKXCoBL 1nQtkKz4/6Zu5e2b//0bV9tD4LT1uz62rwMNVG4RTUqtXZuGuniihKucJdx3Y76l7k8Zwl6XGt/ gAeUd0j0vIO8UAFYVyVM65ObrHH8b0zFz6XQXWOZkQu7QPgDjVTEyj83PHC6OHxJuWYRtxkvxxW nAO8OQWWtC8pYel5tWj1nqTUULeQ== X-Received: by 2002:a05:600c:1f11:b0:486:fd3a:fd22 with SMTP id 5b1f17b1804b1-48883568b21mr50693235e9.4.1775047315442; Wed, 01 Apr 2026 05:41:55 -0700 (PDT) Received: from pathway.suse.cz ([176.114.240.130]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4887c8f546csm40799305e9.34.2026.04.01.05.41.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Apr 2026 05:41:54 -0700 (PDT) Date: Wed, 1 Apr 2026 14:41:52 +0200 From: Petr Mladek To: Andy Shevchenko Cc: David Disseldorp , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, Al Viro , Christian Brauner , Jan Kara , Steven Rostedt , Rasmus Villemoes , Sergey Senozhatsky , Andrew Morton Subject: Re: [PATCH v4 4/6] initramfs: Refactor to use hex2bin() instead of custom approach Message-ID: References: <20260329105307.2876-1-ddiss@suse.de> <20260329105307.2876-5-ddiss@suse.de> 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-Disposition: inline In-Reply-To: On Mon 2026-03-30 12:55:16, Andy Shevchenko wrote: > On Mon, Mar 30, 2026 at 12:50:30PM +0300, Andy Shevchenko wrote: > > On Sun, Mar 29, 2026 at 09:30:26PM +1100, David Disseldorp wrote: > > ... > > > > /* > > > * bogus newc header with "0x" prefixes on the uid, gid and namesize values. > > > - * parse_header()/simple_str[n]toul() accept this. > > > + * parse_header()/simple_str[n]toul() accepted this, contrary to the initramfs > > > + * specification. hex2bin() now fails. > > > */ > > > #define CPIO_HDR_OX_INJECT \ > > > "%s%08x%08x0x%06x0X%06x%08x%08x%08x%08x%08x%08x%08x0x%06x%08x%s" > > > > I think this change should be in patch 1. > > Hmm... Re-reading it, seems the both needs to be updated. > > For the patch 1: > > * Bogus newc header with "0x" prefixes on the uid, gid, and namesize values. > * parse_header()/simple_str[n]toul() accept this, contrary to the initramfs > * specification. > > For the patch 4: > > * Bogus newc header with "0x" prefixes on the uid, gid, and namesize values. > * parse_header()/simple_str[n]toul() accepted this, contrary to the initramfs > * specification. hex2bin() now fails. This looks better to me. The rest of the patchset looks good to me as well. Best Regards, Petr