linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Nathan Chancellor <nathan@kernel.org>
To: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Heiko Carstens <hca@linux.ibm.com>,
	Andrew Morton <akpm@linux-foundation.org>,
	linux-kernel@vger.kernel.org,
	"Paul E. McKenney" <paulmck@kernel.org>,
	Steven Rostedt <rostedt@goodmis.org>,
	Masami Hiramatsu <mhiramat@kernel.org>,
	Dennis Zhou <dennis@kernel.org>, Tejun Heo <tj@kernel.org>,
	Christoph Lameter <cl@linux.com>,
	Martin Liu <liumartin@google.com>,
	David Rientjes <rientjes@google.com>,
	christian.koenig@amd.com, Shakeel Butt <shakeel.butt@linux.dev>,
	SeongJae Park <sj@kernel.org>, Michal Hocko <mhocko@suse.com>,
	Johannes Weiner <hannes@cmpxchg.org>,
	Sweet Tea Dorminy <sweettea-kernel@dorminy.me>,
	Lorenzo Stoakes <lorenzo.stoakes@oracle.com>,
	"Liam R . Howlett" <liam.howlett@oracle.com>,
	Mike Rapoport <rppt@kernel.org>,
	Suren Baghdasaryan <surenb@google.com>,
	Vlastimil Babka <vbabka@suse.cz>,
	Christian Brauner <brauner@kernel.org>,
	Wei Yang <richard.weiyang@gmail.com>,
	David Hildenbrand <david@redhat.com>,
	Miaohe Lin <linmiaohe@huawei.com>,
	Al Viro <viro@zeniv.linux.org.uk>,
	linux-mm@kvack.org, linux-trace-kernel@vger.kernel.org,
	Yu Zhao <yuzhao@google.com>,
	Roman Gushchin <roman.gushchin@linux.dev>,
	Mateusz Guzik <mjguzik@gmail.com>,
	Matthew Wilcox <willy@infradead.org>,
	Baolin Wang <baolin.wang@linux.alibaba.com>,
	Aboorva Devarajan <aboorvad@linux.ibm.com>,
	Vasily Gorbik <gor@linux.ibm.com>,
	linux-s390@vger.kernel.org
Subject: Re: [PATCH v17 0/3] Improve proc RSS accuracy
Date: Thu, 26 Feb 2026 18:12:01 -0700	[thread overview]
Message-ID: <20260227011201.GA1577380@ax162> (raw)
In-Reply-To: <73e6fea9-caf2-4404-b511-11646013f8db@efficios.com>

Hi Mathieu,

On Thu, Feb 26, 2026 at 02:38:04PM -0500, Mathieu Desnoyers wrote:
> I've successfully booted a defconfig s390x next-20260226 kernel in qemu
> with 1 and 4 CPUs, and within a nested s390x VM on 2 cpus.
> 
> I guess I'll really need more info about your specific .config and
> command line args to help further.

FWIW, the ClangBuiltLinux CI sees a boot failure with sparc64_defconfig,
which does not appear to be clang specific. I can reproduce it here
with:

  $ make -skj"$(nproc)" ARCH=sparc CROSS_COMPILE=sparc64-linux- mrproper sparc64_defconfig image

  $ curl -LSs https://github.com/ClangBuiltLinux/boot-utils/releases/download/20241120-044434/sparc64-rootfs.cpio.zst | zstd -d >rootfs.cpio

  $ qemu-system-sparc64 \
      -display none \
      -nodefaults \
      -M sun4u \
      -cpu 'TI UltraSparc IIi' \
      -append console=ttyS0 \
      -kernel arch/sparc/boot/image \
      -initrd rootfs.cpio \
      -m 1G \
      -serial mon:stdio
  ...
  [    0.001502] Linux version 7.0.0-rc1+ (nathan@framework-amd-ryzen-maxplus-395) (sparc64-linux-gcc (GCC) 15.2.0, GNU ld (GNU Binutils) 2.45) #1 SMP Thu Feb 26 18:00:08 MST 2026
  ...
  [    1.339282] Run /init as init process
  [    1.340037] Unable to handle kernel NULL pointer dereference
  [    1.340515] tsk->{mm,active_mm}->context = 0000000000000000
  [    1.340684] tsk->{mm,active_mm}->pgd = fffff80000402000
  [    1.340838]               \|/ ____ \|/
  [    1.340838]               "@'/ .. \`@"
  [    1.340838]               /_| \__/ |_\
  [    1.340838]                  \__U_/
  [    1.341260] swapper/0(1): Oops [#1]
  [    1.341575] CPU: 0 UID: 0 PID: 1 Comm: swapper/0 Not tainted 7.0.0-rc1+ #1 VOLUNTARY
  [    1.341937] TSTATE: 0000004411001606 TPC: 0000000000465674 TNPC: 0000000000465678 Y: 00000021    Not tainted
  [    1.342199] TPC: <init_new_context+0x14/0xc0>
  [    1.342584] g0: 0000000000000000 g1: 0000000000000000 g2: 0000000000000000 g3: 0000000000000000
  [    1.342815] g4: fffff80004170000 g5: fffff8003e1d2000 g6: fffff80004134000 g7: fffff8003f814598
  [    1.343047] o0: fffff8000479c0a0 o1: 0000000000000000 o2: 0000000000002000 o3: 0000000000000000
  [    1.343276] o4: fffff80004621200 o5: fffff80004006e00 sp: fffff80004137331 ret_pc: 000000000062a520
  [    1.343513] RPC: <kmem_cache_alloc_noprof+0x1c0/0x560>
  [    1.343681] l0: ffffffffffffffff l1: 0000000000000000 l2: 0000000000000001 l3: 0000000000000000
  [    1.343917] l4: 000000004fd6805e l5: 0000000001503c00 l6: 0000000001423800 l7: 0000000000000012
  [    1.344144] i0: fffff80004170000 i1: fffff8000479c0a0 i2: 0000000000472030 i3: 000000000180ac00
  [    1.344371] i4: 0000000000000000 i5: fffff8000400b500 i6: fffff800041373e1 i7: 0000000000472044
  [    1.344601] I7: <mm_init.isra.0+0x144/0x1e0>
  [    1.344751] Call Trace:
  [    1.344871] [<0000000000472044>] mm_init.isra.0+0x144/0x1e0
  [    1.345054] [<00000000006602ec>] alloc_bprm+0xcc/0x1e0
  [    1.345195] [<0000000000660e6c>] kernel_execve+0x2c/0x1c0
  [    1.345345] [<0000000000be4060>] kernel_init+0x70/0x128
  [    1.345496] [<00000000004060f0>] ret_from_fork+0x24/0x34
  [    1.345652] [<0000000000000000>] 0x0
  [    1.345823] Disabling lock debugging due to kernel taint
  [    1.346046] Caller[0000000000472044]: mm_init.isra.0+0x144/0x1e0
  [    1.346229] Caller[00000000006602ec]: alloc_bprm+0xcc/0x1e0
  [    1.346388] Caller[0000000000660e6c]: kernel_execve+0x2c/0x1c0
  [    1.346553] Caller[0000000000be4060]: kernel_init+0x70/0x128
  [    1.346707] Caller[00000000004060f0]: ret_from_fork+0x24/0x34
  [    1.346864] Caller[0000000000000000]: 0x0
  [    1.346985] Instruction DUMP:
  [    1.347007]  92102000
  [    1.347135]  90100019
  [    1.347204]  f85e6490
  [    1.347281] <c6588000>
  [    1.347349]  c25e6388
  [    1.347416]  fa5e6488
  [    1.347485]  82004003
  [    1.347552]  c65e63c0
  [    1.347619]  83784c00
  [    1.347689]
  [    1.348041] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000009
  [    1.348649] Press Stop-A (L1-A) from sun keyboard or send break
  [    1.348649] twice on console to return to the boot prom
  [    1.348940] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000009 ]---

