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 AA36D36828B; Sat, 12 Sep 2026 19:24:57 +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=1789241098; cv=none; b=AipCe/4iBPxa3q3nSGgvEdgqwL4ZACIe+rCM5vgSkSIcdPgJAoZFb0i3zryWtJEQxRABqhsG2ZMF/jYVhRVKKMn9FybxNkGsTpJuVVhE6VUx6OgA/ZL1hGTzyiXm5JSpkJP2dFNZWwA7FFMMQV3QYrJvM09ha6L59jEYvBpnj2Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789241098; c=relaxed/simple; bh=rgAmh8g9fB6UJi3c9b/AsUolX6Ergvay0vdQjzk2XvM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=pNqKe5T+uSZ+6+vbfd+VGwIQaQU+Xa04ush6rMDH15LIYtT4/5KjBlex2xw7QIqZxoBIXr8zssOYGZ8ykabLiGNm196PGSQ0hIGu6NCfFSjVxIAyaPA6ewcxXOCxFoqXfpEOG0loReRIwWqAlgIoTn1IulTDzJSScibwYVVaqb8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=FAbQalFd; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="FAbQalFd" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4CC271F000FF; Sat, 12 Sep 2026 19:24:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789241097; bh=fqJQtiw7Xd0NZPpmrS3d37iKTFUWAoKvdIwG4p8Yul0=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=FAbQalFdsgo3uZN5xuYMOLVkkOO6lGAxhbTYIjg44MTpV1+ZZHxk4xtRhZzx65cmi zCZ2nNr+nwfVfzmFwDoNrsFQIIVPk4CRewIs4i0QIYAmrrhWin5LkcUJ/XwjiusEWv 2HR6F7YpRl1JAdvLc0qDaxil3DeomlfugxgPmGg8= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, kernel test robot , Florian Fuchs , Helge Deller Subject: [PATCH 5.10 067/798] fbdev: pvr2fb: correct user pointer annotation and sentinel initializer Date: Sat, 12 Sep 2026 08:54:55 +0200 Message-ID: <20260912065518.501056577@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260912065516.948645775@linuxfoundation.org> References: <20260912065516.948645775@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 5.10-stable review patch. If anyone has any objections, please let me know. ------------------ From: Florian Fuchs commit 5dc2e70dd74b1f03e2e13bfb6922111d9e0adf90 upstream. Add __user annotation to buf, as it is passed as a user pointer in pin_user_pages_fast(). Use an empty initializer for the sentinel board-table entry to avoid initializing a function pointer with an integer literal. Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202607131247.fpQ6eTc7-lkp@intel.com/ Cc: stable@vger.kernel.org Signed-off-by: Florian Fuchs Signed-off-by: Helge Deller Signed-off-by: Greg Kroah-Hartman --- drivers/video/fbdev/pvr2fb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/drivers/video/fbdev/pvr2fb.c +++ b/drivers/video/fbdev/pvr2fb.c @@ -638,7 +638,7 @@ static irqreturn_t __maybe_unused pvr2fb } #ifdef CONFIG_PVR2_DMA -static ssize_t pvr2fb_write(struct fb_info *info, const char *buf, +static ssize_t pvr2fb_write(struct fb_info *info, const char __user *buf, size_t count, loff_t *ppos) { unsigned long dst, start, end, len; @@ -1068,7 +1068,7 @@ static struct pvr2_board { #ifdef CONFIG_PCI { pvr2fb_pci_init, pvr2fb_pci_exit, "PCI PVR2" }, #endif - { 0, }, + { }, }; static int __init pvr2fb_init(void)