Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp1125334lqs; Wed, 6 Mar 2024 07:05:53 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUJI8Zm8+6uWvF4R1ueShbkzm9zPRPOiUtyXzIkffnJD/+4trbIXsoH3Bt7yT4EWv+dGHiI2Ew/UqMiY+hpXJjMlTAsM/WTEfh4AHEACQ== X-Google-Smtp-Source: AGHT+IGFGKVypXt7zv+6V59ejgfglFx0sb31/Vwn0flAdOZQncDfvxlPMNF/ufZ0Uro1Jyg+808q X-Received: by 2002:a05:6e02:118b:b0:365:d2bd:69cb with SMTP id y11-20020a056e02118b00b00365d2bd69cbmr16253158ili.10.1709737552991; Wed, 06 Mar 2024 07:05:52 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709737552; cv=pass; d=google.com; s=arc-20160816; b=lPRXc1Id4EZch5O3Px5zQcYEiwSHN8GzL/LLNbGtJopWcyF1obwKX2ZDB1108WcCkg s0jQun/zKkL5t55hdXiZRM6NyLvmKlzm8KbRU/VpJk1hRz5i9LU714j7FnlrLHkttyg6 VpP7xDndC7JXpSdfmfy9CS4SACaAxHwt30OhmmFFuTvROGgCO3X6fTCgR0IhNuW6clpa sPlAdOLzEhkH/kyAMqLP9bvGUD7/Dkz01eKn/JH/6EEShQTCsWV2eNMdyYqXOjqc8iSv 31y2Y5S5P6EkVNT3Yi8vLbzVJTBZYPMQCtAFzT7askGDAtp4iP2axd4SB8LmK1nJY/Qg aYVg== 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=7qc4ffRYNtvZccYs4/U0SMXhHZBv427Ly9EChqUIDts=; fh=mV4p+b+8yLFbdE4Goemm+I3FR2ydc//YNFOXrrqrvI0=; b=E2hMLbEwd5o0RSXY4jGAsZB5G7HbXrMlVeNUNTXgiFzc+vUcOA9j2uz3QtuEBAa1gk ngQWxGP9tLos+hLOPKR5oqrBFN5LwMy6t/whTqf+vDkOhz5qi4e0WgU7CCvpVX5nvzLH PJOVlFAzDaX2Ir4Y/otM4oUPv7wFoiRs7em9tIvSS//nnspHN0ZaN53CHZLwL2THfrdl QWFgjdRH4lhHoFeXM3pPLLvhyu++1eGh8BABq9hPX5gK8SbChsqGEGUkP5vX4s0X6VHh qbCt6UAAoFczQNSPSIgVgxJZBlN30cxy5gkiQ/5hh1/dxN+4tE8DlUWoDlFna9097woM 42Zg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@cybernetics.com header.s=mail header.b=W8ww5OEB; arc=pass (i=1 spf=pass spfdomain=cybernetics.com dkim=pass dkdomain=cybernetics.com dmarc=pass fromdomain=cybernetics.com); spf=pass (google.com: domain of linux-kernel+bounces-94106-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-94106-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cybernetics.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id o3-20020a056638268300b00474f8b5d7c2si2331480jat.73.2024.03.06.07.05.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 07:05:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-94106-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=@cybernetics.com header.s=mail header.b=W8ww5OEB; arc=pass (i=1 spf=pass spfdomain=cybernetics.com dkim=pass dkdomain=cybernetics.com dmarc=pass fromdomain=cybernetics.com); spf=pass (google.com: domain of linux-kernel+bounces-94106-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-94106-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cybernetics.com 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 3A8412883B0 for ; Wed, 6 Mar 2024 15:04:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 53FC41350C0; Wed, 6 Mar 2024 15:03:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=cybernetics.com header.i=@cybernetics.com header.b="W8ww5OEB" Received: from mail.cybernetics.com (mail.cybernetics.com [72.215.153.18]) (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 EDFD1130ADD for ; Wed, 6 Mar 2024 15:03:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=72.215.153.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709737434; cv=none; b=tiIGZke5WL0LV81AX1i1qKed6YW0bFqseM83adHXezlvwr9V3k4ndGfAoTFdx4HC2o23zSq9yp+qZp7T1I/2iwCahbLgALB6h9jRNyaQi2gG86HCnPWY4v1C5TmyMbJGj86UIYiwOyO6VUJYUo9I1eTqDLCl6JfCpTc9s5WZGIQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709737434; c=relaxed/simple; bh=l37PvbgjdurE3CHa9QnNHILZ3KXr3K0O8dJPZpkbpYo=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Fpi0l0TuCB5ETE5KaJ+BoZxIWn5bw42KXYJYAPPRajpOU6kauELB0lV23EuOaR5I6GXXSaoWKCg6Gn9k9B7WW+Kfam2ahDZgKX7WShxG6+VVNR6FRt2XJlTHVvEvsPxwRDeFhKe9uFMYEhhkrmUUmVQpHcO74eoSWoujlCQHtok= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=cybernetics.com; spf=pass smtp.mailfrom=cybernetics.com; dkim=pass (1024-bit key) header.d=cybernetics.com header.i=@cybernetics.com header.b=W8ww5OEB; arc=none smtp.client-ip=72.215.153.18 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=cybernetics.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=cybernetics.com X-ASG-Debug-ID: 1709737400-1cf4391a1c953b0003-xx1T2L Received: from cybernetics.com ([10.10.4.126]) by mail.cybernetics.com with ESMTP id g6dx9Nqb30PiU2Gj; Wed, 06 Mar 2024 10:03:43 -0500 (EST) X-Barracuda-Envelope-From: tonyb@cybernetics.com X-Barracuda-RBL-Trusted-Forwarder: 10.10.4.126 X-ASG-Whitelist: Client DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=cybernetics.com; s=mail; bh=7qc4ffRYNtvZccYs4/U0SMXhHZBv427Ly9EChqUIDts=; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From:References:Cc:To: Content-Language:Subject:MIME-Version:Date:Message-ID; b=W8ww5OEBmzs8NaHgEkoZ 7JNFDiLMMztKUdLXIcL/jSdNGT9JhIKQmG9mbb3+85HA/frx4z5JdSgfNArLSPFbzOKkZ/LjXeiYo AMvEQeTqhnjGUnnl8aH1Jvb+Z+9Mj3gGIEnba//g5rLTdMt6+P2hhKTNxk+GA6yzXWGhhxf/Gk= Received: from [10.157.2.224] (HELO [192.168.200.1]) by cybernetics.com (CommuniGate Pro SMTP 7.1.1) with ESMTPS id 13115879; Wed, 06 Mar 2024 10:03:26 -0500 Message-ID: X-Barracuda-RBL-Trusted-Forwarder: 10.157.2.224 Date: Wed, 6 Mar 2024 10:03:25 -0500 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] block: Fix page refcounts for unaligned buffers in __bio_release_pages() Content-Language: en-US X-ASG-Orig-Subj: Re: [PATCH] block: Fix page refcounts for unaligned buffers in __bio_release_pages() To: Greg Edwards Cc: Jens Axboe , "Matthew Wilcox (Oracle)" , Andrew Morton , "Kirill A . Shutemov" , Hugh Dickins , Hannes Reinecke , Keith Busch , linux-mm , linux-block@vger.kernel.org, linux-fsdevel , "linux-kernel@vger.kernel.org" References: <86e592a9-98d4-4cff-a646-0c0084328356@cybernetics.com> <20240229225630.GA460680@bobdog.home.arpa> From: Tony Battersby In-Reply-To: <20240229225630.GA460680@bobdog.home.arpa> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Barracuda-Connect: UNKNOWN[10.10.4.126] X-Barracuda-Start-Time: 1709737423 X-Barracuda-URL: https://10.10.4.122:443/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at cybernetics.com X-Barracuda-Scan-Msg-Size: 785 X-Barracuda-BRTS-Status: 1 On 2/29/24 17:56, Greg Edwards wrote: > On Thu, Feb 29, 2024 at 01:08:09PM -0500, Tony Battersby wrote: >> Fix an incorrect number of pages being released for buffers that do not >> start at the beginning of a page. >> >> Fixes: 1b151e2435fc ("block: Remove special-casing of compound pages") >> Cc: stable@vger.kernel.org >> Signed-off-by: Tony Battersby >> --- > This resolves the QEMU hugetlb issue I noted earlier today here [1]. > I tested it on 6.1.79, 6.8-rc6 and linux-next-20240229. Thank you! > > Feel free to add a: > > Tested-by: Greg Edwards > > [1] https://lore.kernel.org/linux-block/20240229182513.GA17355@bobdog.home.arpa/ Jens, can I get this added to 6.8 (or 6.9 if it is too late)? Thanks, Tony