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 E72A7C27C4F for ; Fri, 21 Jun 2024 23:10:32 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 696488D01AB; Fri, 21 Jun 2024 19:10:32 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 573F28D01A5; Fri, 21 Jun 2024 19:10:32 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 3EF958D01AB; Fri, 21 Jun 2024 19:10:32 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 1CBD98D01A5 for ; Fri, 21 Jun 2024 19:10:32 -0400 (EDT) Received: from smtpin10.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 7C8AD140E27 for ; Fri, 21 Jun 2024 23:10:31 +0000 (UTC) X-FDA: 82256441862.10.E8ACFF6 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) by imf13.hostedemail.com (Postfix) with ESMTP id 4149720005 for ; Fri, 21 Jun 2024 23:10:28 +0000 (UTC) Authentication-Results: imf13.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=m9MU3kfR; spf=pass (imf13.hostedemail.com: domain of lkp@intel.com designates 198.175.65.9 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1719011419; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=JtGUFm5+mIwjgyNSdQgnMOzKvsnPsDAh+jlExByKw44=; b=QCTcOZ5HADWZ91joPCMIffdKbK8aksbMGxF8pE0H0F4bGpa4Pfge/1QFkalVAQFNRQQKhH qfH5JB1lfilrQkXKlreTSgWhpKMhrVIlaPDkUhmeG7MWl3OB5BCab3C3YnYDy5swp5oyVI +rVk/B4Fz7ouholFZO8i5OFTCbkg84M= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1719011419; a=rsa-sha256; cv=none; b=0cuobBEUx17xnCRaFzxG8rT/hLSy/9wt8rxqpMyKQWE75UlPrWBgZTQZHR4iiT3cdTo0L3 /8txMYqCiviU0w6PnbHNshAdEPlEW+HqnA09m5SMpHMQ5spn3//3i07sn520rscC0aKXYo vRXPXf1Jv6N02/Fl07lDfqAt8/fIN6w= ARC-Authentication-Results: i=1; imf13.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=m9MU3kfR; spf=pass (imf13.hostedemail.com: domain of lkp@intel.com designates 198.175.65.9 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1719011429; x=1750547429; h=date:from:to:cc:subject:message-id:mime-version; bh=6VvJIiqtPcTS6sdxjZwfOrOBGF9I5dl/MUdhWSuQ0jw=; b=m9MU3kfRPPI4wIGUvo1X2rsHeHhaqd801ifpF4Oxmp2aFpxtjyOAhEiL WRL4M5rswlV6IaHsm7sOKPgJDfJs1SaHdWEnbGpIRtYThn6YLn7CwTzvH sk5dbUPWAwM+skVi/wwNWRomV8nCmUdQEO7vU+TUfLNDSexgWejMC5U9s UJJd+yPzfZy4qKNBXZcbogcpxEHoq6C7aFJtO5b6YjUZml/lyrLYxV3SA LzlA9kf8bE66WN08N3A76/X3X8ah74DzEom0Bp6EcIC2+bzA4WHqbfjse c8b+5qPMbE0fcM++8iq6HeKKnz6fGE6wFqKHro09IXQ4fA/NdOUTTNU+r w==; X-CSE-ConnectionGUID: PG1awvlDQPCoJbJ/532mpg== X-CSE-MsgGUID: +b7lGwFATqWJpYwb9uTyXg== X-IronPort-AV: E=McAfee;i="6700,10204,11110"; a="38582434" X-IronPort-AV: E=Sophos;i="6.08,256,1712646000"; d="scan'208";a="38582434" Received: from fmviesa008.fm.intel.com ([10.60.135.148]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Jun 2024 16:10:27 -0700 X-CSE-ConnectionGUID: OQKENDD7RGi5xk0zpnwyBQ== X-CSE-MsgGUID: EIXzfnf8TsSoVfbPNHc0Lg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,256,1712646000"; d="scan'208";a="42698086" Received: from lkp-server01.sh.intel.com (HELO 68891e0c336b) ([10.239.97.150]) by fmviesa008.fm.intel.com with ESMTP; 21 Jun 2024 16:10:25 -0700 Received: from kbuild by 68891e0c336b with local (Exim 4.96) (envelope-from ) id 1sKnOh-00096k-19; Fri, 21 Jun 2024 23:10:23 +0000 Date: Sat, 22 Jun 2024 07:10:06 +0800 From: kernel test robot To: James Chapman Cc: oe-kbuild-all@lists.linux.dev, Linux Memory Management List , Tom Parkin Subject: [linux-next:master 7577/7797] net/l2tp/l2tp_core.c:1298:9: sparse: sparse: incorrect type in argument 1 (different address spaces) Message-ID: <202406220754.evK8Hrjw-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspam-User: X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: 4149720005 X-Stat-Signature: kqmye83g55wh4su1eno3ue6fkyus45ho X-HE-Tag: 1719011428-415723 X-HE-Meta: U2FsdGVkX1/E/FcvZm4yxSL/uOAV/vPHBi55hpZkPFi3N95HxVATC7isYIN6/Moc92JWr9Gli4sFGz3dTe80Jy3ioOBxr5Fe+MStwJnFB7CwRJpN3//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PlijVTydq7lsTTGnroN0/SeE3LA0tss/NWmypW/cGuCqDaL1T4nXrORjdIWLZYv9T6XXbxnONObMyjuUwCLx3McLnFxAKNyNp0Pf3ZcYMxwQMPBvyhwv7+uGSA+mvNOyCau1QujnWqbcLzorcxR8g4Kh28F9Bzd88AAGW/ptd3NePtbpUUQbOdB3q/QNVfh X-Bogosity: Ham, tests=bogofilter, spamicity=0.000001, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: f76698bd9a8ca01d3581236082d786e9a6b72bb7 commit: d18d3f0a24fc4a3513495892ab1a3753628b341b [7577/7797] l2tp: replace hlist with simple list for per-tunnel session list config: i386-randconfig-062-20240622 (https://download.01.org/0day-ci/archive/20240622/202406220754.evK8Hrjw-lkp@intel.com/config) compiler: clang version 18.1.5 (https://github.com/llvm/llvm-project 617a15a9eac96088ae5e9134248d8236e34b91b1) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240622/202406220754.evK8Hrjw-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202406220754.evK8Hrjw-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) >> net/l2tp/l2tp_core.c:1298:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct list_head const *list @@ got struct list_head [noderef] __rcu *pos @@ net/l2tp/l2tp_core.c:1298:9: sparse: expected struct list_head const *list net/l2tp/l2tp_core.c:1298:9: sparse: got struct list_head [noderef] __rcu *pos >> net/l2tp/l2tp_core.c:1298:9: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct list_head [noderef] __rcu *pos @@ got struct list_head *next @@ net/l2tp/l2tp_core.c:1298:9: sparse: expected struct list_head [noderef] __rcu *pos net/l2tp/l2tp_core.c:1298:9: sparse: got struct list_head *next >> net/l2tp/l2tp_core.c:1299:27: sparse: sparse: cast removes address space '__rcu' of expression >> net/l2tp/l2tp_core.c:1298:9: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct list_head [noderef] __rcu *pos @@ got struct list_head *[assigned] tmp @@ net/l2tp/l2tp_core.c:1298:9: sparse: expected struct list_head [noderef] __rcu *pos net/l2tp/l2tp_core.c:1298:9: sparse: got struct list_head *[assigned] tmp net/l2tp/l2tp_core.c: note: in included file (through include/linux/mmzone.h, include/linux/gfp.h, include/linux/umh.h, include/linux/kmod.h, ...): include/linux/page-flags.h:240:46: sparse: sparse: self-comparison always evaluates to false include/linux/page-flags.h:240:46: sparse: sparse: self-comparison always evaluates to false >> net/l2tp/l2tp_core.c:1298:9: sparse: sparse: dereference of noderef expression >> net/l2tp/l2tp_core.c:1298:9: sparse: sparse: dereference of noderef expression vim +1298 net/l2tp/l2tp_core.c 1287 1288 /* When the tunnel is closed, all the attached sessions need to go too. 1289 */ 1290 static void l2tp_tunnel_closeall(struct l2tp_tunnel *tunnel) 1291 { 1292 struct l2tp_session *session; 1293 struct list_head __rcu *pos; 1294 struct list_head *tmp; 1295 1296 spin_lock_bh(&tunnel->list_lock); 1297 tunnel->acpt_newsess = false; > 1298 list_for_each_safe(pos, tmp, &tunnel->session_list) { > 1299 session = list_entry(pos, struct l2tp_session, list); 1300 list_del_init(&session->list); 1301 spin_unlock_bh(&tunnel->list_lock); 1302 l2tp_session_delete(session); 1303 spin_lock_bh(&tunnel->list_lock); 1304 } 1305 spin_unlock_bh(&tunnel->list_lock); 1306 } 1307 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki