From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) (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 BDE3F26C3B0 for ; Tue, 25 Nov 2025 11:03:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764068631; cv=none; b=kSo9KAgmh1GPTHB/ycMUfv5i8XJJ9naoNB1itY9e0FadI/F19tDpcQPCH8Nn2f6+WGL62HdXeUh5pNdEXTgJ55uxgNvDmeTVOn6OnN34XKnBy/Anv/TOWXt6cM3w2rFUng1g33llDxaoSTGgbSEmo6TkGx/4SrFHQ8dNfVJoMR0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764068631; c=relaxed/simple; bh=lbCW7JwCDJiUK589BnoBjyQbX31xCNxRY5OPTwF30jk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=K7jDj0vPXgtHHOS31Ba+sO35mcQq/rfz/dab/9gR998fDRwAMMpDjCGRBpGMt57BIiVWVhyv9+BKp+UJMr3OihRgH9vh2r/qPjnopf6DVYKUyw/3D1q7KuPwka41p97LXup0HJM4i0pcrL7cBq9+FR/862gnM6ER8R/OubGiSNg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=KQhygrp8; arc=none smtp.client-ip=209.85.214.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="KQhygrp8" Received: by mail-pl1-f170.google.com with SMTP id d9443c01a7336-297f35be2ffso80624565ad.2 for ; Tue, 25 Nov 2025 03:03:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1764068629; x=1764673429; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=zrYObu1ZaGvF1tThUqydRVyuaNVUG9wjx0i3lfwfGyo=; b=KQhygrp87R/VdYQQMfu2H+bmt7UxRdgoSD6pnZTP2wV/sg53+QifBHxISxvkbDEJMe Eh0ZE4ktEWT2cSf6UK9u3ikIrNrE1Aq8nro9SZp7J2iM4AGlJuONHlJG/qIkkOPZcyIW N0GYgSNW/35fehkkUV/GWhOreJ9qE9VIsY8UJfU/tg7gS+USzDbQPij/L7hXDEcqpIMw q4qDS2zOzAb6bxnzUo7IuTIFTr2ePF7BcvsxC196+uMPnnrjY/Zp40BTWKlpT45+4CFb mLvEzz+5nK2XFX/CNPEAW507TvSk0g5KE4GU5GsQJOQCbHp40J3C/tDOgJYE48BeE1cA GOsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764068629; x=1764673429; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=zrYObu1ZaGvF1tThUqydRVyuaNVUG9wjx0i3lfwfGyo=; b=bSnydZ32Qx3pT9nKMdi2s8/ev/ChyhVcIpPrE2KglwpriVP43OSqH16iRzdm3eYHHy ZDle1MP67t8sADNJB/Arce0WjEOGGv7vPU36tDEFx6V/lcSCVB2GzmyEx/0AYRz3eqhL i17JgWY1Hd+JoN3Qn0/+iI1xeCvW3riNQidSz+xT5FlboDZsJZgjUnJgEWOaxFLuZ4C/ fL14i/RjRCcTDqkkgDTFG1+wdMOeRwMNnDhR3ETWSWnkrduukUFUG4J8W9BCiSi1FZno DekvoOIxALpMWr3ZztfI9tIDRbqdL7RUHegVd6AN+6YA05QdPc9jNqIt1e97sScm0xSo fWmg== X-Forwarded-Encrypted: i=1; AJvYcCX335A/LOoEhDR21GFZ/nPslRLLhfSavoIQ9o3zuI6yfc0+LaEUJlJulHh10RQpZTrr4dW3pxUidarPMQI=@vger.kernel.org X-Gm-Message-State: AOJu0Yz/BiR7kjhL0ewVBKoyM6qCHCdVgu6NGcsFNx9/AyC5Nj5cdLgy NhVXl0GO9gLVPtZijGcKxobUN+nkoE7kz98X5tdOBeNckAXVVECfb35p X-Gm-Gg: ASbGncsVpXQ0/xpp8VqD+F89OkpL3VA79N7jjVpHAgBQZy4uMWcFLFNd0Pfivp9BaYm yt2u+QVDNgRuavSUn+eEirohKQ+No4qID/gSG6aPcATxCRloDtfTPnMFTNRlNngwsZYig7Ps2RW HkUegixCCMdSLCdCH5WDNADEyITd6v/1iCoSwpz3/Hvd8i75ovfweNXnz2WED75m7ZSYdd+eCQ8 Odw+vpP7JV0lRNtsAwBC9nuarWzBW2UaKWD5wQg2VyG0PzqoA+zi7+NwSa8mjJ3OakBnQKRJrbn 3AwRJuNQRq7qEMOvp3IsS+KQCfTZgA6K2Zosh/J3TVahryRb4k494LHfyKPQbW1sb/w0Hgz5ZQ2 tqhzIz/16dMWGBBIYtRc0+Pbyz5quzwVph3WpsAr6ooyVXPAgnTM5CuREwu30GQL9MgD/cxx4HY k1fWUTs40= X-Google-Smtp-Source: AGHT+IEYKP7YdnHymXDD2Ld1yBvM1liWOOT8p4IDbRPvPCed0U7f5FZAWMvKY3kunvdjX6vPa5s/BA== X-Received: by 2002:a17:903:3c30:b0:295:70bd:b04b with SMTP id d9443c01a7336-29b6c6d0d5dmr166812625ad.55.1764068629027; Tue, 25 Nov 2025 03:03:49 -0800 (PST) Received: from hsukr3.. ([2405:201:d019:4042:c1a3:cd97:974e:2371]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-29b5b29b1c2sm162491665ad.81.2025.11.25.03.03.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Nov 2025 03:03:48 -0800 (PST) From: Sukrut Heroorkar To: Jan Kara , linux-kernel@vger.kernel.org (open list) Cc: shuah@kernel.org, david.hunter.linux@gmail.com, Sukrut Heroorkar Subject: [PATCH 6.1.y 0/2] udf: backport udf_rename fixes to verify link-count Date: Tue, 25 Nov 2025 16:33:26 +0530 Message-ID: X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This series backports two upstream commits needed to fix a udf_rename crash reported by syzbot. https://syzkaller.appspot.com/bug?extid=72f20dcde8dd7e4a788a Patch 1: brings in the prerequisite restructuring of udf_rename from upstream commit 9d35cebb794b ("udf_rename(): only access the child content on cross-directory rename"). This commit introduces is_dir that the later fix depends upon. Patch 2: backports upstream commit 6756af923e06 ("udf: Verify inode link counts before performing rename"), which adds the link-count verifications. Both the patches apply cleanly to v6.1.y and this upstream fix is already backported to v6.12.y with commit id 0a65d850c45d and, to v6.6.y with commit id b41d73055284. The reproducer from syzbot no longer triggers issue with this series applied. The patch containing diffs, combined from both the commit was tested by syzbot and it triggers no issue. The kernel also builds & boots on a native x86_64 machine with this fix applied. Al Viro (1): udf_rename(): only access the child content on cross-directory rename Jan Kara (1): udf: Verify inode link counts before performing rename fs/udf/namei.c | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) -- 2.43.0