Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp797191rdb; Thu, 18 Jan 2024 21:49:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IERGmEKFHsxom5LyCgmAtz4H0xE4b+JD4zIl+SvC6jNMKkgcTPy8zkP7Cl5VvjqXDWFxQmA X-Received: by 2002:a05:622a:1013:b0:42a:15c7:e01a with SMTP id d19-20020a05622a101300b0042a15c7e01amr2269272qte.61.1705643353258; Thu, 18 Jan 2024 21:49:13 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705643353; cv=pass; d=google.com; s=arc-20160816; b=oXUp7lQXQ/uwM7s+DSZTuSKLyMqqXJXiAfia0r8ZTff0TbWmEqtNkGg2ueuliHGOt8 p01pIl5U3tGTEClsVlGWyOQ8KHwteI8f1EvyYL+VTBVmatuiqJamIzgoB/h5mOo9OVqq NdQLkm7KaTVY+RqZyG+m4iA0uVQRLcGwM8eGiVEZzqguGYptA7Q6/BP/uKfEw5Roo0lm 6OKUehK8r/dIbz6f3YggNDynj1AN5Lu/babaAqSaJFLUrGOOxnOTep6UPTE4PqOjDGzX +kQJzV9fpIfAZTCCW1YsRKl0pWFgXtjOOklWPMldYXh4RO1HE1Op/3CAoAsj0o50Aiug uItA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=MeL9gAzzdIk+4EYCqtH0t+5/CIdMNKQ23XSd5BJJ6+o=; fh=PiDTJaPhnxlaP/FOR3DQwWPFmHUPonG+BcFvxIJ5SWA=; b=lpJH0R8UCnA7nsA7GqyAyNE388ArBqe3n/ZuaokU+IxUlCn/5C3JFgTYT8O8R1dZeY PvUe2qgA7BrjYsyGfhHyWYWzcs+JHzOr8USafldQGNMVwvfHXsxONRkZbUWjy2uVai02 gDD4HcQxeZTsz7dWd3Ld9kioz1ZfjQ00dXWe1LcOc85AwXnT3bGUxDvxTcocIq47W9Vq Ue5W6aFboc+ztDFg1zY7Jq6du41+0A9Wswevyu4bMr0HBtIW2qA+9AFV5OXmgIe9U5mG i0DIaMXS0DI6xwr3BihUBWgTEehZO48SVd1Q7fd2Qb1l0PJuXEeAsPHGsI3OoNih7cNs QDZg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=12t2hEgz; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-30786-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-30786-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id g7-20020a05620a108700b007837581deb2si4425679qkk.379.2024.01.18.21.49.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jan 2024 21:49:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-30786-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=12t2hEgz; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-30786-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-30786-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 07F931C22D44 for ; Fri, 19 Jan 2024 05:49:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7AF798F5B; Fri, 19 Jan 2024 05:48:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="12t2hEgz" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 A83E93C37; Fri, 19 Jan 2024 05:48:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705643336; cv=none; b=IGj+ddb4QxMTc+qVNO6fxoHTwJoKo1AhYhauJJrOp1dFR1UD3id567ahzoe3Nitl5DwkERIOCC8vdhO3g7GBeG69p9214L324jrJx58XwzUhNu4M5z9ZAgTZwnnYsUpAHxGgXqDQjXJbOoVND/VNR+sidSokVfHHjNUazFXqD4I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705643336; c=relaxed/simple; bh=LFI3MIfZMLgN8s2H8POFMuVXcGr9p4yQG5cD+zi3nrI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=SwbArb5SViC8miRrCjxXOTcyvMwd3Uz/i+I9VhWsu5FLjiD79kip/RXrKj8IZZnP/1he/TiE7Sz3JeaWXvFc4Tj3bAYUJNaXgIYLJC/FJz+ifmysPHkGln1U97pF8pTjPjpho62Gz6DBqod4vMcmyUckXPrYRj1vxvsl1L/mcuI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=12t2hEgz; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id C0FDBC433C7; Fri, 19 Jan 2024 05:48:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1705643336; bh=LFI3MIfZMLgN8s2H8POFMuVXcGr9p4yQG5cD+zi3nrI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=12t2hEgz9iIUyLTAPiu3FGTud3/uLAXGrqGDBvtElNX0f6jcNmg9IGSYCG2v7Siz+ 3GD3Iy0Z9mse/KC69XsxWhrUaghZlViKGukGLHlGrCfOXUySf1TOetuGAFpof74ikc nIMdUqyeATCAES8hcphGwOm18bZ15rRdAgudveho= Date: Fri, 19 Jan 2024 06:48:53 +0100 From: Greg Kroah-Hartman To: Carlos Llamas Cc: Arve =?iso-8859-1?B?SGr4bm5lduVn?= , Todd Kjos , Martijn Coenen , Joel Fernandes , Christian Brauner , Suren Baghdasaryan , Sherry Yang , linux-kernel@vger.kernel.org, kernel-team@android.com, Alice Ryhl , stable@vger.kernel.org Subject: Re: [PATCH v2 04/28] binder: fix async space check for 0-sized buffers Message-ID: <2024011948-sulfate-tartly-7f97@gregkh> References: <20231201172212.1813387-1-cmllamas@google.com> <20231201172212.1813387-5-cmllamas@google.com> 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 Thu, Jan 18, 2024 at 07:32:08PM +0000, Carlos Llamas wrote: > On Fri, Dec 01, 2023 at 05:21:33PM +0000, Carlos Llamas wrote: > > Move the padding of 0-sized buffers to an earlier stage to account for > > this round up during the alloc->free_async_space check. > > > > Fixes: 74310e06be4d ("android: binder: Move buffer out of area shared with user space") > > Reviewed-by: Alice Ryhl > > Signed-off-by: Carlos Llamas > > --- > > Sorry, I forgot to Cc: stable@vger.kernel.org. This is not the correct way to submit patches for inclusion in the stable kernel tree. Please read: https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html for how to do this properly.