All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Marcin Niestrój" <m.niestroj@grinn-global.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v3 1/2] package/lvm2: Fix runtime crash when using uclibc
Date: Fri, 31 Aug 2018 16:51:31 +0200	[thread overview]
Message-ID: <877ek6fv2k.fsf@grinn-global.com> (raw)
In-Reply-To: <20180814224717.02d57e06@windsurf>


Thomas Petazzoni <thomas.petazzoni@bootlin.com> writes:

> Hello Marcin,
>
> Once again, thanks for this work!
>
> On Thu, 26 Jul 2018 19:15:23 +0200, Marcin Niestroj wrote:
>> When using uclibc libdevmapper.so was calling dm_task_get_info_base()
>> function recursively, leading to segmentation fault. This was
>> happening because uclibc linker loader just takes first existing
>> 'dm_task_get_info' (which is 'dm_task_get_info_base') symbol in elf
>> binary, instead of default version.
>> 
>> Add upstreamable lvm2 patch [1], which introduces
>> --enable-symvers[=STYLE] switch. Use that switch to disable symbol
>> versions, as we do not plan to support binaries compiled against
>> old libdevmapper library.
>> 
>> [1] https://www.redhat.com/archives/dm-devel/2018-July/msg00187.html
>> 
>> Signed-off-by: Marcin Niestroj <m.niestroj@grinn-global.com>
>> ---
>> Changes v2 -> v3: none
>
> I have added a reference to the Buildroot bug report being fixed by
> this, and I've applied to master.
>
> Two questions:
>
>  (1) Could you try to push this forward in terms of upstreaming
>      acceptance ? I know you have submitted the patch, but I looked
>      today and apparently you haven't received any feedback.
>
>  (2) It would be nicer if the availability of symbol versioning could
>      be auto-detected. Is there a compile-time test that can be done to
>      verify if symbol versioning is available ? This would perhaps help
>      make the patch even more acceptable upstream.
>
> Thanks!
>
> Thomas


-- 
Marcin Niestr?j

  reply	other threads:[~2018-08-31 14:51 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-26 17:15 [Buildroot] [PATCH v3 1/2] package/lvm2: Fix runtime crash when using uclibc Marcin Niestroj
2018-07-26 17:15 ` [Buildroot] [PATCH v3 2/2] package/lvm2: bump version to 2.02.180 Marcin Niestroj
2018-08-14 21:39   ` Thomas Petazzoni
2018-08-14 20:47 ` [Buildroot] [PATCH v3 1/2] package/lvm2: Fix runtime crash when using uclibc Thomas Petazzoni
2018-08-31 14:51   ` Marcin Niestrój [this message]
2018-08-31 15:00   ` Marcin Niestrój
2018-08-24  8:34 ` Peter Korsgaard

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=877ek6fv2k.fsf@grinn-global.com \
    --to=m.niestroj@grinn-global.com \
    --cc=buildroot@busybox.net \
    /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.