Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3307517rwd; Mon, 22 May 2023 11:37:55 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7ODkDHg0fMs5+bJf3AklSk+0ddzXw0xVXKhVOVQJ3ThUOSpKcdjyctJo6SSKLBN2HVaH6a X-Received: by 2002:a17:902:ab14:b0:1ac:71a7:a1fb with SMTP id ik20-20020a170902ab1400b001ac71a7a1fbmr10871160plb.18.1684780675150; Mon, 22 May 2023 11:37:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684780675; cv=none; d=google.com; s=arc-20160816; b=KuBdso6Eu3xSmAUthGrOT5BIF7RzKPJp9REgBh4Ygw3ofXPNgnlI023CfJpP4Iljt6 GOQWyyQacqFj6Pojt/ZXaDyAq+3xikNk63621Yppy5BmAXtO2ffRuSrkmoHdiRez3x36 ns4C2S1D+j9wRZCfAY1UFgAyy1g69i4kUYZW2u/srwYms5okr2lZF+KRkQM1iiafh1m9 yxJxe7fY034Jk4U5S1XdxAlv+Pv/osYEwkRQXCFXwRg7ft6UXb451HIqFbBKkE9zA2V7 xUTjg/IRtdynxPZDBIv5JLApi0/bncfPqGG6N2llwKNKondFPYOlEnSd3dOkB7upPZPS ss3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=O/3jCAi9s94Tfcz2EMreYtUBRbwcvFrmxae3U55IpW4=; b=T+c+Ubl6S+XUoWAihqJ+TNgwyeqQAuMovm58JeAj+2lCbTlvVQ6fAxdPW+5lq1juEL iszhaJ+Ytj1GPGrDnL1dSXX8PkU1Lhfd17hRvvf3FSYgMhyLfbs2flSttAiugeQmjcfe 6/mCUlbEveRlzV3zhX1/Q21hNBeHbcjTYCcy+2lLzaWiuryccYN0a3pV078Xd/QO7Ung hgHJEGGjmpcadtJnnEVLAIUatd3pgNMS7cYFZ/6kti05/94enGf7DjYYo+KVq2677KO5 7pIBA+xRHIk4ipKzAZGCIDdaNFObrut0UQReFcN3j+dIyMgcYXuUqUkei3ILgPRSHkHp of1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=hPfD5jA7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x17-20020a170902ea9100b001a9f42553ddsi558712plb.296.2023.05.22.11.37.42; Mon, 22 May 2023 11:37:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=hPfD5jA7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233609AbjEVS3e (ORCPT + 99 others); Mon, 22 May 2023 14:29:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43084 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231534AbjEVS3c (ORCPT ); Mon, 22 May 2023 14:29:32 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE3B195; Mon, 22 May 2023 11:29:31 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 4398862232; Mon, 22 May 2023 18:29:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 39AEEC433EF; Mon, 22 May 2023 18:29:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1684780170; bh=1pIk7qKCV3k7ad3IrhBKJD+/2aFoOjWYJGEBijpFyxE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=hPfD5jA7QPUWyCotXeV6JPibYzrKGgel3zs8ZqrRpFmMzMnBkwf+HHsc+GQjBHVGo lOi5r9y9WDVEY3cuSmEalzWXOS9QxKbTIJbiEQhOZzhpQh7WGjh56rKfEyRprjYbqJ OarIP9Ysz8pYEEq59HcdpwRAqyTWH/J1ctcll9Kw= Date: Mon, 22 May 2023 19:29:28 +0100 From: Greg Kroah-Hartman To: Daniel =?iso-8859-1?Q?D=EDaz?= Cc: Sasha Levin , linux- stable , open list , Kees Cook , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , "open list:NETWORKING [GENERAL]" , ndesaulniers@google.com, rientjes@google.com, vbabka@suse.cz, Sumit Semwal Subject: Re: Stable backport request: skbuff: Proactively round up to kmalloc bucket size Message-ID: <2023052222-kung-catchy-0044@gregkh> References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 22, 2023 at 12:23:50PM -0600, Daniel D?az wrote: > Hello! > > Would the stable maintainers please consider backporting the following > commit to the 6.1? We are trying to build gki_defconfig (plus a few > extras) on Arm64 and test it under Qemu-arm64, but it fails to boot. > Bisection has pointed here. I do not see a "gki_defconfig" in the kernel tree, is this just out-of-tree stuff? If so, why not just add this to your out-of-tree stuff? > We have verified that cherry-picking this patch on top of v6.1.29 > applies cleanly and allows the kernel to boot. So what is breaking that requires this to fix the problem? What is the problem? > > commit 12d6c1d3a2ad0c199ec57c201cdc71e8e157a232 > Author: Kees Cook > Date: Tue Oct 25 15:39:35 2022 -0700 > > skbuff: Proactively round up to kmalloc bucket size > > Instead of discovering the kmalloc bucket size _after_ allocation, round > up proactively so the allocation is explicitly made for the full size, > allowing the compiler to correctly reason about the resulting size of > the buffer through the existing __alloc_size() hint. > > This will allow for kernels built with CONFIG_UBSAN_BOUNDS or the > coming dynamic bounds checking under CONFIG_FORTIFY_SOURCE to gain > back the __alloc_size() hints that were temporarily reverted in commit > 93dd04ab0b2b ("slab: remove __alloc_size attribute from > __kmalloc_track_caller") > > Cc: "David S. Miller" > Cc: Eric Dumazet > Cc: Jakub Kicinski > Cc: Paolo Abeni > Cc: netdev@vger.kernel.org > Cc: Greg Kroah-Hartman > Cc: Nick Desaulniers > Cc: David Rientjes > Acked-by: Vlastimil Babka > Link: https://patchwork.kernel.org/project/netdevbpf/patch/20221021234713.you.031-kees@kernel.org/ > Signed-off-by: Kees Cook > Link: https://lore.kernel.org/r/20221025223811.up.360-kees@kernel.org > Signed-off-by: Paolo Abeni This feels like a new feature, why would a 6.1.y system need it? What commit id does it fix? thanks, greg k-h