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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 078E0C433FE for ; Sat, 16 Apr 2022 02:42:02 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 674DE6B0072; Fri, 15 Apr 2022 22:42:02 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 621346B0073; Fri, 15 Apr 2022 22:42:02 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 4EA646B0074; Fri, 15 Apr 2022 22:42:02 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (relay.hostedemail.com [64.99.140.28]) by kanga.kvack.org (Postfix) with ESMTP id 3DD696B0072 for ; Fri, 15 Apr 2022 22:42:02 -0400 (EDT) Received: from smtpin01.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay11.hostedemail.com (Postfix) with ESMTP id 0DB3080B21 for ; Sat, 16 Apr 2022 02:42:02 +0000 (UTC) X-FDA: 79361192484.01.E889E1A Received: from mail-vk1-f179.google.com (mail-vk1-f179.google.com [209.85.221.179]) by imf03.hostedemail.com (Postfix) with ESMTP id 8F63920007 for ; Sat, 16 Apr 2022 02:42:01 +0000 (UTC) Received: by mail-vk1-f179.google.com with SMTP id b81so4169407vkf.1 for ; Fri, 15 Apr 2022 19:42:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=0TMbvglyo75lV+4IBfFg8ugvHofdtpyrUKCjMfMJu9k=; b=E4LZ3hs6IUVVq4+V3NyW3QS6eIfYx1JFsujzAMq8XzkxXJdOKlJBOk0xEoA+ai9gc+ SeRhvgjS7DXeSvw4N1Dwvcjy/1TEinX7GvgyfZOYYe4Oc51bDuaNtMmBtOqx9nhz9+P8 DQxvc8dvDEOZVRBRY6EwK8TQD5AoIof/7bC5QZbhbV47C6rFGqJYXV+CxXAGFy37wig+ unY8khUeVVnyXGXK6QKubh3B+lrIC2NtSZbp4xBQNzDQf7OBbtDZtXPlN/jhnskM37jM 7Gxn6L3y7heWick3NldiiMXliOZ69qeifR+mWbjmSaK/vqTHAt3B4lIUNg27Yyhhkwvq SuDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=0TMbvglyo75lV+4IBfFg8ugvHofdtpyrUKCjMfMJu9k=; b=CLrB3LTouYbkliixEvQkx1dN7fu2I3Dl62XulJcYp2rv+FqskSY8qi9T5v1N1gtOP5 pjVSyhDeHscJBtrFRlLOJkqFsqoOXvxx4fqW1SbfUuXAV6xTJD2uCThOamHPD4pzICuf Pg76ClI6BQA2wpFJ38J+cli8SYQ6mi9G4wLnyocO8MLYvC3sy0FMqPX72kUmfkKLvymT 0XNcaJO6ngHYr+PONrnxBuQhGJwoJRFKZ3P0TMFaWU1bkDCmHp2fLrQoxFlWS5zkUOAp MYOpMX3WJHfP8OufZHUyPxJAo8dsT1eCI5QMyFkWl8ISDkeceagq/KYS0JeLnqur9kKE gFDg== X-Gm-Message-State: AOAM530SARQRAxq9z84u1pQPRf49YKsSP0I3J0A2ZVC3EoyRIi36WWUf gsdo+9UFZGkd1pyWE/f5/40uOzrI8ucaUQjs5f7nPQ== X-Google-Smtp-Source: ABdhPJxlBbd7t6ft8NL7mJHLQ+pP0fZis4eBUzAnY29Dx11UPbYtinO1P3v7ZKiY2A9N6Mx21Q/2yZZ9vNKe+8ybbKY= X-Received: by 2002:a05:6122:887:b0:332:699e:7e67 with SMTP id 7-20020a056122088700b00332699e7e67mr472821vkf.35.1650076920607; Fri, 15 Apr 2022 19:42:00 -0700 (PDT) MIME-Version: 1.0 References: <202204160827.ekEARWQo-lkp@intel.com> In-Reply-To: <202204160827.ekEARWQo-lkp@intel.com> From: Yu Zhao Date: Fri, 15 Apr 2022 20:41:24 -0600 Message-ID: Subject: Re: [linux-next:master 4227/4328] mm/vmscan.c:3184:40: sparse: sparse: incorrect type in argument 1 (different address spaces) To: kernel test robot Cc: kbuild-all@lists.01.org, Linux Memory Management List , Andrew Morton Content-Type: text/plain; charset="UTF-8" X-Rspam-User: X-Rspamd-Server: rspam11 X-Rspamd-Queue-Id: 8F63920007 X-Stat-Signature: 8hogh1n979h9ygfwjkudo6ouhpff11pq Authentication-Results: imf03.hostedemail.com; dkim=pass header.d=google.com header.s=20210112 header.b=E4LZ3hs6; spf=pass (imf03.hostedemail.com: domain of yuzhao@google.com designates 209.85.221.179 as permitted sender) smtp.mailfrom=yuzhao@google.com; dmarc=pass (policy=reject) header.from=google.com X-HE-Tag: 1650076921-673038 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Fri, Apr 15, 2022 at 6:35 PM kernel test robot wrote: > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master > head: 40354149f4d738dc3492d9998e45b3f02950369a > commit: 32be05f0e1b84564fa4e5d1810191a198c47f87b [4227/4328] mm: multi-gen LRU: support page table walks > config: m68k-allyesconfig (https://download.01.org/0day-ci/archive/20220416/202204160827.ekEARWQo-lkp@intel.com/config) > compiler: m68k-linux-gcc (GCC) 11.2.0 > reproduce: > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross > chmod +x ~/bin/make.cross > # apt-get install sparse > # sparse version: v0.6.4-dirty > # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=32be05f0e1b84564fa4e5d1810191a198c47f87b > git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git > git fetch --no-tags linux-next master > git checkout 32be05f0e1b84564fa4e5d1810191a198c47f87b > # save the config file to linux build tree > mkdir build_dir > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=m68k SHELL=/bin/bash > > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot > > > sparse warnings: (new ones prefixed by >>) > >> mm/vmscan.c:3184:40: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct task_struct *p @@ got struct task_struct [noderef] __rcu *owner @@ > mm/vmscan.c:3184:40: sparse: expected struct task_struct *p > mm/vmscan.c:3184:40: sparse: got struct task_struct [noderef] __rcu *owner > mm/vmscan.c:1329:28: sparse: sparse: context imbalance in '__remove_mapping' - unexpected unlock > mm/vmscan.c:2203:33: sparse: sparse: context imbalance in 'folio_isolate_lru' - unexpected unlock > mm/vmscan.c:2296:48: sparse: sparse: context imbalance in 'move_pages_to_lru' - unexpected unlock > mm/vmscan.c: note: in included file (through include/linux/rculist.h, include/linux/pid.h, include/linux/sched.h, ...): > include/linux/rcupdate.h:725:9: sparse: sparse: context imbalance in 'lru_gen_look_around' - different lock contexts for basic block > mm/vmscan.c: note: in included file (through include/linux/swap.h): > include/linux/memcontrol.h:1610:39: sparse: sparse: context imbalance in 'check_move_unevictable_pages' - unexpected unlock > > vim +3184 mm/vmscan.c > > 3171 > 3172 #ifdef CONFIG_MEMCG > 3173 void lru_gen_migrate_mm(struct mm_struct *mm) > 3174 { > 3175 struct mem_cgroup *memcg; > 3176 > 3177 lockdep_assert_held(&mm->owner->alloc_lock); > 3178 > 3179 /* for mm_update_next_owner() */ > 3180 if (mem_cgroup_disabled()) > 3181 return; > 3182 > 3183 rcu_read_lock(); > > 3184 memcg = mem_cgroup_from_task(mm->owner); Will add the missing rcu_dereference() here.