* [linux-next:master 10407/12552] mm/memory.c:5157:1: internal compiler error: in arc_ifcvt, at config/arc/arc.cc:9642
[not found] <202207250551.jlVw0aRT-lkp@intel.com>
@ 2022-07-25 3:05 ` kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-07-25 3:05 UTC (permalink / raw)
To: Uros Bizjak; +Cc: kbuild-all, Linux Memory Management List, Andrew Morton
[-- Attachment #1: Type: text/plain, Size: 7016 bytes --]
tree:
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 18c107a1f120d095404d141dfad8f594bdc44020
commit: 43c249ea0b1e10baac4a1264a25d69723ce5d2c2 [10407/12552]
compiler-gcc.h: remove ancient workaround for gcc PR 58670
config: arc-randconfig-r043-20220719 (attached as .config)
compiler: arc-elf-gcc (GCC) 12.1.0
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross
-O ~/bin/make.cross
chmod +x ~/bin/make.cross
#
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=43c249ea0b1e10baac4a1264a25d69723ce5d2c2
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 43c249ea0b1e10baac4a1264a25d69723ce5d2c2
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross
W=1 O=build_dir ARCH=arc SHELL=/bin/bash
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
during RTL pass: mach
mm/memory.c: In function 'handle_mm_fault':
>> mm/memory.c:5157:1: internal compiler error: in arc_ifcvt, at config/arc/arc.cc:9642
5157 | }
| ^
0x59b7d9 arc_ifcvt
/tmp/build-crosstools-gcc-12.1.0-binutils-2.38/gcc/gcc-12.1.0/gcc/config/arc/arc.cc:9642
0xdeaf74 arc_reorg
/tmp/build-crosstools-gcc-12.1.0-binutils-2.38/gcc/gcc-12.1.0/gcc/config/arc/arc.cc:8424
0xaaab69 execute
/tmp/build-crosstools-gcc-12.1.0-binutils-2.38/gcc/gcc-12.1.0/gcc/reorg.cc:3927
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
vim +5157 mm/memory.c
bce617edecada0 Peter Xu 2020-08-11 5105 9a95f3cf7b33d6
Paul Cassella 2014-08-06 5106 /*
9a95f3cf7b33d6 Paul Cassella 2014-08-06 5107 * By the time
we get here, we already hold the mm semaphore
9a95f3cf7b33d6 Paul Cassella 2014-08-06 5108 *
c1e8d7c6a7a682 Michel Lespinasse 2020-06-08 5109 * The
mmap_lock may have been released depending on flags and our
9138e47ed42524 Matthew Wilcox (Oracle 2021-03-18 5110) * return
value. See filemap_fault() and __folio_lock_or_retry().
9a95f3cf7b33d6 Paul Cassella 2014-08-06 5111 */
2b7403035459c7 Souptick Joarder 2018-08-23 5112 vm_fault_t
handle_mm_fault(struct vm_area_struct *vma, unsigned long address,
bce617edecada0 Peter Xu 2020-08-11 5113 unsigned
int flags, struct pt_regs *regs)
519e52473ebe9d Johannes Weiner 2013-09-12 5114 {
2b7403035459c7 Souptick Joarder 2018-08-23 5115 vm_fault_t ret;
519e52473ebe9d Johannes Weiner 2013-09-12 5116 519e52473ebe9d
Johannes Weiner 2013-09-12 5117
__set_current_state(TASK_RUNNING);
519e52473ebe9d Johannes Weiner 2013-09-12 5118 519e52473ebe9d
Johannes Weiner 2013-09-12 5119 count_vm_event(PGFAULT);
2262185c5b287f Roman Gushchin 2017-07-06 5120
count_memcg_event_mm(vma->vm_mm, PGFAULT);
519e52473ebe9d Johannes Weiner 2013-09-12 5121 519e52473ebe9d
Johannes Weiner 2013-09-12 5122 /* do counter updates before
entering really critical section. */
519e52473ebe9d Johannes Weiner 2013-09-12 5123
check_sync_rss_stat(current);
519e52473ebe9d Johannes Weiner 2013-09-12 5124 de0c799bba2610
Laurent Dufour 2017-09-08 5125 if
(!arch_vma_access_permitted(vma, flags & FAULT_FLAG_WRITE,
de0c799bba2610 Laurent Dufour 2017-09-08 5126 flags
& FAULT_FLAG_INSTRUCTION,
de0c799bba2610 Laurent Dufour 2017-09-08 5127 flags
& FAULT_FLAG_REMOTE))
de0c799bba2610 Laurent Dufour 2017-09-08 5128 return
VM_FAULT_SIGSEGV;
de0c799bba2610 Laurent Dufour 2017-09-08 5129 519e52473ebe9d
Johannes Weiner 2013-09-12 5130 /*
519e52473ebe9d Johannes Weiner 2013-09-12 5131 * Enable the
memcg OOM handling for faults triggered in user
519e52473ebe9d Johannes Weiner 2013-09-12 5132 * space.
Kernel faults are handled more gracefully.
519e52473ebe9d Johannes Weiner 2013-09-12 5133 */
519e52473ebe9d Johannes Weiner 2013-09-12 5134 if (flags &
FAULT_FLAG_USER)
29ef680ae7c211 Michal Hocko 2018-08-17 5135
mem_cgroup_enter_user_fault();
519e52473ebe9d Johannes Weiner 2013-09-12 5136 bae473a423f65e
Kirill A. Shutemov 2016-07-26 5137 if
(unlikely(is_vm_hugetlb_page(vma)))
bae473a423f65e Kirill A. Shutemov 2016-07-26 5138 ret =
hugetlb_fault(vma->vm_mm, vma, address, flags);
bae473a423f65e Kirill A. Shutemov 2016-07-26 5139 else
dcddffd41d3f1d Kirill A. Shutemov 2016-07-26 5140 ret =
__handle_mm_fault(vma, address, flags);
519e52473ebe9d Johannes Weiner 2013-09-12 5141 4942642080ea82
Johannes Weiner 2013-10-16 5142 if (flags & FAULT_FLAG_USER) {
29ef680ae7c211 Michal Hocko 2018-08-17 5143
mem_cgroup_exit_user_fault();
4942642080ea82 Johannes Weiner 2013-10-16 5144 /*
4942642080ea82 Johannes Weiner 2013-10-16 5145 * The task
may have entered a memcg OOM situation but
4942642080ea82 Johannes Weiner 2013-10-16 5146 * if the
allocation error was handled gracefully (no
4942642080ea82 Johannes Weiner 2013-10-16 5147 *
VM_FAULT_OOM), there is no need to kill anything.
4942642080ea82 Johannes Weiner 2013-10-16 5148 * Just clean
up the OOM state peacefully.
4942642080ea82 Johannes Weiner 2013-10-16 5149 */
4942642080ea82 Johannes Weiner 2013-10-16 5150 if
(task_in_memcg_oom(current) && !(ret & VM_FAULT_OOM))
4942642080ea82 Johannes Weiner 2013-10-16 5151
mem_cgroup_oom_synchronize(false);
4942642080ea82 Johannes Weiner 2013-10-16 5152 }
3812c8c8f39539 Johannes Weiner 2013-09-12 5153 bce617edecada0
Peter Xu 2020-08-11 5154 mm_account_fault(regs,
address, flags, ret);
bce617edecada0 Peter Xu 2020-08-11 5155 519e52473ebe9d
Johannes Weiner 2013-09-12 5156 return ret;
519e52473ebe9d Johannes Weiner 2013-09-12 @5157 }
e1d6d01ab491be Jesse Barnes 2014-12-12 5158
EXPORT_SYMBOL_GPL(handle_mm_fault);
519e52473ebe9d Johannes Weiner 2013-09-12 5159
:::::: The code at line 5157 was first introduced by commit
:::::: 519e52473ebe9db5cdef44670d5a97f1fd53d721 mm: memcg: enable memcg
OOM killer only for user faults
:::::: TO: Johannes Weiner <hannes@cmpxchg.org>
:::::: CC: Linus Torvalds <torvalds@linux-foundation.org>
--
0-DAY CI Kernel Test Service
https://01.org/lkp
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 47471 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-07-25 3:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <202207250551.jlVw0aRT-lkp@intel.com>
2022-07-25 3:05 ` [linux-next:master 10407/12552] mm/memory.c:5157:1: internal compiler error: in arc_ifcvt, at config/arc/arc.cc:9642 kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox