* Re: [PATCH v7 13/17] mm/debug: print vm_refcnt state when dumping the vma
[not found] <20241226170710.1159679-14-surenb@google.com>
@ 2024-12-26 19:40 ` kernel test robot
2024-12-26 19:51 ` Suren Baghdasaryan
0 siblings, 1 reply; 4+ messages in thread
From: kernel test robot @ 2024-12-26 19:40 UTC (permalink / raw)
To: Suren Baghdasaryan, akpm
Cc: llvm, oe-kbuild-all, peterz, willy, liam.howlett, lorenzo.stoakes,
mhocko, vbabka, hannes, mjguzik, oliver.sang, mgorman, david,
peterx, oleg, dave, paulmck, brauner, dhowells, hdanton, hughd,
lokeshgidra, minchan, jannh, shakeel.butt, souravpanda,
pasha.tatashin, klarasmodin, corbet, linux-doc, linux-mm
Hi Suren,
kernel test robot noticed the following build errors:
[auto build test ERROR on 431614f1580a03c1a653340c55ea76bd12a9403f]
url: https://github.com/intel-lab-lkp/linux/commits/Suren-Baghdasaryan/mm-introduce-vma_start_read_locked-_nested-helpers/20241227-010925
base: 431614f1580a03c1a653340c55ea76bd12a9403f
patch link: https://lore.kernel.org/r/20241226170710.1159679-14-surenb%40google.com
patch subject: [PATCH v7 13/17] mm/debug: print vm_refcnt state when dumping the vma
config: hexagon-randconfig-002-20241227 (https://download.01.org/0day-ci/archive/20241227/202412270328.HiJX1mRt-lkp@intel.com/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241227/202412270328.HiJX1mRt-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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202412270328.HiJX1mRt-lkp@intel.com/
All errors (new ones prefixed by >>):
>> mm/debug.c:189:54: error: no member named 'vm_refcnt' in 'struct vm_area_struct'
189 | vma->vm_flags, &vma->vm_flags, refcount_read(&vma->vm_refcnt));
| ~~~ ^
include/linux/printk.h:514:35: note: expanded from macro 'pr_emerg'
514 | printk(KERN_EMERG pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~~
include/linux/printk.h:501:60: note: expanded from macro 'printk'
501 | #define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__)
| ^~~~~~~~~~~
include/linux/printk.h:473:19: note: expanded from macro 'printk_index_wrap'
473 | _p_func(_fmt, ##__VA_ARGS__); \
| ^~~~~~~~~~~
1 error generated.
vim +189 mm/debug.c
178
179 void dump_vma(const struct vm_area_struct *vma)
180 {
181 pr_emerg("vma %px start %px end %px mm %px\n"
182 "prot %lx anon_vma %px vm_ops %px\n"
183 "pgoff %lx file %px private_data %px\n"
184 "flags: %#lx(%pGv) refcnt %x\n",
185 vma, (void *)vma->vm_start, (void *)vma->vm_end, vma->vm_mm,
186 (unsigned long)pgprot_val(vma->vm_page_prot),
187 vma->anon_vma, vma->vm_ops, vma->vm_pgoff,
188 vma->vm_file, vma->vm_private_data,
> 189 vma->vm_flags, &vma->vm_flags, refcount_read(&vma->vm_refcnt));
190 }
191 EXPORT_SYMBOL(dump_vma);
192
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v7 13/17] mm/debug: print vm_refcnt state when dumping the vma
2024-12-26 19:40 ` [PATCH v7 13/17] mm/debug: print vm_refcnt state when dumping the vma kernel test robot
@ 2024-12-26 19:51 ` Suren Baghdasaryan
2024-12-26 19:54 ` Suren Baghdasaryan
0 siblings, 1 reply; 4+ messages in thread
From: Suren Baghdasaryan @ 2024-12-26 19:51 UTC (permalink / raw)
To: kernel test robot
Cc: akpm, llvm, oe-kbuild-all, peterz, willy, liam.howlett,
lorenzo.stoakes, mhocko, vbabka, hannes, mjguzik, oliver.sang,
mgorman, david, peterx, oleg, dave, paulmck, brauner, dhowells,
hdanton, hughd, lokeshgidra, minchan, jannh, shakeel.butt,
souravpanda, pasha.tatashin, klarasmodin, corbet, linux-doc,
linux-mm
On Thu, Dec 26, 2024 at 11:41 AM kernel test robot <lkp@intel.com> wrote:
>
> Hi Suren,
>
> kernel test robot noticed the following build errors:
>
> [auto build test ERROR on 431614f1580a03c1a653340c55ea76bd12a9403f]
>
> url: https://github.com/intel-lab-lkp/linux/commits/Suren-Baghdasaryan/mm-introduce-vma_start_read_locked-_nested-helpers/20241227-010925
> base: 431614f1580a03c1a653340c55ea76bd12a9403f
> patch link: https://lore.kernel.org/r/20241226170710.1159679-14-surenb%40google.com
> patch subject: [PATCH v7 13/17] mm/debug: print vm_refcnt state when dumping the vma
> config: hexagon-randconfig-002-20241227 (https://download.01.org/0day-ci/archive/20241227/202412270328.HiJX1mRt-lkp@intel.com/config)
> compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241227/202412270328.HiJX1mRt-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 <lkp@intel.com>
> | Closes: https://lore.kernel.org/oe-kbuild-all/202412270328.HiJX1mRt-lkp@intel.com/
>
> All errors (new ones prefixed by >>):
>
> >> mm/debug.c:189:54: error: no member named 'vm_refcnt' in 'struct vm_area_struct'
Ugh, ok. On architectures with ARCH_SUPPORTS_PER_VMA_LOCK=n this will
happen. Preparing a fix.
> 189 | vma->vm_flags, &vma->vm_flags, refcount_read(&vma->vm_refcnt));
> | ~~~ ^
> include/linux/printk.h:514:35: note: expanded from macro 'pr_emerg'
> 514 | printk(KERN_EMERG pr_fmt(fmt), ##__VA_ARGS__)
> | ^~~~~~~~~~~
> include/linux/printk.h:501:60: note: expanded from macro 'printk'
> 501 | #define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__)
> | ^~~~~~~~~~~
> include/linux/printk.h:473:19: note: expanded from macro 'printk_index_wrap'
> 473 | _p_func(_fmt, ##__VA_ARGS__); \
> | ^~~~~~~~~~~
> 1 error generated.
>
>
> vim +189 mm/debug.c
>
> 178
> 179 void dump_vma(const struct vm_area_struct *vma)
> 180 {
> 181 pr_emerg("vma %px start %px end %px mm %px\n"
> 182 "prot %lx anon_vma %px vm_ops %px\n"
> 183 "pgoff %lx file %px private_data %px\n"
> 184 "flags: %#lx(%pGv) refcnt %x\n",
> 185 vma, (void *)vma->vm_start, (void *)vma->vm_end, vma->vm_mm,
> 186 (unsigned long)pgprot_val(vma->vm_page_prot),
> 187 vma->anon_vma, vma->vm_ops, vma->vm_pgoff,
> 188 vma->vm_file, vma->vm_private_data,
> > 189 vma->vm_flags, &vma->vm_flags, refcount_read(&vma->vm_refcnt));
> 190 }
> 191 EXPORT_SYMBOL(dump_vma);
> 192
>
> --
> 0-DAY CI Kernel Test Service
> https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v7 13/17] mm/debug: print vm_refcnt state when dumping the vma
2024-12-26 19:51 ` Suren Baghdasaryan
@ 2024-12-26 19:54 ` Suren Baghdasaryan
2024-12-26 20:04 ` Suren Baghdasaryan
0 siblings, 1 reply; 4+ messages in thread
From: Suren Baghdasaryan @ 2024-12-26 19:54 UTC (permalink / raw)
To: kernel test robot
Cc: akpm, llvm, oe-kbuild-all, peterz, willy, liam.howlett,
lorenzo.stoakes, mhocko, vbabka, hannes, mjguzik, oliver.sang,
mgorman, david, peterx, oleg, dave, paulmck, brauner, dhowells,
hdanton, hughd, lokeshgidra, minchan, jannh, shakeel.butt,
souravpanda, pasha.tatashin, klarasmodin, corbet, linux-doc,
linux-mm
On Thu, Dec 26, 2024 at 11:51 AM Suren Baghdasaryan <surenb@google.com> wrote:
>
> On Thu, Dec 26, 2024 at 11:41 AM kernel test robot <lkp@intel.com> wrote:
> >
> > Hi Suren,
> >
> > kernel test robot noticed the following build errors:
> >
> > [auto build test ERROR on 431614f1580a03c1a653340c55ea76bd12a9403f]
> >
> > url: https://github.com/intel-lab-lkp/linux/commits/Suren-Baghdasaryan/mm-introduce-vma_start_read_locked-_nested-helpers/20241227-010925
> > base: 431614f1580a03c1a653340c55ea76bd12a9403f
> > patch link: https://lore.kernel.org/r/20241226170710.1159679-14-surenb%40google.com
> > patch subject: [PATCH v7 13/17] mm/debug: print vm_refcnt state when dumping the vma
> > config: hexagon-randconfig-002-20241227 (https://download.01.org/0day-ci/archive/20241227/202412270328.HiJX1mRt-lkp@intel.com/config)
> > compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
> > reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241227/202412270328.HiJX1mRt-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 <lkp@intel.com>
> > | Closes: https://lore.kernel.org/oe-kbuild-all/202412270328.HiJX1mRt-lkp@intel.com/
> >
> > All errors (new ones prefixed by >>):
> >
> > >> mm/debug.c:189:54: error: no member named 'vm_refcnt' in 'struct vm_area_struct'
>
> Ugh, ok. On architectures with ARCH_SUPPORTS_PER_VMA_LOCK=n this will
> happen. Preparing a fix.
This error actually also requires CONFIG_DEBUG_VM=y.
>
> > 189 | vma->vm_flags, &vma->vm_flags, refcount_read(&vma->vm_refcnt));
> > | ~~~ ^
> > include/linux/printk.h:514:35: note: expanded from macro 'pr_emerg'
> > 514 | printk(KERN_EMERG pr_fmt(fmt), ##__VA_ARGS__)
> > | ^~~~~~~~~~~
> > include/linux/printk.h:501:60: note: expanded from macro 'printk'
> > 501 | #define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__)
> > | ^~~~~~~~~~~
> > include/linux/printk.h:473:19: note: expanded from macro 'printk_index_wrap'
> > 473 | _p_func(_fmt, ##__VA_ARGS__); \
> > | ^~~~~~~~~~~
> > 1 error generated.
> >
> >
> > vim +189 mm/debug.c
> >
> > 178
> > 179 void dump_vma(const struct vm_area_struct *vma)
> > 180 {
> > 181 pr_emerg("vma %px start %px end %px mm %px\n"
> > 182 "prot %lx anon_vma %px vm_ops %px\n"
> > 183 "pgoff %lx file %px private_data %px\n"
> > 184 "flags: %#lx(%pGv) refcnt %x\n",
> > 185 vma, (void *)vma->vm_start, (void *)vma->vm_end, vma->vm_mm,
> > 186 (unsigned long)pgprot_val(vma->vm_page_prot),
> > 187 vma->anon_vma, vma->vm_ops, vma->vm_pgoff,
> > 188 vma->vm_file, vma->vm_private_data,
> > > 189 vma->vm_flags, &vma->vm_flags, refcount_read(&vma->vm_refcnt));
> > 190 }
> > 191 EXPORT_SYMBOL(dump_vma);
> > 192
> >
> > --
> > 0-DAY CI Kernel Test Service
> > https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v7 13/17] mm/debug: print vm_refcnt state when dumping the vma
2024-12-26 19:54 ` Suren Baghdasaryan
@ 2024-12-26 20:04 ` Suren Baghdasaryan
0 siblings, 0 replies; 4+ messages in thread
From: Suren Baghdasaryan @ 2024-12-26 20:04 UTC (permalink / raw)
To: kernel test robot
Cc: akpm, llvm, oe-kbuild-all, peterz, willy, liam.howlett,
lorenzo.stoakes, mhocko, vbabka, hannes, mjguzik, oliver.sang,
mgorman, david, peterx, oleg, dave, paulmck, brauner, dhowells,
hdanton, hughd, lokeshgidra, minchan, jannh, shakeel.butt,
souravpanda, pasha.tatashin, klarasmodin, corbet, linux-doc,
linux-mm
On Thu, Dec 26, 2024 at 11:54 AM Suren Baghdasaryan <surenb@google.com> wrote:
>
> On Thu, Dec 26, 2024 at 11:51 AM Suren Baghdasaryan <surenb@google.com> wrote:
> >
> > On Thu, Dec 26, 2024 at 11:41 AM kernel test robot <lkp@intel.com> wrote:
> > >
> > > Hi Suren,
> > >
> > > kernel test robot noticed the following build errors:
> > >
> > > [auto build test ERROR on 431614f1580a03c1a653340c55ea76bd12a9403f]
> > >
> > > url: https://github.com/intel-lab-lkp/linux/commits/Suren-Baghdasaryan/mm-introduce-vma_start_read_locked-_nested-helpers/20241227-010925
> > > base: 431614f1580a03c1a653340c55ea76bd12a9403f
> > > patch link: https://lore.kernel.org/r/20241226170710.1159679-14-surenb%40google.com
> > > patch subject: [PATCH v7 13/17] mm/debug: print vm_refcnt state when dumping the vma
> > > config: hexagon-randconfig-002-20241227 (https://download.01.org/0day-ci/archive/20241227/202412270328.HiJX1mRt-lkp@intel.com/config)
> > > compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
> > > reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241227/202412270328.HiJX1mRt-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 <lkp@intel.com>
> > > | Closes: https://lore.kernel.org/oe-kbuild-all/202412270328.HiJX1mRt-lkp@intel.com/
> > >
> > > All errors (new ones prefixed by >>):
> > >
> > > >> mm/debug.c:189:54: error: no member named 'vm_refcnt' in 'struct vm_area_struct'
> >
> > Ugh, ok. On architectures with ARCH_SUPPORTS_PER_VMA_LOCK=n this will
> > happen. Preparing a fix.
>
> This error actually also requires CONFIG_DEBUG_VM=y.
Fixup posted at
https://lore.kernel.org/all/20241226200335.1250078-1-surenb@google.com/
>
> >
> > > 189 | vma->vm_flags, &vma->vm_flags, refcount_read(&vma->vm_refcnt));
> > > | ~~~ ^
> > > include/linux/printk.h:514:35: note: expanded from macro 'pr_emerg'
> > > 514 | printk(KERN_EMERG pr_fmt(fmt), ##__VA_ARGS__)
> > > | ^~~~~~~~~~~
> > > include/linux/printk.h:501:60: note: expanded from macro 'printk'
> > > 501 | #define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__)
> > > | ^~~~~~~~~~~
> > > include/linux/printk.h:473:19: note: expanded from macro 'printk_index_wrap'
> > > 473 | _p_func(_fmt, ##__VA_ARGS__); \
> > > | ^~~~~~~~~~~
> > > 1 error generated.
> > >
> > >
> > > vim +189 mm/debug.c
> > >
> > > 178
> > > 179 void dump_vma(const struct vm_area_struct *vma)
> > > 180 {
> > > 181 pr_emerg("vma %px start %px end %px mm %px\n"
> > > 182 "prot %lx anon_vma %px vm_ops %px\n"
> > > 183 "pgoff %lx file %px private_data %px\n"
> > > 184 "flags: %#lx(%pGv) refcnt %x\n",
> > > 185 vma, (void *)vma->vm_start, (void *)vma->vm_end, vma->vm_mm,
> > > 186 (unsigned long)pgprot_val(vma->vm_page_prot),
> > > 187 vma->anon_vma, vma->vm_ops, vma->vm_pgoff,
> > > 188 vma->vm_file, vma->vm_private_data,
> > > > 189 vma->vm_flags, &vma->vm_flags, refcount_read(&vma->vm_refcnt));
> > > 190 }
> > > 191 EXPORT_SYMBOL(dump_vma);
> > > 192
> > >
> > > --
> > > 0-DAY CI Kernel Test Service
> > > https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-12-26 20:04 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20241226170710.1159679-14-surenb@google.com>
2024-12-26 19:40 ` [PATCH v7 13/17] mm/debug: print vm_refcnt state when dumping the vma kernel test robot
2024-12-26 19:51 ` Suren Baghdasaryan
2024-12-26 19:54 ` Suren Baghdasaryan
2024-12-26 20:04 ` Suren Baghdasaryan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox