From: "Arnd Bergmann" <arnd@arndb.de>
To: "Dave Hansen" <dave.hansen@intel.com>,
"Andrew Morton" <akpm@linux-foundation.org>,
"Peter Zijlstra" <peterz@infradead.org>
Cc: "kernel test robot" <yi1.lai@intel.com>,
oe-lkp@lists.linux.dev, "kernel test robot" <lkp@intel.com>,
linux-kernel@vger.kernel.org,
"Finn Thain" <fthain@linux-m68k.org>,
"Geert Uytterhoeven" <geert@linux-m68k.org>,
"Sasha Levin" <sashal@kernel.org>,
"Thomas Gleixner" <tglx@linutronix.de>,
"Ingo Molnar" <mingo@redhat.com>,
"Borislav Petkov" <bp@alien8.de>,
"Dave Hansen" <dave.hansen@linux.intel.com>,
"Ard Biesheuvel" <ardb@kernel.org>,
"H. Peter Anvin" <hpa@zytor.com>,
"Alexei Starovoitov" <ast@kernel.org>,
"Andrii Nakryiko" <andrii@kernel.org>,
"Boqun Feng" <boqun.feng@gmail.com>,
"Daniel Borkmann" <daniel@iogearbox.net>,
"Dinh Nguyen" <dinguyen@kernel.org>,
"Eduard Zingerman" <eddyz87@gmail.com>,
"Gary Guo" <gary@garyguo.net>, guoren <guoren@kernel.org>,
"Hao Luo" <haoluo@google.com>, "Jiri Olsa" <jolsa@kernel.org>,
"John Fastabend" <john.fastabend@gmail.com>,
"John Paul Adrian Glaubitz" <glaubitz@physik.fu-berlin.de>,
"Jonas Bonn" <jonas@southpole.se>,
"KP Singh" <kpsingh@kernel.org>,
"Mark Rutland" <mark.rutland@arm.com>,
"Martin KaFai Lau" <martin.lau@linux.dev>,
"Rich Felker" <dalias@libc.org>, "Song Liu" <song@kernel.org>,
"Stafford Horne" <shorne@gmail.com>,
"Stanislav Fomichev" <sdf@fomichev.me>,
"Stefan Kristiansson" <stefan.kristiansson@saunalahti.fi>,
"Will Deacon" <will@kernel.org>,
"Yonghong Song" <yonghong.song@linux.dev>,
"Yoshinori Sato" <ysato@users.sourceforge.jp>,
"David Hildenbrand (Red Hat)" <david@kernel.org>,
"Liam R. Howlett" <liam@infradead.org>,
"Kirill A. Shutemov" <kas@kernel.org>
Subject: Re: [linus:master] [atomic] 80047d84ee: WARNING:at_include/linux/instrumented.h:#__split_huge_pmd_locked
Date: Tue, 03 Nov 2026 17:51:00 +0100 [thread overview]
Message-ID: <e5b82b14-3d86-496e-ba7a-68e028c2da44@app.fastmail.com> (raw)
In-Reply-To: <3bf3f477-a048-457b-8032-43d8d1451e9e@intel.com>
On Tue, Nov 3, 2026, at 17:29, Dave Hansen wrote:
> On 11/3/26 07:43, Andrew Morton wrote:
>
> Heh, same code. Same basic problem. Two different detectors firing.
>
> But I also kinda feel like shooting the messenger on this one. The
> warnings are presumably to help us with performance problems. This is
> old, legacy code that nobody cares about running fast. So they're not
> actually helpful here. I don't think it's the craziest thing, at least
> on x86_32, to just turn the warnings off.
>
> Also, if there are plans to get all the pmd_t's off the stack, maybe we
> should just manually align them for now.
I would still prefer to align the types than the objects, if only
for the reason that the interfaces that operate on the type clearly
expect it to be aligned.
> It wouldn't hurt to make the definitions uglier like:
>
> #define pxx_xchg64(_pxx, _ptr, _val) ({
> _pxx##val_t *_p = (_pxx##val_t *)_ptr;
> - _pxx##val_t _o = *_p;
> + _pxx##val_t _o __aligned(sizeof(_pxx##val_t)) = *_p;
> do { } while (!try_cmpxchg64(_p, &_o, (_val)));
> native_make_##_pxx(_o);
> })
I initially misread the code the same way. However, the warning
here is about _p being misaligned, not &_o, so Sasha's patch
would be the one that aligns the objects.
Arnd
next prev parent reply other threads:[~2026-11-03 16:51 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-03 0:58 kernel test robot
2026-11-03 9:46 ` Finn Thain
2026-11-03 12:18 ` Arnd Bergmann
2026-11-03 12:26 ` Peter Zijlstra
2026-11-03 12:35 ` Sasha Levin
2026-11-03 12:56 ` Peter Zijlstra
2026-11-03 13:13 ` Arnd Bergmann
2026-11-03 13:41 ` Arnd Bergmann
2026-11-03 14:52 ` Peter Zijlstra
2026-11-03 15:43 ` Andrew Morton
2026-11-03 15:58 ` David Hildenbrand (Arm)
2026-11-03 16:29 ` Dave Hansen
2026-11-03 16:51 ` Arnd Bergmann [this message]
2026-11-03 18:30 ` Dave Hansen
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=e5b82b14-3d86-496e-ba7a-68e028c2da44@app.fastmail.com \
--to=arnd@arndb.de \
--cc=akpm@linux-foundation.org \
--cc=andrii@kernel.org \
--cc=ardb@kernel.org \
--cc=ast@kernel.org \
--cc=boqun.feng@gmail.com \
--cc=bp@alien8.de \
--cc=dalias@libc.org \
--cc=daniel@iogearbox.net \
--cc=dave.hansen@intel.com \
--cc=dave.hansen@linux.intel.com \
--cc=david@kernel.org \
--cc=dinguyen@kernel.org \
--cc=eddyz87@gmail.com \
--cc=fthain@linux-m68k.org \
--cc=gary@garyguo.net \
--cc=geert@linux-m68k.org \
--cc=glaubitz@physik.fu-berlin.de \
--cc=guoren@kernel.org \
--cc=haoluo@google.com \
--cc=hpa@zytor.com \
--cc=john.fastabend@gmail.com \
--cc=jolsa@kernel.org \
--cc=jonas@southpole.se \
--cc=kas@kernel.org \
--cc=kpsingh@kernel.org \
--cc=liam@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lkp@intel.com \
--cc=mark.rutland@arm.com \
--cc=martin.lau@linux.dev \
--cc=mingo@redhat.com \
--cc=oe-lkp@lists.linux.dev \
--cc=peterz@infradead.org \
--cc=sashal@kernel.org \
--cc=sdf@fomichev.me \
--cc=shorne@gmail.com \
--cc=song@kernel.org \
--cc=stefan.kristiansson@saunalahti.fi \
--cc=tglx@linutronix.de \
--cc=will@kernel.org \
--cc=yi1.lai@intel.com \
--cc=yonghong.song@linux.dev \
--cc=ysato@users.sourceforge.jp \
/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
all inboxes | Powered by JetHome®