Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp3508251lqp; Tue, 26 Mar 2024 10:58:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXxqSRmIEU/1wbr4eGY5NSM18v21/lUaThzCPe8uoJ4OJe+3FfkNUQROMYDl37rVFpnCSykrUuafFBs9pgUMid58t9yvrmYhKENAuy4Lg== X-Google-Smtp-Source: AGHT+IHMi6HseNgYas/mNA+8uHrUlaNwtL9IxZEq2NmokyD0hFhPWiXpSWXRYMUsnhnEO+QbeXs3 X-Received: by 2002:a05:6a21:339c:b0:1a3:8904:1fc9 with SMTP id yy28-20020a056a21339c00b001a389041fc9mr2044822pzb.41.1711475911159; Tue, 26 Mar 2024 10:58:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711475911; cv=pass; d=google.com; s=arc-20160816; b=NiJCiAVeoz5prGBqJUBx1tj/yUREfenN5o5n4Pat+w9Ft3e2GTioY7dHUYLuDkip+S NsWcj0ACrF/OrF8bXZepe5LcTz6Ye5akvQXm1UEm80HrRV+3c77HFUZKwbCrz6ZH7VQg Dn1bCW6h50CXjK+Wlk6U2TCP/b7Vrj4knUVqnPyRfcn2NRqkcKLeqICt/riWqgF6TMLT 1g7+yc1LNsGhzjrt91nctRMs/+WdXGSOKdbbxSKJh0S8f6tF0zr9iRlfievxDBLMJ0g1 /eNZLabOosfyqLQjqynwp5A5CeVTUltUzg491gxSSxijhgxTXbwP+VanXM+qi0/g1qM9 YeLA== 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; bh=aKeT4PA6F3TWH/9YL0ixMBbTZUmS2U+jVPyhBHDgLkA=; fh=QBNv4YCHFU03eyzBx/tE2lTYVKmrwxK4pVYI4bovt1U=; b=t0lXY4036D/cSjwbq7f4CKx+tdTwlqjpELAdfN/F3NrJCVCcGzt2CUZtV/ZqjFEAqn OvWl97bI/1AZjXpaMn3dj7TqY7SxKDzIoQG3prsS2Sr56lLK027wsS3evCKlIhWa5vSR 2ybWnR1n3raNlk0ScdExBUE72yC1p11rfl1s5ohGHwOevfzMWKY3bLEXb2RE39WF92yl 0l8r7oaKXi47Nk9/UbIjwT0/QTs6KrYFrYNTlVkyX0lOdT+e+cvAiDAN9VNMrlRCRJHQ J/09T+7gFIIQHewWC/zEJ3Fk3H9Kg+L59eC3PtweU/uIwBNaSkFBUP5fcVdTD2qpjCJI mLRA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-119604-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-119604-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id m11-20020a63ed4b000000b005cfd3333850si10105700pgk.106.2024.03.26.10.58.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 10:58:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-119604-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-119604-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-119604-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 8DADEB27ED1 for ; Tue, 26 Mar 2024 17:33:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 850F51CFBD; Tue, 26 Mar 2024 17:33:17 +0000 (UTC) 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 0C7851CD2D for ; Tue, 26 Mar 2024 17:33:16 +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=1711474397; cv=none; b=hWCz6xLaGZqX+Vpv76B9Whv2SCQwdP6MbCGIZuPJl63RfgvoD3Gaav15xhdntCdv0J2bGfnq0NZyscQA8ZZANl7IETuB+iQtsjAz/1xl3BegvhnvENmkkuJBJHWM+rDM1kj7stLmiBzjicv5Yl8/m1xpKoOtyJrSHk3VlPgGsn8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711474397; c=relaxed/simple; bh=A4W9NkeL4SqI0Nxei+oIQ5wA6NWT8IY5yqEh9Ua2fTg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=QLbdwJAWXo00/2Vgh44eA1jWTSPPUaa1mDxQq6JS1+IxJ3i9QATrfTYac3ZGVF0rgaKRvkjpaJ2c5u0VOrhh3B5uNSVKJhbLUAD7SEHfqMl+Rh3paYMTSOjRkTEeNtGz8Sjoot3joxcW/b54FnzQGMOFvDAmJ/4uyaFkYRpbBj4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 63FA4C43390; Tue, 26 Mar 2024 17:33:15 +0000 (UTC) Date: Tue, 26 Mar 2024 17:33:12 +0000 From: Catalin Marinas To: Waiman Long Cc: Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] mm/kmemleak: Compact kmemleak_object further Message-ID: References: <20240307190548.963626-1-longman@redhat.com> <20240307190548.963626-2-longman@redhat.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: <20240307190548.963626-2-longman@redhat.com> On Thu, Mar 07, 2024 at 02:05:47PM -0500, Waiman Long wrote: > With commit 56a61617dd22 ("mm: use stack_depot for recording kmemleak's > backtrace"), the size of kmemleak_object has been reduced by 128 bytes > for 64-bit arches. The replacement "depot_stack_handle_t trace_handle" > is actually just 4 bytes long leaving a hole of 4 bytes. By moving up > trace_handle to another existing 4-byte hold, we can save 8 more bytes > from kmemleak_object reducing its overall size from 248 to 240 bytes. > > Signed-off-by: Waiman Long Acked-by: Catalin Marinas