Re: 12-STABLE revision 344629: pid 26 (sh), jid 0, uid 0: exited on signal 11

2019-02-27 Thread O. Hartmann
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Am Wed, 27 Feb 2019 14:18:28 -0500
Shawn Webb  schrieb:

> On Wed, Feb 27, 2019 at 08:08:24PM +0100, O. Hartmann wrote:
> > -BEGIN PGP SIGNED MESSAGE-
> > Hash: SHA256
> > 
> > Running 12-STABLE and CURRENT on a PCengine APU4C (CPU: AMD GX-412TC SOC,  
> > Coreboot
> > Version: v4.9.0.2), I ran into trouble running latest 12-STABLE on that 
> > hardware.
> > 
> > The box is quitting with
> > 
> > 
> > [...]
> > mmcsd0: 31GB  at mmc0
> > 50.0MHz/4bit/65535-block ada0 at ahcich0 bus 0 scbus0 target 0 lun 0
> > ada0:  ACS-2 ATA SATA 3.x device
> > ada0: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 1024bytes)
> > ada0: Command Queueing enabled
> > ada0: 61057MB (125045424 512 byte sectors)
> > Trying to mount root from ufs:/dev/gpt/dsks1a [ro]...
> > TCP Hpts created 4 swi interrupt thread and bound 0
> > uhub1: 4 ports with 4 removable, self powered
> > pid 26 (sh), jid 0, uid 0: exited on signal 11
> > 2019-02-27T19:42:35.721885+01:00  init 1 - - /bin/sh on /etc/rc terminated 
> > abnormally,
> > going to single user mode Enter root password, or ^D to go multi-user
> > Password:
> > uhub0: 2 ports with 2 removable, self powered
> > ugen1.2:  at usbus1
> > uhub2 on uhub0
> > uhub2:  on 
> > usbus1
> > uhub2: 4 ports with 4 removable, self powered
> > random: unblocking device.
> > arc4random: no preloaded entropy cache
> > arc4random: no preloaded entropy cache
> > [...]
> > 
> > 
> > ... and when typing the password, the prompter is immediately at
> > 
> > 2019-02-27T19:42:35.721885+01:00  init 1 - - /bin/sh on /etc/rc terminated 
> > abnormally,
> > going to single user mode Enter root password, or ^D to go multi-user
> > Password:
> > 
> > 
> > Running 
> > 
> > FreeBSD 12.0-STABLE #36 r343871: Thu Feb  7 17:34:44 CET 2019 amd64
> > 
> > Doesn't show this phenomenon with the very same configuration and kernel.  
> 
> Have you enabled retpoline? There are known issues with ifunc in libc
> and retpoline.
> 
> Thanks,
> 


I was just preparing further informations when I failed to gather more insights 
enabling debug
info in rc.conf when your email arrived.

Yes, I use NanoBSD and build world with these settings:

# Options to put in make.conf during buildworld only
CONF_BUILD='
#CFLAGS=-O3 -pipe -DNDEBUG
CFLAGS=-O2 -pipe -DNDEBUG
WITH_KERNEL_RETPOLINE=YES
WITH_RETPOLINE=YES
MALLOC_PRODUCTION=YES
'

Right now, I commented out those settings and recompile world without RETPOLINE.

Kind regards,

oh

-BEGIN PGP SIGNATURE-

iHUEARYIAB0WIQSy8IBxAPDkqVBaTJ44N1ZZPba5RwUCXHb1rwAKCRA4N1ZZPba5
RzycAP9TUIWDLnJOzN9jlK7tNre0wdpFlGSP9dH56Jp3kjZAtwEAkxKHer7Itt+E
Vfu6Ua5jxZMUoihbVEYOzKdWLf5KTgs=
=Yuya
-END PGP SIGNATURE-
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: 12-STABLE revision 344629: pid 26 (sh), jid 0, uid 0: exited on signal 11

2019-02-27 Thread Shawn Webb
On Wed, Feb 27, 2019 at 08:08:24PM +0100, O. Hartmann wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA256
> 
> Running 12-STABLE and CURRENT on a PCengine APU4C (CPU: AMD GX-412TC SOC,  
> Coreboot Version:
> v4.9.0.2), I ran into trouble running latest 12-STABLE on that hardware.
> 
> The box is quitting with
> 
> 
> [...]
> mmcsd0: 31GB  at mmc0 
> 50.0MHz/4bit/65535-block
> ada0 at ahcich0 bus 0 scbus0 target 0 lun 0
> ada0:  ACS-2 ATA SATA 3.x device
> ada0: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 1024bytes)
> ada0: Command Queueing enabled
> ada0: 61057MB (125045424 512 byte sectors)
> Trying to mount root from ufs:/dev/gpt/dsks1a [ro]...
> TCP Hpts created 4 swi interrupt thread and bound 0
> uhub1: 4 ports with 4 removable, self powered
> pid 26 (sh), jid 0, uid 0: exited on signal 11
> 2019-02-27T19:42:35.721885+01:00  init 1 - - /bin/sh on /etc/rc terminated 
> abnormally, going
> to single user mode Enter root password, or ^D to go multi-user
> Password:
> uhub0: 2 ports with 2 removable, self powered
> ugen1.2:  at usbus1
> uhub2 on uhub0
> uhub2:  on 
> usbus1
> uhub2: 4 ports with 4 removable, self powered
> random: unblocking device.
> arc4random: no preloaded entropy cache
> arc4random: no preloaded entropy cache
> [...]
> 
> 
> ... and when typing the password, the prompter is immediately at
> 
> 2019-02-27T19:42:35.721885+01:00  init 1 - - /bin/sh on /etc/rc terminated 
> abnormally, going
> to single user mode Enter root password, or ^D to go multi-user
> Password:
> 
> 
> Running 
> 
> FreeBSD 12.0-STABLE #36 r343871: Thu Feb  7 17:34:44 CET 2019 amd64
> 
> Doesn't show this phenomenon with the very same configuration and kernel.

Have you enabled retpoline? There are known issues with ifunc in libc
and retpoline.

Thanks,

-- 
Shawn Webb
Cofounder and Security Engineer
HardenedBSD

Tor-ified Signal:+1 443-546-8752
Tor+XMPP+OTR:latt...@is.a.hacker.sx
GPG Key ID:  0x6A84658F52456EEE
GPG Key Fingerprint: 2ABA B6BD EF6A F486 BE89  3D9E 6A84 658F 5245 6EEE


signature.asc
Description: PGP signature


12-STABLE revision 344629: pid 26 (sh), jid 0, uid 0: exited on signal 11

2019-02-27 Thread O. Hartmann
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Running 12-STABLE and CURRENT on a PCengine APU4C (CPU: AMD GX-412TC SOC,  
Coreboot Version:
v4.9.0.2), I ran into trouble running latest 12-STABLE on that hardware.

The box is quitting with


[...]
mmcsd0: 31GB  at mmc0 
50.0MHz/4bit/65535-block
ada0 at ahcich0 bus 0 scbus0 target 0 lun 0
ada0:  ACS-2 ATA SATA 3.x device
ada0: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 1024bytes)
ada0: Command Queueing enabled
ada0: 61057MB (125045424 512 byte sectors)
Trying to mount root from ufs:/dev/gpt/dsks1a [ro]...
TCP Hpts created 4 swi interrupt thread and bound 0
uhub1: 4 ports with 4 removable, self powered
pid 26 (sh), jid 0, uid 0: exited on signal 11
2019-02-27T19:42:35.721885+01:00  init 1 - - /bin/sh on /etc/rc terminated 
abnormally, going
to single user mode Enter root password, or ^D to go multi-user
Password:
uhub0: 2 ports with 2 removable, self powered
ugen1.2:  at usbus1
uhub2 on uhub0
uhub2:  on 
usbus1
uhub2: 4 ports with 4 removable, self powered
random: unblocking device.
arc4random: no preloaded entropy cache
arc4random: no preloaded entropy cache
[...]


... and when typing the password, the prompter is immediately at

2019-02-27T19:42:35.721885+01:00  init 1 - - /bin/sh on /etc/rc terminated 
abnormally, going
to single user mode Enter root password, or ^D to go multi-user
Password:


Running 

FreeBSD 12.0-STABLE #36 r343871: Thu Feb  7 17:34:44 CET 2019 amd64

Doesn't show this phenomenon with the very same configuration and kernel.



- -- 

-BEGIN PGP SIGNATURE-

iHUEARYIAB0WIQSy8IBxAPDkqVBaTJ44N1ZZPba5RwUCXHbgQwAKCRA4N1ZZPba5
R7YAAP9Udj1wB9nq531VSQa7Bw3ZvGdbp1j8MaKUnO9iQ7/kJgEAkFq6jdn1SU7U
RwVXmAvNWqcD0YHJnjX6NZiLxfo+gwk=
=Xv7l
-END PGP SIGNATURE-
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"