Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp733734pxb; Wed, 29 Sep 2021 08:37:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzQcn6FNKfJe0CipgZUWUwgWXvrYfrU30IaW42kiEfWDjnp/CDSYHAwbytILsGWoyIglEsT X-Received: by 2002:a17:906:c251:: with SMTP id bl17mr379061ejb.219.1632929829851; Wed, 29 Sep 2021 08:37:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632929829; cv=none; d=google.com; s=arc-20160816; b=bxiIoOuCkvxvNp3Zatv6GcKqC5l3klIB+RRHSKed74BwYhbKSi2PFeHU8yXQXBLtz8 0aw3XLtUZaCsL3l2dqPSnd8i4YhxIQWFqVh9L6hFjA5di7TgYjDNt5FjZ/igFKhjQpzb MSKPEiOn/7Z+47XQ+izqREN+8rbEXMugicFYkJli04SacHdrO0pClkOviZt+5VeupeXu rWJU7XxQ5idCedgrhWYTmGr7QmfVTkRE/8/JBJC0TtYQ0sYVZ4c7hVQy2hkmbdwgP8UQ 75A3wZOtiXhtCpDB1RcpsGGW7fT6xOO+pRbawL853xJq7YrRnpE8kqb1MqJsWqFDkeZs dYkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=7Hf7pY/JKZgLnfEiK9B7AO8BfkN+o8wWy5PQX3tSxfI=; b=AYy+DUEOc32lEIKQ0LjJ4a4JZoGI6H/zZlEMjlFm/8P/MgWVM1W+K6zpFxP09xTDkQ ZPxU9K0iluA6o3o/Y5fdMp3cEI4r13IWdrKZTRr2cDImJ7+FhH9F+w06ipDgQeaeEQjr A0rjxOb1p8QA4sXDTM2Qvnfq26bZfTlc8XvYQFCzHyA091i+fiGa12f+ubi7swB6lmHe to1g4JUF9c417ferSq68+qMOdqjXGRnRZjdK+v2ZXylLo505P3LFmkj4iLaoonrMvRDQ CD0OMnORGf3vqNsdMumadpPO5UlgYpOfBqBY62xsOrPe3Dvzv07T2qo3DziRHbr3u0XC vOLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ED57SacT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q8si255811edj.90.2021.09.29.08.36.32; Wed, 29 Sep 2021 08:37:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ED57SacT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345293AbhI2Pgg (ORCPT + 99 others); Wed, 29 Sep 2021 11:36:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59344 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345157AbhI2Pgf (ORCPT ); Wed, 29 Sep 2021 11:36:35 -0400 Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52665C06161C for ; Wed, 29 Sep 2021 08:34:54 -0700 (PDT) Received: by mail-lf1-x136.google.com with SMTP id i4so12608912lfv.4 for ; Wed, 29 Sep 2021 08:34:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=7Hf7pY/JKZgLnfEiK9B7AO8BfkN+o8wWy5PQX3tSxfI=; b=ED57SacT6G9Zh2FZj/sQBvo0yWX9FiJ2AHQXdcorOXTBVcZFVhH/UBxjSfoXFlsePR 9GebQE2KgsGjDqpW9BhzlIiPv/mnDz2uOi6JkQNwT5oroX+H0Nospb/4IflYiomfPK/H 2jHUlkqBsDsgvr8g+804bkii8ftU7evwT79LDNKcisZtfM1kgmSxoPUxJ1yr4uG3lltg Rj7SR76wni+f08sd1c7DTn/YfCh/axcJgRFIcssVkbW0e3JNnMJlo0080eQ77JqeKIMX sr5HFMI3PBJnn1oWF1jnZ4ryKHtbzTq9JJTLl7XagopNYqjuUdtF7bJ93ThQHJ1pyZ+R 0KnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=7Hf7pY/JKZgLnfEiK9B7AO8BfkN+o8wWy5PQX3tSxfI=; b=tHliqkI3jK/3l36cEqq0wM62pif3RgUhlu4/fgxDvNaq72nhEgcalU7I49rUpXBAcC nmcfFwOuDlaMcDXhJSJHmFIGI36UgP2b724B7bRb4VisFirdtGz+iOaSQoy4MdVipcfn 9nTv3+qCErsiGXf+egGFH5Ic1QlUdFmTvj+i6p5q1dkVa0ollcWVe1UiQLpO5k3ZOhb6 OhlcYr5jmT5iehmziO6sxNlkPYDABUJw4evO9mZmGstAs4XvCVY8Jo7QF5u5cOc4N7wj guVCaq4CWzlwudr7/vpQNW9nu/VW85e2j5XNxMscuhUb2W8iWjeIo1V2ZZ6VJ/7IXwcG L4eA== X-Gm-Message-State: AOAM533XrU3ytmrJJhc3wgg+j5EKpwQ+OtSdlTTmX45DIXx9uylNb8uj S7B8Q7U9Mw8miSNvOtqiVUg= X-Received: by 2002:a05:6512:3caa:: with SMTP id h42mr295998lfv.349.1632929692673; Wed, 29 Sep 2021 08:34:52 -0700 (PDT) Received: from grain.localdomain ([5.18.253.97]) by smtp.gmail.com with ESMTPSA id i21sm23383lfo.248.2021.09.29.08.34.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Sep 2021 08:34:51 -0700 (PDT) Received: by grain.localdomain (Postfix, from userid 1000) id DA04D5A001E; Wed, 29 Sep 2021 18:34:50 +0300 (MSK) Date: Wed, 29 Sep 2021 18:34:50 +0300 From: Cyrill Gorcunov To: kernel test robot Cc: LKML , kbuild-all@lists.01.org, Alexey Dobriyan , Oleg Nesterov , Andrey Vagin , Dmitry Safonov <0x7f454c46@gmail.com>, Andrew Morton , Linux Memory Management List Subject: Re: [PATCH v2] prctl: PR_SET_MM - unify copying of user's auvx Message-ID: References: <202109292307.smDkJddi-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202109292307.smDkJddi-lkp@intel.com> User-Agent: Mutt/2.0.7 (2021-05-04) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 29, 2021 at 11:20:23PM +0800, kernel test robot wrote: ... > sparse warnings: (new ones prefixed by >>) > >> kernel/sys.c:1997:58: sparse: sparse: incorrect type in argument 3 (different address spaces) @@ expected void const [noderef] __user *addr @@ got unsigned long long [usertype] *[addressable] auxv @@ > kernel/sys.c:1997:58: sparse: expected void const [noderef] __user *addr > kernel/sys.c:1997:58: sparse: got unsigned long long [usertype] *[addressable] auxv > kernel/sys.c:1068:32: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct task_struct *p1 @@ got struct task_struct [noderef] __rcu *real_parent @@ > kernel/sys.c:1068:32: sparse: expected struct task_struct *p1 > kernel/sys.c:1068:32: sparse: got struct task_struct [noderef] __rcu *real_parent > kernel/sys.c: note: in included file (through include/linux/rcuwait.h, include/linux/percpu-rwsem.h, include/linux/fs.h, ...): > include/linux/sched/signal.h:710:37: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@ > include/linux/sched/signal.h:710:37: sparse: expected struct spinlock [usertype] *lock > include/linux/sched/signal.h:710:37: sparse: got struct spinlock [noderef] __rcu * > > vim +1997 kernel/sys.c Thanks for report! I happen to miss Dima's reply in first place as well :( I'll take a look on this patch. The issie itself is implicit type conversion, shouldn't be a bug in general but need to address as well. Will do.