From: "Zach O'Keefe" <zokeefe@google.com>
To: kernel test robot <lkp@intel.com>
Cc: linux-mm@kvack.org, kbuild-all@lists.01.org,
Andrew Morton <akpm@linux-foundation.org>,
linux-api@vger.kernel.org,
Axel Rasmussen <axelrasmussen@google.com>,
James Houghton <jthoughton@google.com>,
Hugh Dickins <hughd@google.com>, Yang Shi <shy828301@gmail.com>,
Miaohe Lin <linmiaohe@huawei.com>,
David Hildenbrand <david@redhat.com>,
David Rientjes <rientjes@google.com>,
Matthew Wilcox <willy@infradead.org>,
Pasha Tatashin <pasha.tatashin@soleen.com>,
Peter Xu <peterx@redhat.com>,
Rongwei Wang <rongwei.wang@linux.alibaba.com>,
SeongJae Park <sj@kernel.org>, Song Liu <songliubraving@fb.com>,
Vlastimil Babka <vbabka@suse.cz>,
Chris Kennelly <ckennelly@google.com>,
"Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>,
Minchan Kim <minchan@kernel.org>,
Patrick Xia <patrickx@google.com>
Subject: Re: [PATCH mm-unstable 3/9] mm/madvise: add file and shmem support to MADV_COLLAPSE
Date: Mon, 15 Aug 2022 10:09:16 -0700 [thread overview]
Message-ID: <CAAa6QmTMT4jWPE_zPoxuNyWPSs=W8i2Mq8kW2NdDcFgQiNzKPg@mail.gmail.com> (raw)
In-Reply-To: <202208151331.uxreCJWj-lkp@intel.com>
On Sun, Aug 14, 2022 at 10:41 PM kernel test robot <lkp@intel.com> wrote:
>
> Hi Zach,
>
> Thank you for the patch! Yet something to improve:
>
> [auto build test ERROR on akpm-mm/mm-everything]
>
> url: https://github.com/intel-lab-lkp/linux/commits/Zach-O-Keefe/mm-add-file-shmem-support-to-MADV_COLLAPSE/20220812-093122
> base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything
> config: i386-allyesconfig (https://download.01.org/0day-ci/archive/20220815/202208151331.uxreCJWj-lkp@intel.com/config)
> compiler: gcc-11 (Debian 11.3.0-3) 11.3.0
> reproduce (this is a W=1 build):
> # https://github.com/intel-lab-lkp/linux/commit/dff08746d6f7b9387b94360b66bd9db644542991
> git remote add linux-review https://github.com/intel-lab-lkp/linux
> git fetch --no-tags linux-review Zach-O-Keefe/mm-add-file-shmem-support-to-MADV_COLLAPSE/20220812-093122
> git checkout dff08746d6f7b9387b94360b66bd9db644542991
> # save the config file
> mkdir build_dir && cp config build_dir/.config
> make W=1 O=build_dir ARCH=i386 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 >>):
>
> mm/khugepaged.c: In function 'set_huge_pmd':
> >> mm/khugepaged.c:1403:13: error: assignment of read-only variable 'vmf'
> 1403 | vmf = (struct vm_fault) {
> | ^
>
>
> vim +/vmf +1403 mm/khugepaged.c
>
> 1393
> 1394 /* hpage must be locked, and mmap_lock must be held in write */
> 1395 static int set_huge_pmd(struct vm_area_struct *vma, unsigned long addr,
> 1396 pmd_t *pmdp, struct page *hpage)
> 1397 {
> 1398 struct vm_fault vmf;
> 1399
> 1400 VM_BUG_ON(!PageTransHuge(hpage));
> 1401 mmap_assert_write_locked(vma->vm_mm);
> 1402
> > 1403 vmf = (struct vm_fault) {
> 1404 .vma = vma,
> 1405 .address = addr,
> 1406 .flags = 0,
> 1407 .pmd = pmdp,
> 1408 };
> 1409
> 1410 if (do_set_pmd(&vmf, hpage))
> 1411 return SCAN_FAIL;
> 1412
> 1413 get_page(hpage);
> 1414 return SCAN_SUCCEED;
> 1415 }
> 1416
>
> --
> 0-DAY CI Kernel Test Service
> https://01.org/lkp
>
Thanks lkp & apologies here. Anticipating at least one successive
version and will include the fixes there.
next prev parent reply other threads:[~2022-08-15 17:09 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-12 1:28 [PATCH mm-unstable 0/9] mm: add file/shmem " Zach O'Keefe
2022-08-12 1:28 ` [PATCH mm-unstable 1/9] mm/shmem: add flag to enforce shmem THP in hugepage_vma_check() Zach O'Keefe
2022-08-12 1:28 ` [PATCH mm-unstable 2/9] mm/khugepaged: attempt to map file/shmem-backed pte-mapped THPs by pmds Zach O'Keefe
2022-08-12 1:28 ` [PATCH mm-unstable 3/9] mm/madvise: add file and shmem support to MADV_COLLAPSE Zach O'Keefe
2022-08-15 2:23 ` kernel test robot
2022-08-15 5:41 ` kernel test robot
2022-08-15 17:09 ` Zach O'Keefe [this message]
2022-08-12 1:28 ` [PATCH mm-unstable 4/9] mm/khugepaged: add tracepoint to hpage_collapse_scan_file() Zach O'Keefe
2022-08-12 1:28 ` [PATCH mm-unstable 5/9] selftests/vm: dedup THP helpers Zach O'Keefe
2022-08-12 1:28 ` [PATCH mm-unstable 6/9] selftests/vm: modularize thp collapse memory operations Zach O'Keefe
2022-08-12 1:28 ` [PATCH mm-unstable 7/9] selftests/vm: add thp collapse file and tmpfs testing Zach O'Keefe
2022-08-12 1:28 ` [PATCH mm-unstable 8/9] selftests/vm: add thp collapse shmem testing Zach O'Keefe
2022-08-12 1:28 ` [PATCH mm-unstable 9/9] selftests/vm: add selftest for MADV_COLLAPSE of uffd-minor memory Zach O'Keefe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAAa6QmTMT4jWPE_zPoxuNyWPSs=W8i2Mq8kW2NdDcFgQiNzKPg@mail.gmail.com' \
--to=zokeefe@google.com \
--cc=akpm@linux-foundation.org \
--cc=axelrasmussen@google.com \
--cc=ckennelly@google.com \
--cc=david@redhat.com \
--cc=hughd@google.com \
--cc=jthoughton@google.com \
--cc=kbuild-all@lists.01.org \
--cc=kirill.shutemov@linux.intel.com \
--cc=linmiaohe@huawei.com \
--cc=linux-api@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=lkp@intel.com \
--cc=minchan@kernel.org \
--cc=pasha.tatashin@soleen.com \
--cc=patrickx@google.com \
--cc=peterx@redhat.com \
--cc=rientjes@google.com \
--cc=rongwei.wang@linux.alibaba.com \
--cc=shy828301@gmail.com \
--cc=sj@kernel.org \
--cc=songliubraving@fb.com \
--cc=vbabka@suse.cz \
--cc=willy@infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox