From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) (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 B37E134C9A3; Sun, 3 May 2026 03:27:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.10 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777778825; cv=none; b=a5msoPXLgjpMp2VYTqxOFpImiBE77pOtCB2xDJ+uUPwX6r0Gs2KS8x9UXjn1EH8DD7CPaCKkGeW1aLhc8fGHQwdtyTAYt3YZFIh31RqVhfgNqnTLYJJaXqgL2bP+ID+A8V4AeULROZDFDDDIlyMBK0qcXn/Ak+ouiH73ua7kk7k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777778825; c=relaxed/simple; bh=ThXQhMikk8hxgAx07+XgCLWhDs9WRJYcmWLBf6AsvLc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=MLfxK4xfYumHgZYDEmYWpMfss7AxigxWMwOA+6xO4QyNPrtPBRAP1aRiCTNAjnlE9vEoc6iQoPbx9LxCNTxV7WQPmtpvsRqI0ciqDnSCxa62OYWwVfUfG2N7JxWeFbtRrSdimOmPFX+80v+X96BHXVsYoCQ61yhH4qSNg7WTGhg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=adlNakCc; arc=none smtp.client-ip=198.175.65.10 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="adlNakCc" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1777778824; x=1809314824; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=ThXQhMikk8hxgAx07+XgCLWhDs9WRJYcmWLBf6AsvLc=; b=adlNakCc6gAbF4VGPz1TwU/J3HUe34A8h75+l/ZK9yGsMzw+zUoHiOGS HPeFiKPHoSNXPwR+6/Gdn+UbNb91kMghmrUeKYjUp7I0+pT72uENCScDW diNxuT7U7AZ1QG6IJm6POnDVyvWhbX3rVKhtY5e7Z/r3y8DsgEJKINxsn rSFhDXwAgzSBCvl6iDhyuLMpOR3Xd5AbWHbfNtUSQwC0XqEP8FT6NMGeB sqfMMsG40/Qwm/oo+PidEJe24aH+Yx4AKrigsjkpZ847KL6iksBEBMTlw lXkCfcAcK5B5uZJbau2oDNIurQkyUR+DgfrwCPn+FKoKodizyqOgyCQ2C g==; X-CSE-ConnectionGUID: 2r2d6+3WRYe4L7GgbwQGvQ== X-CSE-MsgGUID: W6G+L4V8THiBmffIzV520A== X-IronPort-AV: E=McAfee;i="6800,10657,11774"; a="96111904" X-IronPort-AV: E=Sophos;i="6.23,213,1770624000"; d="scan'208";a="96111904" Received: from fmviesa005.fm.intel.com ([10.60.135.145]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 May 2026 20:27:01 -0700 X-CSE-ConnectionGUID: qHMWufCwSIGpnrzHrQx6fQ== X-CSE-MsgGUID: ZO1gsvhvSgCXvuXrkhaoRg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.23,213,1770624000"; d="scan'208";a="240182796" Received: from lkp-server01.sh.intel.com (HELO 781826d00641) ([10.239.97.150]) by fmviesa005.fm.intel.com with ESMTP; 02 May 2026 20:26:57 -0700 Received: from kbuild by 781826d00641 with local (Exim 4.98.2) (envelope-from ) id 1wJNTq-0000000025d-1ypD; Sun, 03 May 2026 03:26:54 +0000 Date: Sun, 3 May 2026 11:26:03 +0800 From: kernel test robot To: "shaikh.kamal" , Lorenzo Stoakes , "Liam R. Howlett" , Vlastimil Babka , Mike Rapoport , Suren Baghdasaryan , Michal Hocko , David Rientjes , Shakeel Butt , linux-mm@kvack.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, linux-rt-devel@lists.linux.dev Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, pbonzini@redhat.com, skhan@linuxfoundation.org, me@brighamcampbell.com, syzbot+c3178b6b512446632bac@syzkaller.appspotmail.com, "shaikh.kamal" Subject: Re: [PATCH v2 1/1] mm/mmu_notifier: Add async OOM cleanup via call_srcu() Message-ID: <202605031115.qmkkOLQc-lkp@intel.com> References: <20260429222548.25475-1-shaikhkamal2012@gmail.com> Precedence: bulk X-Mailing-List: kvm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260429222548.25475-1-shaikhkamal2012@gmail.com> Hi shaikh.kamal, kernel test robot noticed the following build errors: [auto build test ERROR on v7.0] [cannot apply to akpm-mm/mm-everything kvm/queue kvm/next kvm/linux-next v7.1-rc1 linus/master next-20260430] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/shaikh-kamal/mm-mmu_notifier-Add-async-OOM-cleanup-via-call_srcu/20260430-202943 base: v7.0 patch link: https://lore.kernel.org/r/20260429222548.25475-1-shaikhkamal2012%40gmail.com patch subject: [PATCH v2 1/1] mm/mmu_notifier: Add async OOM cleanup via call_srcu() config: hexagon-allnoconfig (https://download.01.org/0day-ci/archive/20260503/202605031115.qmkkOLQc-lkp@intel.com/config) compiler: clang version 23.0.0git (https://github.com/llvm/llvm-project 5bac06718f502014fade905512f1d26d578a18f3) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260503/202605031115.qmkkOLQc-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/202605031115.qmkkOLQc-lkp@intel.com/ All errors (new ones prefixed by >>): >> mm/oom_kill.c:523:2: error: call to undeclared function 'mmu_notifier_oom_enter'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 523 | mmu_notifier_oom_enter(mm); | ^ mm/oom_kill.c:523:2: note: did you mean 'mmu_notifier_release'? include/linux/mmu_notifier.h:610:20: note: 'mmu_notifier_release' declared here 610 | static inline void mmu_notifier_release(struct mm_struct *mm) | ^ mm/oom_kill.c:511:28: warning: variable 'oom_reaper_th' set but not used [-Wunused-but-set-global] 511 | static struct task_struct *oom_reaper_th; | ^ 1 warning and 1 error generated. vim +/mmu_notifier_oom_enter +523 mm/oom_kill.c 515 516 static bool __oom_reap_task_mm(struct mm_struct *mm) 517 { 518 struct vm_area_struct *vma; 519 bool ret = true; 520 MA_STATE(mas, &mm->mm_mt, ULONG_MAX, ULONG_MAX); 521 522 /* Notify MMU notifiers about the OOM event */ > 523 mmu_notifier_oom_enter(mm); 524 525 /* 526 * Tell all users of get_user/copy_from_user etc... that the content 527 * is no longer stable. No barriers really needed because unmapping 528 * should imply barriers already and the reader would hit a page fault 529 * if it stumbled over a reaped memory. 530 */ 531 mm_flags_set(MMF_UNSTABLE, mm); 532 533 /* 534 * It might start racing with the dying task and compete for shared 535 * resources - e.g. page table lock contention has been observed. 536 * Reduce those races by reaping the oom victim from the other end 537 * of the address space. 538 */ 539 mas_for_each_rev(&mas, vma, 0) { 540 if (vma->vm_flags & (VM_HUGETLB|VM_PFNMAP)) 541 continue; 542 543 /* 544 * Only anonymous pages have a good chance to be dropped 545 * without additional steps which we cannot afford as we 546 * are OOM already. 547 * 548 * We do not even care about fs backed pages because all 549 * which are reclaimable have already been reclaimed and 550 * we do not want to block exit_mmap by keeping mm ref 551 * count elevated without a good reason. 552 */ 553 if (vma_is_anonymous(vma) || !(vma->vm_flags & VM_SHARED)) { 554 struct mmu_notifier_range range; 555 struct mmu_gather tlb; 556 557 mmu_notifier_range_init(&range, MMU_NOTIFY_UNMAP, 0, 558 mm, vma->vm_start, 559 vma->vm_end); 560 tlb_gather_mmu(&tlb, mm); 561 if (mmu_notifier_invalidate_range_start_nonblock(&range)) { 562 tlb_finish_mmu(&tlb); 563 ret = false; 564 continue; 565 } 566 unmap_page_range(&tlb, vma, range.start, range.end, NULL); 567 mmu_notifier_invalidate_range_end(&range); 568 tlb_finish_mmu(&tlb); 569 } 570 } 571 572 return ret; 573 } 574 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki