Linux PARISC architecture development
 help / color / mirror / Atom feed
From: John David Anglin <dave.anglin@bell.net>
To: Sam James <sam@gentoo.org>, linux-parisc@vger.kernel.org
Cc: hppa@gentoo.org
Subject: Re: Recurring INEQUIVALENT ALIASES issues and userland corruption/crashes
Date: Sat, 23 Apr 2022 16:33:54 -0400	[thread overview]
Message-ID: <cf860bf1-239d-bb14-4d7a-0f478c10e05f@bell.net> (raw)
In-Reply-To: <f2ad1439-f304-e6ae-6e4e-b9fda73ec4cd@bell.net>

On 2022-04-05 5:13 p.m., John David Anglin wrote:
> On 2022-03-22 1:52 p.m., Sam James wrote:
>> In Gentoo, we've just got our hands on an RP3440 (PA8800) which seems to quite easily hit inequivalent aliasing issues.
>>
>> We've found that under some workloads, the machine copes fine, none of that appears in dmesg, and all is well - even for
>> over a week. But as soon as we start other workloads (the problematic one is building "stages" -- release media for Gentoo),
>> within 30m or so, the machine is in a broken state, with these messages flooding dmesg:
>> ```
>> Mar 22 04:19:55 muta.hppa.dev.gentoo.org kernel: INEQUIVALENT ALIASES 0x42994000 and 0x426e1000 in file bash
>> Mar 22 04:19:55 muta.hppa.dev.gentoo.org kernel: INEQUIVALENT ALIASES 0x426e1000 and 0x41b56000 in file bash
>> Mar 22 04:19:55 muta.hppa.dev.gentoo.org kernel: INEQUIVALENT ALIASES 0x41b56000 and 0x41aae000 in file bash
>> Mar 22 04:19:55 muta.hppa.dev.gentoo.org kernel: INEQUIVALENT ALIASES 0x41aae000 and 0x42774000 in file bash
>> Mar 22 04:19:55 muta.hppa.dev.gentoo.org kernel: INEQUIVALENT ALIASES 0x42774000 and 0x41202000 in file bash
>> Mar 22 04:19:55 muta.hppa.dev.gentoo.org kernel: INEQUIVALENT ALIASES 0x41202000 and 0x428dd000 in file bash
>> Mar 22 04:19:55 muta.hppa.dev.gentoo.org kernel: INEQUIVALENT ALIASES 0x41e2c000 and 0x418f6000 in file bash
>> Mar 22 04:19:55 muta.hppa.dev.gentoo.org kernel: INEQUIVALENT ALIASES 0x418f6000 and 0x42980000 in file bash
>> Mar 22 04:19:55 muta.hppa.dev.gentoo.org kernel: INEQUIVALENT ALIASES 0x42980000 and 0x426cd000 in file bash
>> Mar 22 04:19:55 muta.hppa.dev.gentoo.org kernel: INEQUIVALENT ALIASES 0x426cd000 and 0x41b42000 in file bash
>> Mar 22 04:19:55 muta.hppa.dev.gentoo.org kernel: INEQUIVALENT ALIASES 0x41b42000 and 0x41a9a000 in file bash
>> Mar 22 04:19:55 muta.hppa.dev.gentoo.org kernel: INEQUIVALENT ALIASES 0x41a9a000 and 0x42760000 in file bash
>> Mar 22 04:19:55 muta.hppa.dev.gentoo.org kernel: INEQUIVALENT ALIASES 0x42760000 and 0x411ee000 in file bash
>> Mar 22 04:19:55 muta.hppa.dev.gentoo.org kernel: INEQUIVALENT ALIASES 0x411ee000 and 0x428c9000 in file bash
>> ```
> It seems all these messages result from a single call to flush_dcache_page.  Note the sequential behavior of old_addr
> and addr, and message times.
I had some messages from systemd:

