From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 B8EA91F30A9 for ; Fri, 21 Aug 2026 17:35:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787333744; cv=none; b=lj89UIB2Osu79UID90kwZZOAeDs287p/yCDJpz8E7FxjTF2eMYSz4TODTV3YWXZmQZ1QUFbBmvXEpWiKGHjeIX1G8isckYbZsMz8td2pSNScYHvxuZ8x24npmosdNFU4UaHJET1TOrubKTVQ29er0QgUq0ypaRtAYtBZtbCLUxA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787333744; c=relaxed/simple; bh=Yktd6TT0q1ZL19PWTXS87XOni+0AnjTz8IiyToNuWko=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=A4umMIe6cRoVSbB+KYG1PJr6cTYlF0rhAFH8iC/hd2qsZV92x2e/yTMCZx1G7HVbFuZ9ysjt3h/o2vq3EhKCbC/jRRsh7AHyIq+FzTzVpjVJnz67HipX5/w28DcoUm3EljNks8GHcYJzu4VM2GyXgjse5UpzsiWeZloX07h00hw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=J+zR447H; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="J+zR447H" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 54E571F000E9; Fri, 21 Aug 2026 17:35:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1787333738; bh=RBbqTbFHv7pKzedTZH/lCiI+YYBR6Pv1KSsCDjZ+Z1o=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=J+zR447HAPNgRWn956XNzQiWtBGUOJHpCmMFDBeIsOG4ma52Gd6H9PYcP6W7mBpt8 2bOdyf+ObO43Syg2TsJSMqMsM3SQN0uXxyL+wtx3yNJ0PLsBQecm/FJb+JIRK/vvSB a8BKCzLis7wt/fBfAkh+nfIG+50UDFaI1abkIYOzXN7Cozs99yAmkffWutx0uu33zz fENwASQJmaUMucMTo7VcOuxXVasS6C6NciOzVzjIgR/H6nTH8PyNfYM1F9lsvlsxdp QLnmv6LTaLDZapeGNpA7MKVe/uQKS5/kgq6uQ8iqaOIYvyV4ll0EJ6I4/rNSivw9Mg crvLqsTff10gg== From: Kees Cook To: Mahad Ibrahim Cc: Kees Cook , Arnd Bergmann , Greg Kroah-Hartman , Mike Rapoport , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] lkdtm: use kmalloc() instead of __get_free_page Date: Fri, 21 Aug 2026 10:35:34 -0700 Message-Id: <178733373230.2180937.14384871679243927060.b4-ty@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260722230246.2869-1-mahad.ibrahim.dev@gmail.com> References: <20260722230246.2869-1-mahad.ibrahim.dev@gmail.com> 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="utf-8" Content-Transfer-Encoding: 8bit On Wed, 22 Jul 2026 23:02:46 +0000, Mahad Ibrahim wrote: > lkdtm_debugfs_entry and direct_entry use __get_free_page to allocate a > temporary buffer, perform copy_from_user to get the crashtype name, > strim() to strip whitespace and find_crashtype to find the corresponding > crashtype that is being requested. > > The lkdtm_debugfs_read uses __get_free_page to allocate a temporary > buffer to store all the available crashtypes, and then copy it to > userspace. > > [...] Applied to for-next/hardening, thanks! [1/1] lkdtm: use kmalloc() instead of __get_free_page https://git.kernel.org/kees/c/c7ca1fa293ad Take care, -- Kees Cook