This series is not bisectable to see which specific patch causes this,
as I get

  In file included from mm/init-mm.c:2:
  include/linux/mm_types.h:1419:57: error: 'PERCPU_COUNTER_TREE_ITEMS_STATIC_SIZE' undeclared here (not in a function)
   1419 |         [0 ... sizeof(cpumask_t) + MM_CID_STATIC_SIZE + PERCPU_COUNTER_TREE_ITEMS_STATIC_SIZE. - 1] = 0  \
        |                                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  mm/init-mm.c:50:27: note: in expansion of macro 'MM_STRUCT_FLEXIBLE_ARRAY_INIT'
     50 |         .flexible_array = MM_STRUCT_FLEXIBLE_ARRAY_INIT,
        |                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  include/linux/mm_types.h:1419:10: error: array index in initializer not of integer type
   1419 |         [0 ... sizeof(cpumask_t) + MM_CID_STATIC_SIZE + PERCPU_COUNTER_TREE_ITEMS_STATIC_SIZE - 1] = 0  \
        |          ^
  mm/init-mm.c:50:27: note: in expansion of macro 'MM_STRUCT_FLEXIBLE_ARRAY_INIT'
     50 |         .flexible_array = MM_STRUCT_FLEXIBLE_ARRAY_INIT,
        |                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  include/linux/mm_types.h:1419:10: note: (near initialization for 'init_mm.flexible_array')
   1419 |         [0 ... sizeof(cpumask_t) + MM_CID_STATIC_SIZE + PERCPU_COUNTER_TREE_ITEMS_STATIC_SIZE - 1] = 0  \
        |          ^
  mm/init-mm.c:50:27: note: in expansion of macro 'MM_STRUCT_FLEXIBLE_ARRAY_INIT'
     50 |         .flexible_array = MM_STRUCT_FLEXIBLE_ARRAY_INIT,
        |                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

prior to this change that removes PERCPU_COUNTER_TREE_ITEMS_STATIC_SIZE.

Cheers,
Nathan


  reply	other threads:[~2026-02-27  1:12 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-17 16:10 Mathieu Desnoyers
2026-02-17 16:10 ` [PATCH v17 1/3] lib: Introduce hierarchical per-cpu counters Mathieu Desnoyers
2026-02-17 16:10 ` [PATCH v17 2/3] lib: Test " Mathieu Desnoyers
2026-02-17 16:10 ` [PATCH v17 3/3] mm: Improve RSS counter approximation accuracy for proc interfaces Mathieu Desnoyers
2026-02-26 12:04 ` [PATCH v17 0/3] Improve proc RSS accuracy Heiko Carstens
2026-02-26 15:00   ` Mathieu Desnoyers
2026-02-26 15:42     ` Mathieu Desnoyers
2026-02-26 19:38       ` Mathieu Desnoyers
2026-02-27  1:12         ` Nathan Chancellor [this message]
2026-02-27 13:11           ` Heiko Carstens
2026-02-27 13:25             ` Mathieu Desnoyers
2026-02-27 13:39           ` Mathieu Desnoyers
2026-02-26 16:51   ` Andrew Morton

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=20260227011201.GA1577380@ax162 \
    --to=nathan@kernel.org \
    --cc=aboorvad@linux.ibm.com \
    --cc=akpm@linux-foundation.org \
    --cc=baolin.wang@linux.alibaba.com \
    --cc=brauner@kernel.org \
    --cc=christian.koenig@amd.com \
    --cc=cl@linux.com \
    --cc=david@redhat.com \
    --cc=dennis@kernel.org \
    --cc=gor@linux.ibm.com \
    --cc=hannes@cmpxchg.org \
    --cc=hca@linux.ibm.com \
    --cc=liam.howlett@oracle.com \
    --cc=linmiaohe@huawei.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=linux-s390@vger.kernel.org \
    --cc=linux-trace-kernel@vger.kernel.org \
    --cc=liumartin@google.com \
    --cc=lorenzo.stoakes@oracle.com \
    --cc=mathieu.desnoyers@efficios.com \
    --cc=mhiramat@kernel.org \
    --cc=mhocko@suse.com \
    --cc=mjguzik@gmail.com \
    --cc=paulmck@kernel.org \
    --cc=richard.weiyang@gmail.com \
    --cc=rientjes@google.com \
    --cc=roman.gushchin@linux.dev \
    --cc=rostedt@goodmis.org \
    --cc=rppt@kernel.org \
    --cc=shakeel.butt@linux.dev \
    --cc=sj@kernel.org \
    --cc=surenb@google.com \
    --cc=sweettea-kernel@dorminy.me \
    --cc=tj@kernel.org \
    --cc=vbabka@suse.cz \
    --cc=viro@zeniv.linux.org.uk \
    --cc=willy@infradead.org \
    --cc=yuzhao@google.com \
    /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