Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1026002rwb; Thu, 22 Sep 2022 09:10:57 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5TKnqHhbVFEsD8ZQGomEQp23ogjjDqTTgMdYEcY09VVC88VndYC/VKAQ0bnj30OKV510hE X-Received: by 2002:a17:907:1628:b0:782:28e8:856c with SMTP id hb40-20020a170907162800b0078228e8856cmr3449428ejc.643.1663863057304; Thu, 22 Sep 2022 09:10:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1663863057; cv=pass; d=google.com; s=arc-20160816; b=ie0CbszEeYY5rEfuIeiO2zSasjOst+6jIfmw5D6qMegY5wkP/YlZ5FoT+9qFEJnryM 3mZi6OmM/jMTAHowACQgHLyOQqgXm3bwfLIZQ4WGP9K8k9FK/zFq6/f1+9j9WL0A6cEf 1V+YQ9cG6shJzIdPPsGytMOH4dcmKBb8WbDK1tW9bdWYy7x4cvgC15CTH0gFIuxR+zbc 5NJ2d2AWJr1Be1mCoad+FXbY1aVKsaQXNUXLifVIn0u/QXVBAkEGzgQFkb1DGVZIILs0 VeDLWeG1ymBvDuo+K8ZNK234cQYyWOK+jF/WLwdo9ukZC2srDPoch5c9FMdFjiLKzsC9 w8Mw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :dlp-version:dlp-reaction:dlp-product:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature; bh=trAbfyrgNkR7xuExoF4DzRv0PX48LpnJC6AN2/Fyf38=; b=CgVZI0ZVdjketaU7v7rk7ngtSTIpZDUz+gbki1vzNQzfU413IFKpU3x1Z93F21f+3V alW4YiWK6RM6JnTcI2SOEY2J1Y7TYMeSXkrf4W019DYzf40AiXQUA5fJwCtowOLeYaTT W5d4X1CqJndwepSlj4DJfmKrYxB3z3ohTZjRFYw/HGqSJ0ZCsYYo/pFvOlRGoc7Rd6QH fsaxfY89j4NqIEoBhxvLiou3PFDa6iMTDbbcq6ygIVfENSHRZV2O1RB1Wx3XOPiuA/0q f0/A+3uvzC0aaUfI1EkIDcF2D9pi4S+rqGOPCJjILU6puC+eiK1zCAAqC51pESfNX3N3 dk2A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=LSKkALcy; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dd8-20020a1709069b8800b0073d6c39d4bcsi1647621ejc.653.2022.09.22.09.10.36; Thu, 22 Sep 2022 09:10:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-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=@intel.com header.s=Intel header.b=LSKkALcy; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231555AbiIVP5Z (ORCPT + 63 others); Thu, 22 Sep 2022 11:57:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48592 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231936AbiIVP5L (ORCPT ); Thu, 22 Sep 2022 11:57:11 -0400 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AEC26E5F97; Thu, 22 Sep 2022 08:56:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1663862220; x=1695398220; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=4nKJO+b1HfTFBxUR2AzjnC6O/cbewqKAQFGYCJbdZ7Q=; b=LSKkALcy9QUFoVkpSNhmONzKgY54xacGrjpnjX+vh1lRVes6C0zSwS5F No7NO4fnCSz0xDUgJibXtclRN1pS04DmfKA7LodIN6UNt3bWUg9bPbRuC qq4uqwaybwxhkFkcx8mXv6wzDW/a9KpoJWopTSOfrNWJ5u/jz+c5b9iAQ LydGU2wqJii+k90I5tYQRv6d4pIgoezWxNIvq7aOGbmWeJ9TuSJMDojpE BRSWkevrFR87diTHyQswYaIFZ/F7J8oAnNWQjjw8mntgrnrpVfzNnibWV OodqmwyKTRQrv5PTo6nzW44yCTn+72tGLAG+ihbeq/NQD2oKUSSbVX/+Y g==; X-IronPort-AV: E=McAfee;i="6500,9779,10478"; a="287422359" X-IronPort-AV: E=Sophos;i="5.93,335,1654585200"; d="scan'208";a="287422359" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Sep 2022 08:56:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,335,1654585200"; d="scan'208";a="762235050" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by fmsmga001.fm.intel.com with ESMTP; 22 Sep 2022 08:56:57 -0700 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Thu, 22 Sep 2022 08:56:56 -0700 Received: from fmsmsx601.amr.corp.intel.com (10.18.126.81) by fmsmsx611.amr.corp.intel.com (10.18.126.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Thu, 22 Sep 2022 08:56:56 -0700 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31 via Frontend Transport; Thu, 22 Sep 2022 08:56:56 -0700 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.100) by edgegateway.intel.com (192.55.55.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2375.31; Thu, 22 Sep 2022 08:56:56 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fSeWH4ZByqYtVjVD5EoPuXpir+uVixD1eGxRvbtig27MGD3a3rwk9scCspmVQSjNTsTgIkcR6c2ONCkCsJYTPz20+lU9Adj8ikOcrlvZhNUX+2TNRnwx8AlHPKEa0L+DY25vLgsF9MaUGhLb6c1WvwURDDiJ84gFpge05q+ylVIL0Iem5eE5gTi7kbn0R2zjSvmwBUqer6/ZXofn8K2TBdXXJE9f85t/dtaxuuNs3u3JY2w/RjXqcZu4Mp0bT8UYOVSAb0DnWZRZDu3hRolchz2Kp+MtzK/azMn4IaeHz5GDSqTFuKyOud0deg9KFeflV2enxVEYjxEX7rPOPYevWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=trAbfyrgNkR7xuExoF4DzRv0PX48LpnJC6AN2/Fyf38=; b=eBmwfoLbOsPxH8CMo6gJ0V1nlOUO9FYKndvFThrC1uZMjo9HSVW/zyP1gUdGsfRQcrkaTZPJ1rI4/7khnkYi+yNvg2itk7xTie12ALPafx5tYOnZdO+DGC1Wz5/u17zYNHWcBwEPhIzDwxykTi6ee9953qXLysNuKCOiX/sWuU6zoEWBtnzUI1UJ74IYMY8Xu8rjorNcuDhXx+3RttWqm9WzJJ+UjW+3/+dRuoUtF4sErGQvroNBN39eGFA65LzOBOBPFDhOZVCgivq/yWoNt/lpI/n6FjkBkuiRJSbWsiBKCQcPKN+X3ZsNMxkcvEGK00Q3ulpJ4wky0awDlI/QYg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from DM5PR11MB1324.namprd11.prod.outlook.com (2603:10b6:3:15::14) by CY5PR11MB6365.namprd11.prod.outlook.com (2603:10b6:930:3b::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5654.18; Thu, 22 Sep 2022 15:56:54 +0000 Received: from DM5PR11MB1324.namprd11.prod.outlook.com ([fe80::64f9:b9bd:85bb:c756]) by DM5PR11MB1324.namprd11.prod.outlook.com ([fe80::64f9:b9bd:85bb:c756%3]) with mapi id 15.20.5654.014; Thu, 22 Sep 2022 15:56:54 +0000 From: "Ruhl, Michael J" To: Kees Cook , Vlastimil Babka CC: "linux-wireless@vger.kernel.org" , "Jacob Shin" , "llvm@lists.linux.dev" , "dri-devel@lists.freedesktop.org" , "linux-mm@kvack.org" , Eric Dumazet , "Nguyen, Anthony L" , "linux-hardening@vger.kernel.org" , "Sumit Semwal" , "dev@openvswitch.org" , "x86@kernel.org" , "Brandeburg, Jesse" , "intel-wired-lan@lists.osuosl.org" , David Rientjes , Miguel Ojeda , Yonghong Song , Paolo Abeni , "linux-media@vger.kernel.org" , Marco Elver , Josef Bacik , "linaro-mm-sig@lists.linaro.org" , Jakub Kicinski , "David Sterba" , Joonsoo Kim , Alex Elder , Greg Kroah-Hartman , "Nick Desaulniers" , "linux-kernel@vger.kernel.org" , "David S. Miller" , Pekka Enberg , Daniel Micay , "netdev@vger.kernel.org" , "linux-fsdevel@vger.kernel.org" , "Andrew Morton" , =?iso-8859-1?Q?Christian_K=F6nig?= , "linux-btrfs@vger.kernel.org" Subject: RE: [PATCH 07/12] igb: Proactively round up to kmalloc bucket size Thread-Topic: [PATCH 07/12] igb: Proactively round up to kmalloc bucket size Thread-Index: AQHYzjEYR++WbhctVUaYQWdb/SDWtK3rmzpg Date: Thu, 22 Sep 2022 15:56:54 +0000 Message-ID: References: <20220922031013.2150682-1-keescook@chromium.org> <20220922031013.2150682-8-keescook@chromium.org> In-Reply-To: <20220922031013.2150682-8-keescook@chromium.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.6.500.17 authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DM5PR11MB1324:EE_|CY5PR11MB6365:EE_ x-ms-office365-filtering-correlation-id: e49b8d06-731d-4d65-73fd-08da9cb3122e x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: yx4wVTC2/tXsprCvmQJUll5poreZgQBiJxFekyq8YDHSMGVrAoW0Pi2VqCgOp2XNx44gdSEtHfTQf2wXw/7640s91qnMwK0UqFZ7mze7Ipe+m854wfyEMcDcnakritO1vAZ3hO1Utp4AkTGB8+SollHrQEjPdZg8neZ9b3I7p2BhyxTnTGQDx5MdvunTPiZcVKQW+cQJZwN/+wZ28kdbF1yhwMJEqpa/DSEllTyaXZC87dJ440gGletKnjfPAZqeycip//lMP3U4wiYxnyhd3mj1r4UAmJMZ4J463H/RJGqzVchclG6rqVRCcDYOXFUq7ZFMnwP52VKnHytl+tETxTV3lFCMzaBiPIaQ4fslMmDytZy/6242R+M0LbCAf9XuB1CUFIc8iCglePoP3vBcySr2fws9zzsW8IyUWz5ctLTQ4QDx5uUmdhC9/tpxALIIhLZnQlDRfZYMQRj593W7gRSIxr1/oPEX9bN7HQL4bV96vB2rNpWwfHiTgkXG4pY0O/JmR2gYLn9h8CnIN+BXU9IakRZ6JOZHxCaeOWEmNGV8zXF2f83Eew9s3FXClMSoeBb2hdLsm/mmQk4OUOqoneCNngoTQt0J6oeSgLeyQY6thffSNDP3MIMwKSEkCDiwqZVcuIe4Ak8zMagpSX31PhAxsLlTlzN4XM0JPvfLGQ6k8UehEaIY57p87GNWdUWMZqyQlki3JPRZou0PFuybL72Q5GBEmRTn+9tyr0VcOMAXHdH5+aHsG8T3FehbBp6l5KQofebKKjj/jOQ/l68Asg== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM5PR11MB1324.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(366004)(376002)(396003)(39860400002)(136003)(346002)(451199015)(38070700005)(186003)(83380400001)(26005)(82960400001)(122000001)(7406005)(7416002)(5660300002)(41300700001)(8936002)(52536014)(55016003)(478600001)(2906002)(9686003)(8676002)(64756008)(76116006)(66946007)(7696005)(6506007)(66446008)(71200400001)(316002)(66556008)(66476007)(4326008)(54906003)(110136005)(33656002)(38100700002)(86362001);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?zJhFA5mxPgQpqh/ck+6T9IyB+1LM/uzPHowvaMEwnBkee1ETzkSvs+0zny?= =?iso-8859-1?Q?seQsS7RNJDEoTaa5iJ7voQOG4o5vCngruymmV5oxTyzqGM9C3AyKy4WsJA?= =?iso-8859-1?Q?sbyCNzE8jaUL1tV4lQCpg2q4OIRVVqPpbcNdtm3oxg2Xl1aOjgDohxRqnE?= =?iso-8859-1?Q?800pagqVHeFFUId71tv2PA+vXaE/1utooKszx/z7KHCuXmpdezYCLwHJdK?= =?iso-8859-1?Q?DLVCEmAC12e25VoZqDXJMkDKuQXQVusYZV1O96vcFTsn0phVbHBtm3YsG1?= =?iso-8859-1?Q?OnIQzDFuapjJVdIIBZlD0kYp0RcgkVCwqufxcJlDh9NUpzwcQ7GbFw9DAV?= =?iso-8859-1?Q?BqCvL7AuVKJTcpETvB2YCSllKSWl1LnK9gv74wbnDfBEYC7fUShOp10u/Z?= =?iso-8859-1?Q?w9kMsRxRzsmOcHEp3lN47mJIVIb4GxgTTCEOSttmDt55QWSlY5UH7UBPeU?= =?iso-8859-1?Q?UTOjx/BItUq33R35fqEszW8WuDIYKqiVTXmOLnZyKdr004Wq9bj1udc+uZ?= =?iso-8859-1?Q?PqFRYV6jYtBncdZwlvOSEQKmN3vdUzjw8PLpxUHGJuLIIOyJyJVs9JRWqn?= =?iso-8859-1?Q?OB4xfhRulWjG8ZiAronwYavQBPfRYZTF7LmgXBvERTq/AK2xFcvpgeEy48?= =?iso-8859-1?Q?uDUwp9IvOkDcdwvoDbkFkL4XXhZqHK2fWxpmwwn+L7weyJB/fLgDvIExkb?= =?iso-8859-1?Q?AOVpK6kxBwM053PcMp55vRkvpXLHmpwD6FvWWfE2iOsCBWIK1aHpK3+2Jg?= =?iso-8859-1?Q?RqdyB1M8g5ZlG2rHRRpxmftfcblergPLLcgvK1coAbeP1QNbygZonRUsXe?= =?iso-8859-1?Q?XkH1QIouCBzFyyGEwzJOjBjZ0OCWg2rwlfnFm0FHGpvacHIcS13Y0X0HrB?= =?iso-8859-1?Q?X3OSkTZgS0MhbAahU1Uxhy60dd5I3q1GAR5CtscSO5GqYQ1uq1oeUK9Vd1?= =?iso-8859-1?Q?6991XCpJwzrYsDvv+Lxq0rC69/oFZ8csY3ln5VMC+03MiebANPO49zVUtn?= =?iso-8859-1?Q?LPgNh47q1aiPwe2d6q/FoGW3ONp8Fl/SvAkAOBZjOK77RJZitkYrHaKWAp?= =?iso-8859-1?Q?ybCfCa6MXELiQuFbjOTNbsiRy34BnNVJI/cVmyL6gl9VDnUFKHGiv1m8q3?= =?iso-8859-1?Q?tgjig66y8xga5SU9jRvIxzIntdGCmZrCbPFGxPOxu3+DVRYnWaV7dAzxYp?= =?iso-8859-1?Q?8FGHxFT1e8PyxNgI22pb9hAyVyyUKqYFh5SLCiThRVPRT5ukA9y4KS8MPp?= =?iso-8859-1?Q?7rZ/1/T1K31q/yozpvDvKlpEkcJWU51DR7pea/Wz8UDiKBgLakI7051C7o?= =?iso-8859-1?Q?IRy4W38JGag7TMOlP2zH7JnBVPKOzQhRunk3+ins72LAy6kVKsepWh+DVT?= =?iso-8859-1?Q?pMzzAak+iK2EDsya8J0Yd8x1mZq0OLDjxijWWPsPYTBoOg2hBYbIjdG+0A?= =?iso-8859-1?Q?4NNEn7ODLBN/poPH9rFfioM2fP8kz4sODTS96YfTUHNLsYZ6PLPQ9BglYI?= =?iso-8859-1?Q?OCUR4SP9oBXNqTY5PU0ZVhoeMNJohfUMKac0p/S93BsEnCah9C8o7km/ca?= =?iso-8859-1?Q?Zd8L8ixqkj2Zf2xB72PIZET/oeAtFfsRUb3CRgqYd2+RGNjhvLF0rmh7N0?= =?iso-8859-1?Q?tueWHs/lzHjGAYS+7R5etVjyfJSdqepNEG?= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM5PR11MB1324.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: e49b8d06-731d-4d65-73fd-08da9cb3122e X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Sep 2022 15:56:54.3834 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: B+vMJqqgOi99hRaZ+cvay0ISVgix+N3SnwYMj12dhqgFD5h6L8bos3tyP219+0v3Iiyismy5gsp3cmPheX8hbuA/hFwxG5zpx16XwO2SKvI= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY5PR11MB6365 X-OriginatorOrg: intel.com 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, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE 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-wireless@vger.kernel.org >-----Original Message----- >From: dri-devel On Behalf Of >Kees Cook >Sent: Wednesday, September 21, 2022 11:10 PM >To: Vlastimil Babka >Cc: linux-wireless@vger.kernel.org; Jacob Shin ; >llvm@lists.linux.dev; dri-devel@lists.freedesktop.org; linux-mm@kvack.org; >Eric Dumazet ; Nguyen, Anthony L >; linux-hardening@vger.kernel.org; Sumit >Semwal ; dev@openvswitch.org; x86@kernel.org; >Brandeburg, Jesse ; intel-wired- >lan@lists.osuosl.org; David Rientjes ; Miguel Ojeda >; Yonghong Song ; Paolo Abeni >; linux-media@vger.kernel.org; Marco Elver >; Kees Cook ; Josef Bacik >; linaro-mm-sig@lists.linaro.org; Jakub Kicinski >; David Sterba ; Joonsoo Kim >; Alex Elder ; Greg Kroah- >Hartman ; Nick Desaulniers >; linux-kernel@vger.kernel.org; David S. Miller >; Pekka Enberg ; Daniel >Micay ; netdev@vger.kernel.org; linux- >fsdevel@vger.kernel.org; Andrew Morton ; >Christian K=F6nig ; linux-btrfs@vger.kernel.org >Subject: [PATCH 07/12] igb: Proactively round up to kmalloc bucket size > >Instead of having a mismatch between the requested allocation size and >the actual kmalloc bucket size, which is examined later via ksize(), >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. > >Cc: Jesse Brandeburg >Cc: Tony Nguyen >Cc: "David S. Miller" >Cc: Eric Dumazet >Cc: Jakub Kicinski >Cc: Paolo Abeni >Cc: intel-wired-lan@lists.osuosl.org >Cc: netdev@vger.kernel.org >Signed-off-by: Kees Cook >--- > drivers/net/ethernet/intel/igb/igb_main.c | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/drivers/net/ethernet/intel/igb/igb_main.c >b/drivers/net/ethernet/intel/igb/igb_main.c >index 2796e81d2726..4d70ee5b0f79 100644 >--- a/drivers/net/ethernet/intel/igb/igb_main.c >+++ b/drivers/net/ethernet/intel/igb/igb_main.c >@@ -1196,6 +1196,7 @@ static int igb_alloc_q_vector(struct igb_adapter >*adapter, > > ring_count =3D txr_count + rxr_count; > size =3D struct_size(q_vector, ring, ring_count); >+ size =3D kmalloc_size_roundup(size); why not: size =3D kmalloc_size_roundup(struct_size(q_vector, ring, ring_count)); ? m > /* allocate q_vector and rings */ > q_vector =3D adapter->q_vector[v_idx]; >-- >2.34.1