Received: by 2002:a05:7412:7c14:b0:fa:6e18:a558 with SMTP id ii20csp403350rdb; Mon, 22 Jan 2024 07:44:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IHmucK9sEbJJ4dp77OWvdCdMvzeEm6A4WMtPpUP0Ir8vRcgwrChLY0zybFwrci/NT1SJWxN X-Received: by 2002:a05:6a20:92a0:b0:19a:3e20:372a with SMTP id q32-20020a056a2092a000b0019a3e20372amr4301277pzg.119.1705938299290; Mon, 22 Jan 2024 07:44:59 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705938299; cv=pass; d=google.com; s=arc-20160816; b=M3KBBgiHC5/UW4KTu3WxlecLEzVHeZpc1Fv7KIPypjrHLsKmGk61vMb9EsmAoadcDL bGdRObDOcGj8H0W11uXAG99xGXcbSw/QV5BZ4rCWAIkKYMRkmGJSR9xbKi2No1p8eT4T rh9vJkJPYL7zlr9M6I1gAiEWEx8iREQASxTiQ5f/ZKY5M3dne90IyWlAHX1SyuAKV6QW mAlGvNUkeqZw910VF75ZcpeMoo4m6hgjZ+7WhIYFd+fs6MgZsa+/PNxpad2WYbubk+qr p31r13Z3JBs40GCkw6G65wIY2YJsgG/7hS5GC34fwZuVAr7mw6vFLoqHcRmiKjuFt4/3 Srtw== 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=Y9rhdreqSoZyThlz35+4lq51to+TlDZiX5fgJ3jk/RQ=; fh=PiDTJaPhnxlaP/FOR3DQwWPFmHUPonG+BcFvxIJ5SWA=; b=XhA0TORwSzD4UnMNex9pSPMYcR/dCqqiuqH2is+pfLo7CnDRWM9OMwbNLtyzuaeqkv V5hGUkCplqVXYza8kuBOC3+wzadYEhO0c2fl3vDw97hCwn6kKMS6nO0oISkrJRyJ4pE8 u07PgseEbwKvy+SckhpZedw8tMS88vVrV5Yr7WFVFpC8dx/5MRHjFeqAQQlCgdZRtW+m KIOIYmCEwHwuIlrw6RbUpqFFbVehc7szX/9DWfTzx8L9v8zLbiZVqnSG9RsV44K8jDpE J7OyW678tTifb/9VATTOuWVAVZoHvLJ/9eHLXTeb3nRd8HQ8wPpZCPIMjD+L6kNYum3J JzNA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=XT9gcDbW; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-33334-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33334-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id r16-20020a635150000000b005cfbea76cfbsi4227660pgl.358.2024.01.22.07.44.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 07:44:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-33334-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=XT9gcDbW; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-33334-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33334-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 343B5284C78 for ; Mon, 22 Jan 2024 15:38:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1353B6169E; Mon, 22 Jan 2024 15:05:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="XT9gcDbW" 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 2E3376168B; Mon, 22 Jan 2024 15:05:10 +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=1705935910; cv=none; b=R61hGPOk/9d3I5hYlUwCg5VBZkhFfF0RviL9cZBenn0SPfwoBCVzDOrjRevt1vfRUDHDh9A6upcQX15L/LRX1WD4/rlZdGKIdHj6xHzLS2CYxRAAcVMhPICZAVAafoag+EHj7JbYVq+9KJVm9fid6MvOZSJOVg3C6CnSjyoVOrE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705935910; c=relaxed/simple; bh=B4sPbgPwhh4ajjcdmVrXlnMDl7BpbIwe14BcLn2f5UY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=IarkE0m0L0KyStNkdv1AMGio8yEwnweLbpPew712K6+rF6CsO9TKMcDRVCxoFrOq9xbcSbvaGdl6HEaJDmueRxA2oHzhI8WfLSDcry1e/wJkJABdgL8W9EW+S+dnG4GcCmnqt/uLSQwWu9KagafL0C0Ociqq9KOTx8vxUha3Zts= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=XT9gcDbW; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id C63B0C4166D; Mon, 22 Jan 2024 15:05:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1705935909; bh=B4sPbgPwhh4ajjcdmVrXlnMDl7BpbIwe14BcLn2f5UY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=XT9gcDbWSQvnWqzW2XsCxrKlUDpCS26wJ/I5zCtWFk1MMfzCuRj4QP5YeN0hPrtE4 aaJoFeOEVI4rxcnjk/CdmmuBTChSKbqbO7UfrfMXR40WZgmnOqrscWhI8IXmdt9ZBr oIvgaOA+CuUOzUGREUcQA8iAQTH8OM1ClE1CtTuM= Date: Mon, 22 Jan 2024 07:05:09 -0800 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: <2024012202-raking-frenzied-7da8@gregkh> References: <20231201172212.1813387-1-cmllamas@google.com> <20231201172212.1813387-5-cmllamas@google.com> <2024011948-sulfate-tartly-7f97@gregkh> 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 Fri, Jan 19, 2024 at 05:11:26PM +0000, Carlos Llamas wrote: > On Fri, Jan 19, 2024 at 06:48:53AM +0100, Greg Kroah-Hartman wrote: > > 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. > > > > > > Oops, here is the complete info: > > Commit ID: 3091c21d3e9322428691ce0b7a0cfa9c0b239eeb > Subject: "binder: fix async space check for 0-sized buffers" > Reason: Fixes an incorrect calculation of available space. > Versions: v4.19+ Now queued up, thanks. greg k-h