mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Szabolcs Nagy <nsz@port70.net>
To: Koen Vandeputte <koen.vandeputte@ncentric.com>
Cc: Syrone Wong <wong.syrone@gmail.com>, Felix Fietkau <nbd@nbd.name>,
	musl@lists.openwall.com
Subject: Re: [LEDE-DEV] [PATCH 1/2] musl: update to 1.1.16+ git HEAD 2017-09-28
Date: Mon, 16 Oct 2017 16:03:55 +0200	[thread overview]
Message-ID: <20171016140355.GR15263@port70.net> (raw)
In-Reply-To: <dd0dcaaf-2c4e-ebed-93d9-1eff350ecad4@ncentric.com>

* Koen Vandeputte <koen.vandeputte@ncentric.com> [2017-10-16 10:31:11 +0200]:
> I've proposed to update the musl libc within the LEDE project and received
> some feedback from Syrone Wong (in cc).
> 
> According to him, your upstream commit in musl [1] seems to break something.
> (see below)
> 
> - Can you confirm this?
> - Would you have any clue what the reason could be?
...
> [1]
> "powerpc{64}: fix MAP_NORESERVE and MAP_LOCKED in mman.h"
> http://git.musl-libc.org/cgit/musl/commit/?id=c10bc61508dc52b8315084e628f36a6c3c2dabb1
> 

these are rarely used mmap flags, i think my patch is correct.

the old value in musl was wrong on powerpc (i think the old
value did not collide with other map flags so the kernel would
report EINVAL if these flags were ever used).

> On 2017-10-09 12:01, Syrone Wong wrote:
> > Based on my previous test on mvebu/WRT3200ACM, when I update to
> > 
> > c10bc61 powerpc{64}: fix MAP_NORESERVE and MAP_LOCKED in mman.h
> > 
> > hostapd and pppd won't start, if you start pppd manually, it will
> > output garbage.
...
> > On Mon, Oct 9, 2017 at 5:21 PM, Koen Vandeputte
> > <koen.vandeputte@ncentric.com> wrote:
> > > 48be5b6 fix use of memset without declaration in sched.h cpu set macros
> > > c10bc61 powerpc{64}: fix MAP_NORESERVE and MAP_LOCKED in mman.h
> > > da438ee work around incorrect EPERM from mmap syscall

note that this EPERM workaround also affects mmap behaviour

but i don't immediately see why either patches would cause problem

> > > 8c4be3e fix glob descent into . and .. with GLOB_PERIOD
> > > 565dbee don't treat numeric port strings as servent records in
> > > getservby*()
> > > 9e01be6 fix signal masking race in pthread_create with priority
> > > attributes
> > > 822dddf make syscall.h consistent with linux
> > > 9255dad handle whitespace before %% in scanf
> > > 51bdcdc fix OOB reads in Xbyte_memmem
> > > cc0dbd5 free allocations in clearenv
> > > 8e93279 overhaul environment functions
> > > 39db00a fix erroneous acceptance of f4 9x xx xx code sequences by utf-8
> > > decoder
> > > 11ddc31 fix erroneous stop before input limit in mbsnrtowcs and
> > > wcsnrtombs
> > > 8459c6f arm: add HWCAP_ARM_ hwcap macros
> > > 06fbefd add a_clz_64 helper function
> > > 3356177 s390x: add bits/hwcap.h
> > > 
> > > Tested on cns3xxx
> > > 
> > > Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
> > > ---
> > >   toolchain/musl/common.mk | 4 ++--
> > >   1 file changed, 2 insertions(+), 2 deletions(-)
> > > 
> > > diff --git a/toolchain/musl/common.mk b/toolchain/musl/common.mk
> > > index 0a45828..966ff98 100644
> > > --- a/toolchain/musl/common.mk
> > > +++ b/toolchain/musl/common.mk
> > > @@ -13,8 +13,8 @@ PKG_RELEASE=1
> > > 
> > >   PKG_SOURCE_PROTO:=git
> > >   PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
> > > -PKG_SOURCE_VERSION:=5f7efb87a28a311ad377dd26adf53715dedb096d
> > > -PKG_MIRROR_HASH:=da18ef24f270e5cae6bc4c440479da17bec1949ae5a1bc990352ca04f24c4378
> > > +PKG_SOURCE_VERSION:=48be5b6313d7b827acf555769e93b389fa9f6307
> > > +PKG_MIRROR_HASH:=c3766c0613d20491c4662e1f2914c50f5a69ec07d8e5cf8930afc5041226e5b8
> > >   PKG_SOURCE_URL:=git://git.musl-libc.org/musl
> > >   PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.xz
> > > 
> > > --
> > > 2.7.4
> > > 
> > > 
> > > _______________________________________________
> > > Lede-dev mailing list
> > > Lede-dev@lists.infradead.org
> > > http://lists.infradead.org/mailman/listinfo/lede-dev
> 
> -- 
> Koen Vandeputte - Software Developer
> koen.vandeputte@ncentric.com | +32499736158


       reply	other threads:[~2017-10-16 14:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1507540908-26635-1-git-send-email-koen.vandeputte@ncentric.com>
     [not found] ` <CAEaqfoby9DepJnGG3_sSaKp5WYSPCzuKTRR6DF2-1irwG7Sy2g@mail.gmail.com>
     [not found]   ` <dd0dcaaf-2c4e-ebed-93d9-1eff350ecad4@ncentric.com>
2017-10-16 14:03     ` Szabolcs Nagy [this message]
2017-10-16 14:09       ` Felix Fietkau
2017-10-16 15:01         ` Szabolcs Nagy

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=20171016140355.GR15263@port70.net \
    --to=nsz@port70.net \
    --cc=koen.vandeputte@ncentric.com \
    --cc=musl@lists.openwall.com \
    --cc=nbd@nbd.name \
    --cc=wong.syrone@gmail.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.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).