All of lore.kernel.org
 help / color / mirror / Atom feed
From: John David Anglin <dave.anglin@bell.net>
To: John David Anglin <dave.anglin@bell.net>
Cc: Aaro Koskinen <aaro.koskinen@iki.fi>,
	Helge Deller <deller@gmx.de>,
	Rolf Eike Beer <eike-kernel@sf-tec.de>,
	Meelis Roos <mroos@linux.ee>,
	"linux-parisc@vger.kernel.org List"
	<linux-parisc@vger.kernel.org>,
	Carlos O'Donell <carlos@redhat.com>
Subject: Re: mmap problem in localedef
Date: Sun, 2 Apr 2017 17:45:34 -0400	[thread overview]
Message-ID: <AF2BAE69-BC0C-4FDE-9B65-D15AC5FB0960@bell.net> (raw)
In-Reply-To: <C5E87DDC-4792-483B-835F-C396A4067174@bell.net>

On 2017-04-02, at 3:49 PM, John David Anglin wrote:

> On 2017-04-02, at 3:12 PM, Aaro Koskinen wrote:
> 
>> Hi,
>> 
>> On Sun, Apr 02, 2017 at 10:08:59AM -0400, John David Anglin wrote:
>>> On 2017-04-01, at 3:10 PM, Aaro Koskinen wrote:
>>>> It was attached to Dave's original mail. Inlined below:
>>>> 
>>>> Index: eglibc-2.18/sysdeps/unix/sysv/linux/hppa/bits/shm.h
>>>> ===================================================================
>>>> --- eglibc-2.18.orig/sysdeps/unix/sysv/linux/hppa/bits/shm.h	2013-01-09 19:28:48.000000000 -0500
>>>> +++ eglibc-2.18/sysdeps/unix/sysv/linux/hppa/bits/shm.h	2014-04-09 21:08:06.516202583 -0400
>>>> @@ -36,7 +36,7 @@
>>>> #define SHM_UNLOCK	12		/* unlock segment (root only) */
>>>> 
>>>> /* Segment low boundary address multiple.  */
>>>> -#define SHMLBA 0x00400000		/* address needs to be 4 Mb aligned */
>>>> +#define SHMLBA		(__getpagesize ())
>>>> 
>>>> /* Type to count number of attaches.  */
>>>> typedef unsigned long int shmatt_t;
>>> 
>>> This patch goes back to the following discussion:
>>> https://patchwork.kernel.org/patch/3933841/
>>> 
>>> As far as I can tell, it was not submitted to the glibc list, nor is
>>> there a bug report regarding localedef.
>> 
>> glibc bug report: https://sourceware.org/bugzilla/show_bug.cgi?id=19838
> 
> 
> Helge, would you send this change to glibc list?  If you already sent it, would you do a ping?

Actually, I see from further research that I'm to blame:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=725508

Your bug report was here:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=741243

> 
> You are in the best position to explain why this value should be page size and not 4MB.  It would be good to note
> in BZ where patch is on list.

Given the inequivalent alias messages which may have come from glibc testsuite, I'm not sure we have this right.
It seems like the kernel is not sharing pages in ld-2.24.so correctly.  The text and data in the file appear correctly
aligned on page boundaries.

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




  parent reply	other threads:[~2017-04-02 21:45 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-05 11:36 mmap problem in localedef Meelis Roos
2016-12-05 18:10 ` Aaro Koskinen
2016-12-05 18:49   ` John David Anglin
2016-12-05 20:58     ` Aaro Koskinen
2016-12-05 21:17       ` John David Anglin
2016-12-05 23:50         ` John David Anglin
2017-04-01 18:37           ` Aaro Koskinen
2017-04-01 18:41             ` Rolf Eike Beer
2017-04-01 19:10               ` Aaro Koskinen
2017-04-02 14:08                 ` John David Anglin
2017-04-02 19:12                   ` Aaro Koskinen
2017-04-02 19:49                     ` John David Anglin
2017-04-02 20:13                       ` John David Anglin
2017-04-02 20:55                         ` John David Anglin
2017-04-02 21:45                       ` John David Anglin [this message]
2017-04-05 23:03                     ` John David Anglin
2017-04-11 12:01                       ` John David Anglin
2017-04-11 13:57                         ` Rolf Eike Beer
2017-04-16 19:22                           ` John David Anglin
2017-04-01 19:20             ` John David Anglin
2016-12-05 21:12     ` Meelis Roos
2016-12-05 21:17       ` Jeroen Roovers

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=AF2BAE69-BC0C-4FDE-9B65-D15AC5FB0960@bell.net \
    --to=dave.anglin@bell.net \
    --cc=aaro.koskinen@iki.fi \
    --cc=carlos@redhat.com \
    --cc=deller@gmx.de \
    --cc=eike-kernel@sf-tec.de \
    --cc=linux-parisc@vger.kernel.org \
    --cc=mroos@linux.ee \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.