From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-181.mta1.migadu.com (out-181.mta1.migadu.com [95.215.58.181]) (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 2275A2B2D7 for ; Sat, 4 Jul 2026 14:49:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783176571; cv=none; b=e8v82Nn5Q8jIzk0FB03k0MDFVxjTLsoPrdfXkXAo5LjCJcVHJANqjkrKVR3ekieWVkOSSi/tcoRIVOlpzG2OGVlth0hA4GWO+GIPKMqaSb6MibjebOuvG3vv9Rv/FmIaEmsFGTT3fDxfZ548wGy8hvoAxK9+MjQDxTmYFlNQ/Eo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783176571; c=relaxed/simple; bh=Y4WszYhVE/Fob4GoABh9lu4hyPP4923GPcHmmbETQOk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=WNipiBIQ1EibYBOMM1fwqu/x99nKzmlpurr71sV+mpWYcwsetw/vGUXQoEu3TVL7kGwsMNfptlJWZ6DijvB+GsydfCWRdOC/YRjcjnHMXrb5GSSg4U4x3B4foRSvwgDGZGgtswcrgx7oaqrXpMy9drm8bag+SAp7NS9f9XYGvjE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=xpdf4EW1; arc=none smtp.client-ip=95.215.58.181 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="xpdf4EW1" Date: Sat, 4 Jul 2026 09:49:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1783176566; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=UQOtDnFjQPANSHnV8tBbe0M1MlY+ZRcnYotgj5bs1e8=; b=xpdf4EW1tjYGnfLvNeH/0v7a7QMnFqMhb8T+RHAqOkiLnSjRjGTsai3uppblFmBX5qe6SC cMjCWZGQUyd5cuQnDpylrA2pRzm7L4hceHi6mPYKzg9P3wiEHgQB52ZFsh1ogUCPjb2LDJ 44bKG9IjByxmi0koiaYQpEweOMuk/BQ= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Kent Overstreet To: Sasha Levin Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Mikhail Dmitrichenko , linux-bcachefs@vger.kernel.org, linux-kernel@vger.kernel.org, lvc-project@linuxtesting.org Subject: Re: [PATCH 6.12] bcachefs: avoid truncating fiemap extent length Message-ID: References: <20260703114813.113406-1-mdmitrichenko@astralinux.ru> <2026070315-stable-reply-0028@kernel.org> 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: <2026070315-stable-reply-0028@kernel.org> X-Migadu-Flow: FLOW_OUT On Fri, Jul 03, 2026 at 10:05:22PM -0400, Sasha Levin wrote: > On Thu, Jul 03, 2026 at 02:48:13PM +0300, Mikhail Dmitrichenko wrote: > > No upstream commit exists for this patch. > > > > bkey sizes are stored in sectors as u32, while fiemap reports byte > > lengths as u64. Shifting k.k->size before widening performs the > > conversion in 32 bits, so an extent of 4 GiB or larger can wrap before > > it is passed to fiemap_fill_next_extent(). > > Thanks for the patch, happy to take it if we can get an ack from the bcachefs > maintainers. > > -- > Thanks, > Sasha Ack