[ 1738.323997] INEQUIVALENT ALIASES 0x42190000 and 0x4222d000 in file systemd
[ 1738.361116] INEQUIVALENT ALIASES 0x42186000 and 0x42223000 in file systemd
[ 1738.373668] INEQUIVALENT ALIASES 0x4218d000 and 0x4222a000 in file systemd
[ 1738.379494] INEQUIVALENT ALIASES 0x4217f000 and 0x4221c000 in file systemd
[ 1738.392740] INEQUIVALENT ALIASES 0x4217c000 and 0x42219000 in file systemd
[ 1738.394909] INEQUIVALENT ALIASES 0x42199000 and 0x42236000 in file systemd

root@hiauly6:/proc/892# cat maps
42219000-423a2000 r-xp 00000000 08:15 8918492                            /lib/systemd/systemd
423a2000-423c7000 r--p 00189000 08:15 8918492                            /lib/systemd/systemd
423c7000-423d3000 rwxp 001ae000 08:15 8918492                            /lib/systemd/systemd
42523000-4259b000 rwxp 00000000 00:00 0                                  [heap]
f0bfa000-f0c20000 r-xp 00000000 08:15 8913804 /lib/hppa-linux-gnu/libgpg-error.so.0.32.1
f0c20000-f0c21000 rwxp 00026000 08:15 8913804 /lib/hppa-linux-gnu/libgpg-error.so.0.32.1
f0ffa000-f0fff000 r-xp 00000000 08:15 16780132 /usr/lib/hppa-linux-gnu/libattr.so.1.1.2501
f0fff000-f1000000 rwxp 00005000 08:15 16780132 /usr/lib/hppa-linux-gnu/libattr.so.1.1.2501
f13fa000-f1656000 r-xp 00000000 08:15 16782647 /usr/lib/hppa-linux-gnu/libcrypto.so.1.1
f1656000-f1677000 rwxp 0025c000 08:15 16782647 /usr/lib/hppa-linux-gnu/libcrypto.so.1.1
f1677000-f167b000 rwxp 00000000 00:00 0
f17fa000-f17ff000 r-xp 00000000 08:15 8912981 /lib/hppa-linux-gnu/libcap-ng.so.0.0.0
f17ff000-f1800000 r--p 00005000 08:15 8912981 /lib/hppa-linux-gnu/libcap-ng.so.0.0.0
f1800000-f1801000 rwxp 00006000 08:15 8912981 /lib/hppa-linux-gnu/libcap-ng.so.0.0.0
f1bfa000-f1c55000 r-xp 00000000 08:15 16782725 /usr/lib/hppa-linux-gnu/libpcre2-8.so.0.10.4
f1c55000-f1c56000 rwxp 0005b000 08:15 16782725 /usr/lib/hppa-linux-gnu/libpcre2-8.so.0.10.4
f1ffa000-f206f000 r-xp 00000000 08:15 8913179 /lib/hppa-linux-gnu/libm-2.33.so
f206f000-f2070000 r--p 00075000 08:15 8913179 /lib/hppa-linux-gnu/libm-2.33.so
f2070000-f2073000 rwxp 00076000 08:15 8913179 /lib/hppa-linux-gnu/libm-2.33.so
f23fa000-f2423000 r-xp 00000000 08:15 8913216 /lib/hppa-linux-gnu/liblzma.so.5.2.5
f2423000-f2424000 rwxp 00029000 08:15 8913216 /lib/hppa-linux-gnu/liblzma.so.5.2.5
f27fa000-f28d4000 r-xp 00000000 08:15 16780194 /usr/lib/hppa-linux-gnu/libzstd.so.1.5.2
f28d4000-f28d6000 rwxp 000da000 08:15 16780194 /usr/lib/hppa-linux-gnu/libzstd.so.1.5.2
f2bfa000-f2c26000 r-xp 00000000 08:15 16783170 /usr/lib/hppa-linux-gnu/liblz4.so.1.9.3
f2c26000-f2c27000 rwxp 0002c000 08:15 16783170 /usr/lib/hppa-linux-gnu/liblz4.so.1.9.3
f2ffa000-f3001000 r-xp 00000000 08:15 16778902 /usr/lib/hppa-linux-gnu/libip4tc.so.2.0.0
f3001000-f3002000 rwxp 00007000 08:15 16778902 /usr/lib/hppa-linux-gnu/libip4tc.so.2.0.0
f33fa000-f350a000 r-xp 00000000 08:15 16778210 /usr/lib/hppa-linux-gnu/libgcrypt.so.20.4.1
f350a000-f3513000 rwxp 00110000 08:15 16778210 /usr/lib/hppa-linux-gnu/libgcrypt.so.20.4.1
f383d000-f3840000 r-xp 00000000 08:15 8913141 /lib/hppa-linux-gnu/libdl-2.33.so
f3840000-f3841000 r--p 00003000 08:15 8913141 /lib/hppa-linux-gnu/libdl-2.33.so
f3841000-f3842000 rwxp 00004000 08:15 8913141 /lib/hppa-linux-gnu/libdl-2.33.so
f3c3d000-f3c79000 r-xp 00000000 08:15 8913327 /lib/hppa-linux-gnu/libcrypt.so.1.1.0
f3c79000-f3c7a000 r--p 0003c000 08:15 8913327 /lib/hppa-linux-gnu/libcrypt.so.1.1.0
f3c7a000-f3c7b000 rwxp 0003d000 08:15 8913327 /lib/hppa-linux-gnu/libcrypt.so.1.1.0
f3c7b000-f3c83000 rwxp 00000000 00:00 0
f403d000-f4045000 r-xp 00000000 08:15 8913225 /lib/hppa-linux-gnu/libcap.so.2.44
f4045000-f4046000 rwxp 00008000 08:15 8913225 /lib/hppa-linux-gnu/libcap.so.2.44
f443d000-f449a000 r-xp 00000000 08:15 16777505 /usr/lib/hppa-linux-gnu/libblkid.so.1.1.0
f449a000-f449f000 rwxp 0005d000 08:15 16777505 /usr/lib/hppa-linux-gnu/libblkid.so.1.1.0
f483d000-f4846000 r-xp 00000000 08:15 16777796 /usr/lib/hppa-linux-gnu/libacl.so.1.1.2301
f4846000-f4847000 rwxp 00009000 08:15 16777796 /usr/lib/hppa-linux-gnu/libacl.so.1.1.2301
f4c3d000-f4dc1000 r-xp 00000000 08:15 8913099 /lib/hppa-linux-gnu/libc-2.33.so
f4dc1000-f4dc3000 r--p 00184000 08:15 8913099 /lib/hppa-linux-gnu/libc-2.33.so
f4dc3000-f4dc8000 rwxp 00186000 08:15 8913099 /lib/hppa-linux-gnu/libc-2.33.so
f4dc8000-f4dcf000 rwxp 00000000 00:00 0
f503d000-f505e000 r-xp 00000000 08:15 8913780 /lib/hppa-linux-gnu/libpthread-2.33.so
f505e000-f505f000 r--p 00021000 08:15 8913780 /lib/hppa-linux-gnu/libpthread-2.33.so
f505f000-f5060000 rwxp 00022000 08:15 8913780 /lib/hppa-linux-gnu/libpthread-2.33.so
f5060000-f5062000 rwxp 00000000 00:00 0
f543d000-f5452000 r-xp 00000000 08:15 16780912 /usr/lib/hppa-linux-gnu/libapparmor.so.1.8.2
f5452000-f5453000 rwxp 00015000 08:15 16780912 /usr/lib/hppa-linux-gnu/libapparmor.so.1.8.2
f583d000-f5858000 r-xp 00000000 08:15 16778597 /usr/lib/hppa-linux-gnu/libkmod.so.2.3.7
f5858000-f5859000 rwxp 0001b000 08:15 16778597 /usr/lib/hppa-linux-gnu/libkmod.so.2.3.7
f5c3d000-f5c5c000 r-xp 00000000 08:15 8913043 /lib/hppa-linux-gnu/libaudit.so.1.0.0
f5c5c000-f5c5d000 r--p 0001f000 08:15 8913043 /lib/hppa-linux-gnu/libaudit.so.1.0.0
f5c5d000-f5c5e000 rwxp 00020000 08:15 8913043 /lib/hppa-linux-gnu/libaudit.so.1.0.0
f5c5e000-f5c6e000 rwxp 00000000 00:00 0
f603d000-f604c000 r-xp 00000000 08:15 8913380 /lib/hppa-linux-gnu/libpam.so.0.85.1
f604c000-f604d000 rwxp 0000f000 08:15 8913380 /lib/hppa-linux-gnu/libpam.so.0.85.1
f643d000-f64a5000 r-xp 00000000 08:15 16777988 /usr/lib/hppa-linux-gnu/libmount.so.1.1.0
f64a5000-f64a9000 rwxp 00068000 08:15 16777988 /usr/lib/hppa-linux-gnu/libmount.so.1.1.0
f67fa000-f6828000 r-xp 00000000 08:15 8913119 /lib/hppa-linux-gnu/libselinux.so.1
f6828000-f6829000 r--p 0002e000 08:15 8913119 /lib/hppa-linux-gnu/libselinux.so.1
f6829000-f682b000 rwxp 0002f000 08:15 8913119 /lib/hppa-linux-gnu/libselinux.so.1
f682b000-f682c000 rwxp 00000000 00:00 0
f6bfa000-f6c02000 r-xp 00000000 08:15 8913828 /lib/hppa-linux-gnu/librt-2.33.so
f6c02000-f6c03000 r--p 00008000 08:15 8913828 /lib/hppa-linux-gnu/librt-2.33.so
f6c03000-f6c04000 rwxp 00009000 08:15 8913828 /lib/hppa-linux-gnu/librt-2.33.so
f73fa000-f76f3000 r-xp 00000000 08:15 8913458 /lib/systemd/libsystemd-shared-250.so
f76f3000-f76ff000 r--p 002f9000 08:15 8913458 /lib/systemd/libsystemd-shared-250.so
f76ff000-f7714000 rwxp 00305000 08:15 8913458 /lib/systemd/libsystemd-shared-250.so
f7714000-f7715000 rwxp 00000000 00:00 0
f77fa000-f7828000 r-xp 00000000 08:15 8912944                            /lib/hppa-linux-gnu/ld-2.33.so
f7828000-f7829000 r--p 0002e000 08:15 8912944                            /lib/hppa-linux-gnu/ld-2.33.so
f7829000-f782d000 rwxp 0002f000 08:15 8912944                            /lib/hppa-linux-gnu/ld-2.33.so
f7ae5000-f7afb000 rw-p 00000000 00:00 0
f7afb000-f7afc000 r-xp 00000000 00:00 0                                  [vdso]
f7afc000-f7b01000 rw-p 00000000 00:00 0
f922e000-f9250000 rwxp 00000000 00:00 0                                  [stack]

All the messages are associated with the mapping of the text section in the first region.

Dave

-- 
John David Anglin  dave.anglin@bell.net


      parent reply	other threads:[~2022-04-23 20:34 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-22 17:52 Recurring INEQUIVALENT ALIASES issues and userland corruption/crashes Sam James
2022-03-22 18:14 ` Helge Deller
2022-03-22 18:30   ` John David Anglin
2022-03-22 19:47   ` Sam James
2022-03-22 18:19 ` John David Anglin
2022-03-22 19:37   ` Sam James
2022-03-22 19:52     ` Helge Deller
2022-03-22 20:42       ` Sam James
2022-03-22 21:04         ` John David Anglin
     [not found]     ` <73bf3336-9207-ba0e-1950-8cb1b7d6adc3@bell.net>
2022-03-22 20:29       ` John David Anglin
2022-03-22 20:43         ` Sam James
2022-03-22 23:59           ` John David Anglin
2022-04-05 21:13 ` John David Anglin
2022-04-12  5:18   ` Sam James
2022-04-12 12:27     ` John David Anglin
2022-04-12 13:20       ` John David Anglin
2022-04-12 23:45         ` Sam James
2022-04-19 19:52           ` Sam James
2022-04-19 21:29             ` John David Anglin
2022-04-19 21:52               ` James Bottomley
2022-04-20  0:11                 ` John David Anglin
2022-04-23 20:33   ` John David Anglin [this message]

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=cf860bf1-239d-bb14-4d7a-0f478c10e05f@bell.net \
    --to=dave.anglin@bell.net \
    --cc=hppa@gentoo.org \
    --cc=linux-parisc@vger.kernel.org \
    --cc=sam@gentoo.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