From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B61C7CA101F for ; Fri, 12 Sep 2025 12:56:07 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4F4E910E1C2; Fri, 12 Sep 2025 12:56:07 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (1024-bit key; unprotected) header.d=linux.dev header.i=@linux.dev header.b="HkmJrg+m"; dkim-atps=neutral Received: from out-185.mta0.migadu.com (out-185.mta0.migadu.com [91.218.175.185]) by gabe.freedesktop.org (Postfix) with ESMTPS id EE56A10E1C2 for ; Fri, 12 Sep 2025 12:48:37 +0000 (UTC) Content-Type: text/plain; charset=utf-8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1757681306; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=NL7JO++Q7ebDk6pnXvHTsS19g6iMYqqChi1RqThV9CA=; b=HkmJrg+mMrppIasXNvQVeCpET13y1bq8glGlYP1V2XPWP9scdkCLANvhZfhm8HjcJC4KLK PByAdTAnV5kpTdjMI0Fv/tELbfO5gxo8mT6tK/cNOtDYnwS25Llnv53CE0KKOqrCcoQ4bD 5h7+0gBTn9+OQZp2R4pDjb/O7cOYFm4= Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.700.81\)) Subject: Re: [PATCH] drm/amdkfd: Replace kmalloc + copy_from_user with memdup_user X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Thorsten Blum In-Reply-To: Date: Fri, 12 Sep 2025 14:48:13 +0200 Cc: Felix Kuehling , Alex Deucher , =?utf-8?Q?Christian_K=C3=B6nig?= , David Airlie , Simona Vetter , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <20250909151146.760450-2-thorsten.blum@linux.dev> To: Alex Deucher X-Migadu-Flow: FLOW_OUT X-Mailman-Approved-At: Fri, 12 Sep 2025 12:56:06 +0000 X-BeenThere: amd-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion list for AMD gfx List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: amd-gfx-bounces@lists.freedesktop.org Sender: "amd-gfx" Hi Alex, On 9. Sep 2025, at 17:35, Alex Deucher wrote: > Applied. Thanks! >=20 > On Tue, Sep 9, 2025 at 11:29=E2=80=AFAM Thorsten Blum = wrote: >>=20 >> Replace kmalloc() followed by copy_from_user() with memdup_user() to >> improve and simplify kfd_criu_restore_queue(). >>=20 >> No functional changes intended. >>=20 >> Signed-off-by: Thorsten Blum >> --- I just learned that calling kfree() on an error pointer doesn't work, so this patch should probably be reverted/not applied. Thanks, Thorsten