Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp239247lqh; Wed, 27 Mar 2024 23:39:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUxBzDIaF2mEwx//4zFYcOAzjfm4+QhsVdSkxuWAxzCHnVkeB2KGW6PkYguLpusY4ZKkm9T+E0oh2aVVegudhuKwv3RpC9zPw/T6gTrsg== X-Google-Smtp-Source: AGHT+IHY0mS2AOF6LaaLsvVd0FOylnAWfEG/Z4+vEAshAeWtOJYDotDOTlZe84TcX16SQaLNZSKQ X-Received: by 2002:a81:7c06:0:b0:611:242e:4116 with SMTP id x6-20020a817c06000000b00611242e4116mr1682383ywc.34.1711607970908; Wed, 27 Mar 2024 23:39:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711607970; cv=pass; d=google.com; s=arc-20160816; b=qhoTyT7cwk89pJ8d9vj3Qe05svklJ/b5DfdLha5aXxbaYSvQWLKY9C+Q2PEIjHuEnS yzS5BFFFAE4qGxgdcpMStFN9QRrRvC52iUHtgChRj+RLdXXCzQck5pNnG22UnDO0NMQA G5Ucfg9UngUOg+yV5TX03aruHurxx/hTvmVQlhH9v5Y9RhBhSp4aLhCCA0WojvG7a4ar 0pVO6JLhmAuJW2IFD4o5wf/y66lHTxsy8nGwm7joqfiVNJDUZvp/MYO0/9/KvaNL9b6r zYhRbWaYwED9GHApbwp1gHV1hJBGhvyIKpQ9PHBeKGSZzw0r/CMQzk4ltaarqyIlhIi3 G4qw== 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=FqD6QFkv4RcPR01vWVUf1wMB4qAMJiEap/VS8LtfkEg=; fh=IFCWFM/6/DcYlRSwfjMOH1wPbr/QuhTjT9oO77PhDB4=; b=yyj74eDbnlzEwN1HVfDzMXLIZWR2nwdvfCs2PgfTJ7Db1O8CVglHyUFEPP7LS9aUGZ hsdHOHEkwrV/GthJUu1JoQCPry4AhSA6O+3cKCNAagIp49HRtGkdv8jRAUYrmKVS2JVD 8HbF4bHOOD2Dq4VWFP4rDjexv6J+H6QMAX6jtY2q3pBG1Pz2kxHuFCg7FiyEdx8Z/Zi6 UB+2kPESYG9k6AeImR1PEGsKfYodAUtLMFMjXFo0HjEAqgrmCsgNLGSO58dG/Fx6U9jh zbwF2NGohHEkEFBIs6Awyvas3k64XILPWJrRPTej2vPOJTmaq3Uorp/9aTzkDaydADNb aW3Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oZfORKNH; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-122467-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-122467-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id f1-20020ac85d01000000b00432b425eb6esi742445qtx.500.2024.03.27.23.39.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Mar 2024 23:39:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-122467-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=@linaro.org header.s=google header.b=oZfORKNH; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-122467-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-122467-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 A0CF21C2661C for ; Thu, 28 Mar 2024 06:39:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9BB4034CDE; Thu, 28 Mar 2024 06:39:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="oZfORKNH" Received: from mail-lf1-f50.google.com (mail-lf1-f50.google.com [209.85.167.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 89CB32C6B8 for ; Thu, 28 Mar 2024 06:39:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711607964; cv=none; b=MqculHgM27jCo8y6eDAF0kuYvtBEEyMzgOUsPsvUFAqU8cEwYbCvD07XIQDPt6nCv6y7eJqvpqzk0Ol+WdowbAqLiBTcBGhX0yRH4KKRMyOoGmmm0l/6tJzxF97B8Fdhosw7UXumianUUJVTT9T/kMwCqGOQBv0jAs785c8HL0A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711607964; c=relaxed/simple; bh=iM/Zrr6xg5+bDVZfSFnEORtiFT+7aRXqsnR+cnaan98=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=NDYhHLm+F9ZYchWHJ1sfbIo8wZGpTleQSqvQiUYQf8DPuDD2Xco/CwqICQkq8YXO6hB1GMezNPT49NkduNyPB1hIBOa0/6h1hZROPf8wtwahK94+pOSqE78hrhIsbI2cEbH2kmXEyuKN8wQ7ftFQ2Vc4Epa4a2Ws1bNV3KhyXWY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=oZfORKNH; arc=none smtp.client-ip=209.85.167.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lf1-f50.google.com with SMTP id 2adb3069b0e04-513d599dbabso718002e87.1 for ; Wed, 27 Mar 2024 23:39:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711607960; x=1712212760; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=FqD6QFkv4RcPR01vWVUf1wMB4qAMJiEap/VS8LtfkEg=; b=oZfORKNH2WFA7aM0WqvWbeFYIug6TpgxrzFUXjnjv9MOq9lorH5F+9Dc3DgsHlMkBq PNWZm2xP++LJzPeLnn5jCjmCPS8BFSjRTbfVTZsBqw3bA55uOiWWZT3+T+LSJ7zSpkCc zTgbf7LRNKi5lR1DfppJ3ciiAEBOwHqgXwS59CV+44oeoRbu2rtRW6Rv5rSBw/SplwUS nzcWudALQVXE0Jr19T6gxRNXJ0WASTDN+KdKp709HnA0U9DVTvwZcLDyXi0s8NRbGavr p0GDdSjbu5O/BOXasa5KgZ+k+b183zfa7mNNTVtQADdPA71mAOShbRA4hSPwzgbSShJu SpZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711607960; x=1712212760; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=FqD6QFkv4RcPR01vWVUf1wMB4qAMJiEap/VS8LtfkEg=; b=r94H84/05dh32ERzVYjWYJp07685tp7bSbjbbnRLDVPwapzxH+8MlEdxS/IujvhooY XDlm9NqlQ4RHtDNKBRLg8rMXtMeA/96cWBkMRczLsr4jOomZjQZW/fEvqyMGqKdOetVj JYHzlMNn0XcOk2DCs8TuoAts657LoX9nFKbAA+a8ptcLtlKzXaHj2zmUpzaz5zsfzV7I kLLFYWXMEegSDnZ+hANpcSUYpg+LjZIyH7pwUMCtavwdNk+3rn/Sdat7f08QQJBwBqmu pRdxb9JjCGqchFdal911ftsGNtxJzm1LGIglp9dS861Wuf1aqEhy74lkN52WL/LDX4MM JPiA== X-Forwarded-Encrypted: i=1; AJvYcCU71XyHjslvJr+NKomCD8vYd564riepzr4Bejwc/zutULq2jpCBYQlFuvlCfu4gN0m1p/EgZq629RYD2CB/fTvLbq8Cv850BlrDrAeB X-Gm-Message-State: AOJu0YxA9ityIOAd/j00rKLLqMWzeTpvF99jououGaoHZZiVCxUgeL5w sN+YF0hqOcPBjGb83/tPQjqkuDbwZ9Mr6blBirGiBqDGeVL8gQPEQOGBBHwHsm5QGHp03eKomtL b X-Received: by 2002:ac2:4823:0:b0:513:9e44:c68c with SMTP id 3-20020ac24823000000b005139e44c68cmr1172033lft.6.1711607959469; Wed, 27 Mar 2024 23:39:19 -0700 (PDT) Received: from localhost ([102.222.70.76]) by smtp.gmail.com with ESMTPSA id fd6-20020a056402388600b0056c53ea5affsm217009edb.77.2024.03.27.23.39.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Mar 2024 23:39:19 -0700 (PDT) Date: Thu, 28 Mar 2024 09:39:14 +0300 From: Dan Carpenter To: Ayush Tiwari Cc: alison.schofield@intel.com, paul@paul-moore.com, mic@digikod.net, fabio.maria.de.francesco@linux.intel.com, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org, outreachy@lists.linux.dev, linux-security-module@vger.kernel.org Subject: Re: [PATCH] LANDLOCK: use kmem_cache for landlock_object Message-ID: References: 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, Mar 28, 2024 at 04:55:57AM +0530, Ayush Tiwari wrote: > Use kmem_cache replace kzalloc() calls with kmem_cache_zalloc() for > struct landlock_object and update the related dependencies. > > Signed-off-by: Ayush Tiwari Is there some advantage to doing this? You need to re-write the commit message to give us some clue why you are doing this. regards, dan carpenter