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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 64422C433EF for ; Fri, 4 Feb 2022 21:52:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244608AbiBDVwy (ORCPT ); Fri, 4 Feb 2022 16:52:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234292AbiBDVwu (ORCPT ); Fri, 4 Feb 2022 16:52:50 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B0C42C061714 for ; Fri, 4 Feb 2022 13:52:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Sender:In-Reply-To: Content-Transfer-Encoding:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description; bh=cLcf2YHPc4S4oiuRkzVA39ApqqDSwtD+Xuuj2V9Dq5I=; b=Msd+HCYBkxWCUGbsaYcnDtFGOt nfCF2+m0q5rL8hsV7wCJXtpLg0PAnITV1G45NI+OVMLJ6pWZICZS6W9FYIjN1JsqFKGYAX5cd/JEm KES17H34Yqxp9uaJThaRdOWmgxQs3AxbILgPTIWN5AXik9AkkBpgmyXi8kPwMDovwr3A0CdGK4MyU hsZ9enFOf4CmQUqENGWIt45O96KpX0tvI3VOpTKMxUJuemJqYliuY3myDksLeBMXwW51YeooYvRCr JkfCZFvs4755vgMesmnPCn8jhv1J2HDT2hJSNDfFO4nhLw5EcOjTysWCWNL3OXjX7T2v+XeX6jZoy wFUClPoQ==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nG6VT-005Utn-KD; Fri, 04 Feb 2022 21:52:39 +0000 Date: Fri, 4 Feb 2022 13:52:39 -0800 From: Luis Chamberlain To: Sergey Senozhatsky Cc: =?iso-8859-1?Q?Micka=EBl_Sala=FCn?= , Linus Torvalds , Andrew Morton , John Ogness , Petr Mladek , Steven Rostedt , Xiaoming Ni , linux-kernel@vger.kernel.org, kernel test robot , =?iso-8859-1?Q?Micka=EBl_Sala=FCn?= Subject: Re: [PATCH v1] printk: Fix incorrect __user type in proc_dointvec_minmax_sysadmin() Message-ID: References: <20220203145029.272640-1-mic@digikod.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Sender: Luis Chamberlain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 04, 2022 at 12:09:55PM +0900, Sergey Senozhatsky wrote: > On (22/02/03 15:50), Mickaël Salaün wrote: > > The move of proc_dointvec_minmax_sysadmin() from kernel/sysctl.c to > > kernel/printk/sysctl.c introduced an incorrect __user attribute to the > > buffer argument. I spotted this change in [1] as well as the kernel > > test robot. Revert this change to please sparse: > > > > kernel/printk/sysctl.c:20:51: warning: incorrect type in argument 3 (different address spaces) > > kernel/printk/sysctl.c:20:51: expected void * > > kernel/printk/sysctl.c:20:51: got void [noderef] __user *buffer > > > > Fixes: faaa357a55e0 ("printk: move printk sysctl to printk/sysctl.c") > > Link: https://lore.kernel.org/r/20220104155024.48023-2-mic@digikod.net [1] > > Reported-by: kernel test robot > > Cc: Andrew Morton > > Cc: John Ogness > > Cc: Linus Torvalds > > Cc: Luis Chamberlain > > Cc: Petr Mladek > > Cc: Sergey Senozhatsky > > Cc: Steven Rostedt > > Cc: Xiaoming Ni > > Signed-off-by: Mickaël Salaün > > Link: https://lore.kernel.org/r/20220203145029.272640-1-mic@digikod.net > > Reviewed-by: Sergey Senozhatsky Acked-by: Luis Chamberlain Luis