Received: by 2002:ab2:2994:0:b0:1ef:ca3e:3cd5 with SMTP id n20csp253593lqb; Thu, 14 Mar 2024 10:17:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUDDJDexhw9bganhZ9krah0AOV7YcmbgyxLlwo8o7nXDHypNPToHcEX5jCuiCZj8uI7OJmTTcLp+tKnE83vVCcik+cifGOOuZQ9UO49WQ== X-Google-Smtp-Source: AGHT+IF6e5RolQTppOF6+Am4nntpZINV1o6RDuAB6t3J7qkG3seVlZcKwDgZFnNEH+zx9FqP0t60 X-Received: by 2002:a05:620a:57d4:b0:787:be95:a1c6 with SMTP id wl20-20020a05620a57d400b00787be95a1c6mr2705940qkn.22.1710436620421; Thu, 14 Mar 2024 10:17:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710436620; cv=pass; d=google.com; s=arc-20160816; b=e45m0dIHRj/+yZ9oSAz9cN2VBkCW5esFYANMd0b23gZnbPIa0zZf4Pi4pa3sKuBvOZ ed/5Fgbjhv3TFOS11fn2CDdmdPaOR4kL440V54QuUabK+v3szF8Df844kp19vzDePvaj /t57Eq1ie1sIOm9w9DlDfDyl0/innvM2EtvMhLKabj61rzGHyIzRXzTsMY+SdbCJjLNn NDb4jCQ8TO07NcOmvvpzVh8eRRTDnDjpNuskFLfo1tddgpdRvv3ZoVsfgk0J5Qc86TbU K9D/X19np/kCiq4QfFawXIfAv4n8w/eTkU08va3oJEL9Bns7soMxOu+Op0YdQCT8fLjE iNDA== 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=INsAI63korkU8ixLc72FUUJjw7PIqfZzvNbXCD/krSA=; fh=5EPI5H7IEmpfhHlZbjiHJGQoWMr2DaC8nXcb1SUmFqo=; b=0Mf3J0vb4lxHxiolm2cNLJA43zTTCOyfzBo9u/uY4YLl18NN6CXRl29h26JlgaUVta 0byxamZHG7SqZfG+j/4KdtPTgNqHTvWyWQ5e8qACL2M2agK9IUwSCV0yk7T9vItne/jk FmBQn6zvAIUzU75CapAPQU7FaESWrqc3nJiukM3W3yGRISvutaDDCOfRxnTRB7nz7vxj BMO3uz5GEkahf9oRPKFVfDa+VcSlrhxKDsI2E6AqdbypPu1Gnr/NvgBfp8Zp5TJN70Xj FxVH9dFMcoyNYNYjqtOEyBJulTKFYD0iLPPor7Y9iWzep1w7HnUCJxX8BsjN/8XzjvG3 719w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mVU8DRaO; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-103618-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-103618-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id qj8-20020a05620a880800b00789e282fe83si71164qkn.19.2024.03.14.10.17.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Mar 2024 10:17:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-103618-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mVU8DRaO; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-103618-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-103618-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 086AA1C20C42 for ; Thu, 14 Mar 2024 17:17:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 01FD274BEC; Thu, 14 Mar 2024 17:16:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="mVU8DRaO" 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 21CB9745EF; Thu, 14 Mar 2024 17:16:18 +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=1710436579; cv=none; b=KAouChoGunhqSPf0baDwSYOCB3X4vPjCvZaQbI0kFK0MEZvlcOH7Y3slM+nWF3HfKfAF/7jomL7wHkhV7zw4NvbCmiktjaukkQ8wtE32hgXuFW3H8Y0s2S+H0fgQG5fEoKDctMyvdRs9y8hH+X7JEpR9maqnSTSoW06SfxC73cQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710436579; c=relaxed/simple; bh=pGyhDtx7U38/KEVxI7oHYe+wiEczizknyEbNsI4Y7yc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=FQkthoVT5kXm4Vi8XXCelTG0YybVa75BR15iPuGg4wy6rRglwOaU7wc/YQ/zrYVx673+yNzsxTV9Y9PPEsX3km5RmPMFfHIu1t+vtJmPEq8AQ9hm1DHTIuha2oNDD4me4odfdtHNMH/B3GXd8bU62ZNOwAlgzma6bTaGadC/XvM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=mVU8DRaO; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9F910C43390; Thu, 14 Mar 2024 17:16:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710436578; bh=pGyhDtx7U38/KEVxI7oHYe+wiEczizknyEbNsI4Y7yc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=mVU8DRaOFCUY4k7U5k79+C+zLjmY6l1d31ADpOQkNocdVJ4iDCIuVqoeoxJKm56b6 7sH9uuQqkv4BDr01c9D7pLz+3pvAQ+JEH6bgq+yzKTkQZh7OD3SPbz/UbHaWlDobiz RArtKW+vbBRzVDaewD8ItVe7CQFcqA/nz3sw7BPOpCU2ofOAis7G3wyIwh8TTNEhle T4Y1fVaw1fkl58IUO039KtyoPwBkpU4DJBqMi/JbRUNnT6lbEscsUExTe9eJQudta7 aMGalX9wD8ETIk/acxc8aRMIuhlb1RXij3FRNPZRoVETAKRA0kj8WRpuhTiVsnWtaO T5239dJQfxdBw== Date: Thu, 14 Mar 2024 17:16:10 +0000 From: Conor Dooley To: Bart Van Assche Cc: Philipp Stanner , Andreas Hindborg , Jens Axboe , Christoph Hellwig , Keith Busch , Damien Le Moal , Hannes Reinecke , "linux-block@vger.kernel.org" , Andreas Hindborg , Niklas Cassel , Greg KH , Matthew Wilcox , Miguel Ojeda , Alex Gaynor , Wedson Almeida Filho , Boqun Feng , Gary Guo , =?iso-8859-1?Q?Bj=F6rn?= Roy Baron , Benno Lossin , Alice Ryhl , Chaitanya Kulkarni , Luis Chamberlain , Yexuan Yang <1182282462@bupt.edu.cn>, Sergio =?iso-8859-1?Q?Gonz=E1lez?= Collado , Joel Granados , "Pankaj Raghav (Samsung)" , Daniel Gomez , open list , "rust-for-linux@vger.kernel.org" , "lsf-pc@lists.linux-foundation.org" , "gost.dev@samsung.com" Subject: Re: [RFC PATCH 0/5] Rust block device driver API and null block driver Message-ID: <20240314-capped-creole-7b11c1563f86@spud> References: <20240313110515.70088-1-nmi@metaspace.dk> <855a006d-5afc-4f70-90a9-ec94c0414d4f@acm.org> <5f502f91-0450-454d-ae8f-36223920532e@acm.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="Pk7WrlyY/BqNsZtB" Content-Disposition: inline In-Reply-To: <5f502f91-0450-454d-ae8f-36223920532e@acm.org> --Pk7WrlyY/BqNsZtB Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Just a passer-by here, but I noticed the link to Laurent's talk.. On Thu, Mar 14, 2024 at 10:03:28AM -0700, Bart Van Assche wrote: > On 3/14/24 05:14, Philipp Stanner wrote: >=20 > > The Kernel's C already has more memory safety than standardized C: > > There's devres, and since last year there's the __cleanup attribute. > > =E2=80=93 but the thing is, you can just ignore it and do it the old wa= y. >=20 > devres is controversial - see also Laurent Pinchart, "Why is > devm_kzalloc() harmful and what can we do about it", LPC, 2022 > (https://lpc.events/event/16/contributions/1227/). I don't think that's a great thing to cite, that talk prompted a series of others with (AFAIK*) the most recent being from Bart at LPC this year: https://lpc.events/event/17/contributions/16f The TL;DR is that it's not actually problem caused by devres. * I think Wolfram also talked about it at an automotive conference, but that seemed like a bit of a pitch for funding from the safety conscious=20 --Pk7WrlyY/BqNsZtB Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZfMwxgAKCRB4tDGHoIJi 0j+gAP9WfX58/nQt3jltC+8M270HUvjPJmZyrK0+DRah8vD2VgEA5wxGAnUDrSFD yKkVFD4fjcc2jhvn2r53fjz7GEACpwk= =z+PJ -----END PGP SIGNATURE----- --Pk7WrlyY/BqNsZtB--