Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.kernel > #57315

Lemote-3a-itx-a1101 kernel/PMON bug (Was: Bug#858405: xmlto: intermittent Segmentation fault when building manpages for libreswan on mips64el)

From James Cowgill <jcowgill@debian.org>
Newsgroups linux.debian.ports.mips, linux.debian.kernel
Subject Lemote-3a-itx-a1101 kernel/PMON bug (Was: Bug#858405: xmlto: intermittent Segmentation fault when building manpages for libreswan on mips64el)
Date 2017-03-24 18:10 +0100
Message-ID <toAST-4Ki-37@gated-at.bofh.it> (permalink)
References <tnDpM-3f5-21@gated-at.bofh.it> <tnLGG-Ta-9@gated-at.bofh.it> <tnVPI-nl-7@gated-at.bofh.it> <toepj-5id-11@gated-at.bofh.it> <totRo-7Xq-17@gated-at.bofh.it>
Organization linux.* mail to news gateway

Cross-posted to 2 groups.

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

Hi,

[drop some CCs since this is not directly related to the xmlto bug]

On 24/03/17 09:36, YunQiang Su wrote:
> On Fri, Mar 24, 2017 at 1:06 AM, James Cowgill <jcowgill@debian.org> wrote:
>> I believe any of the following will fix this (but have not all been tested):
>> - Reduce the stack usage in xsltproc (the upstream bug)
>> - Upgrade the relevant buildds to Linux >= 4.1
>> - Apply d1fd836dcf00 to jessie's kernel
>> - Disable PIE in xsltproc.
>> - Run xsltproc inside setarch -L / setarch -R
>>
> 
> we have some trouble to run newer kernel on some Loongson machines,
> as their pmon can only load initrd with limit size.
> So backports patch may ideal for us, now.

Are you referring to this issue?
https://lists.debian.org/debian-mips/2016/01/msg00009.html

This does only affect some Loongson machines. I think all the buildds
can be safely upgraded to 4.9 except for mipsel-manda-01 which has the
buggy PMON.

Looking at the bug again, all the extra .bss space comes from the giant
mem_section array which is always used on Loongson due to
STATIC_SPARSEMEM being enabled. I am wondering if this patch might help
(and if it works for multi-node Loongsons like the 3B). The Loongson
memory initialization code takes a different path to other mips
sub-arches and avoids calling memory_present until the very end, so it
might not need STATIC_SPARSEMEM?

(patch is completely untested)

diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
index 7baddfa0e229..3bbb454ab2f5 100644
--- a/arch/mips/Kconfig
+++ b/arch/mips/Kconfig
@@ -2559,7 +2559,7 @@ config ARCH_DISCONTIGMEM_ENABLE

 config ARCH_SPARSEMEM_ENABLE
        bool
-       select SPARSEMEM_STATIC
+       select SPARSEMEM_STATIC if !MACH_LOONGSON64

 config NUMA
        bool "NUMA Support"

Thanks,
James

Back to linux.debian.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Bug#750593: Bug#858405: xmlto: intermittent Segmentation fault when building manpages for libreswan on mips64el James Cowgill <jcowgill@debian.org> - 2017-03-23 18:10 +0100
  Bug#750593: Stable update request: kernel changes to fix PIE with large stack Ben Hutchings <ben@decadent.org.uk> - 2017-03-23 22:40 +0100
    Bug#858405: Stable update request: kernel changes to fix PIE with large stack Ben Hutchings <ben@decadent.org.uk> - 2017-03-30 00:40 +0200
  Bug#750593: Bug#858405: xmlto: intermittent Segmentation fault when building manpages for libreswan on mips64el YunQiang Su <wzssyqa@gmail.com> - 2017-03-24 10:40 +0100
    Lemote-3a-itx-a1101 kernel/PMON bug (Was: Bug#858405: xmlto:  intermittent Segmentation fault when building manpages for libreswan on  mips64el) James Cowgill <jcowgill@debian.org> - 2017-03-24 18:10 +0100

csiph-web