NetBSD Problem Report #49258

From christos@astron.com  Sun Oct  5 20:40:15 2014
Return-Path: <christos@astron.com>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 5DF00A6551
	for <gnats-bugs@gnats.NetBSD.org>; Sun,  5 Oct 2014 20:40:15 +0000 (UTC)
Message-Id: <20141005192606.520DD14B69@quasar.astron.com>
Date: Sun,  5 Oct 2014 19:26:06 +0000 (UTC)
From: christos@zoulas.com
Reply-To: christos@zoulas.com
To: gnats-bugs@NetBSD.org
Subject: old arm binaries don't exactly work on eabi kernel.
X-Send-Pr-Version: 3.95

>Number:         49258
>Category:       kern
>Synopsis:       problems with compat32 on arm32
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Oct 05 20:45:00 +0000 2014
>Originator:     Christos Zoulas
>Release:        NetBSD 7.99.1
>Organization:
	Entropy Reduction, Ltd.
>Environment:
System: NetBSD rpi1.astron.com 7.99.1 NetBSD 7.99.1 (RPI.201410050630Z) #0: Sun Oct  5 08:02:56 UTC 2014  builds@b47.netbsd.org:/home/builds/ab/HEAD/evbarm-earmv6hf/201410050630Z-obj/home/source/ab/HEAD/src/sys/arch/evbarm/compile/RPI evbarm

Architecture: arm
Machine: rpi
>Description:
1. ktrace/kdump don't work Invalid emulation `' followed by infinite loop.
2. mount_tmpfs does not work (Invalid argument)
3. ntpd crashes the kernel
uvm_fault(0xdba77b00, 0, 1) -> e
Fatal kernel mode data abort: 'Translation Fault (P)'
trapframe: 0xdab5dea0
FSR=00000017, FAR=000000c0, spsr=60000013
r0 =00000000, r1 =40000010, r2 =00000000, r3 =091a0002
r4 =000f8be4, r5 =dab5dfb0, r6 =00000000, r7 =00000000
r8 =000013bc, r9 =c045be08, r10=c045d1c4, r11=dab5df0c
r12=dab5df10, ssp=dab5def0, slr=c023627c, pc =c001cef4

panic: kernel diagnostic assertion "mutex_owned(pipe->device->bus->lock)" failed: file "/home/source/ab/HEAD/src/sys/dev/usb/usbdi.c", line 1009 
cpu0: Begin traceback...
0xdab5da4c: netbsd:db_panic+0xc
0xdab5da7c: netbsd:vpanic+0x144
0xdab5da94: netbsd:kern_assert+0x40
0xdab5dad4: netbsd:usbd_start_next+0x2dc
0xdab5db04: netbsd:dwc2_softintr+0x90
0xdab5db1c: netbsd:usb_schedsoftintr+0x54
0xdab5db4c: netbsd:dwc2_host_complete+0x110
0xdab5db8c: netbsd:dwc2_hc_xfercomp_intr+0x2e0
0xdab5dbfc: netbsd:dwc2_handle_hcd_intr+0x720
0xdab5dc14: netbsd:dwc2_interrupt+0x28
0xdab5dc2c: netbsd:dwc2_poll+0x28
0xdab5dc3c: netbsd:usbd_dopoll+0x20
0xdab5dc64: netbsd:ukbd_cngetc+0x6c
0xdab5dc8c: netbsd:wskbd_cngetc+0xbc
0xdab5dcac: netbsd:cngetc+0x40
0xdab5dcec: netbsd:db_readline+0x50
0xdab5dd04: netbsd:db_read_line+0x20
0xdab5dd64: netbsd:db_command_loop+0xec
0xdab5dd84: netbsd:db_trap+0xc8
0xdab5ddfc: netbsd:kdb_trap+0x84
0xdab5de24: netbsd:dab_fatal+0x118
0xdab5de9c: netbsd:data_abort_handler+0x1ec
0xdab5df0c: netbsd:address_exception_entry+0x58
0xdab5df7c: netbsd:syscall+0xc4
0xdab5dfac: netbsd:swi_handler+0xa0
cpu0: End traceback...

>How-To-Repeat:
	Boot an eabi kernel with binaries that look like:

/usr/sbin/ntpd: ELF 32-bit LSB executable, ARM, version 1, dynamically linked (uses shared libs), for NetBSD 6.99.17, not stripped

>Fix:

Fix at least the ntpd syscall that fails so that it does not crash the system.

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.