9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] rb kernel issue
@ 2013-11-05 17:43 erik quanstrom
  2013-11-05 18:58 ` cinap_lenrek
  0 siblings, 1 reply; 3+ messages in thread
From: erik quanstrom @ 2013-11-05 17:43 UTC (permalink / raw)
  To: 9fans

i was running vl from /sys/src/cmd/vl/v.out, and got this

	init: starting /bin/rc
	µ# panic: kmapfault: unmapped 0xe0198040

the clue is that v.out was 0 sized after the reboot.  so it appears
that the panic is not correct.  this should be a user fault.

- erik



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [9fans] rb kernel issue
  2013-11-05 17:43 [9fans] rb kernel issue erik quanstrom
@ 2013-11-05 18:58 ` cinap_lenrek
  2013-11-05 19:17   ` erik quanstrom
  0 siblings, 1 reply; 3+ messages in thread
From: cinap_lenrek @ 2013-11-05 18:58 UTC (permalink / raw)
  To: 9fans

how is this possible? execing a zero byte file should fail
header parsing, which is portable code in sysexec(). can
you reproduce the panic?

i get this on a pc:

term% ./xxx
./xxx: exec header invalid

no panic...

--
cinap



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [9fans] rb kernel issue
  2013-11-05 18:58 ` cinap_lenrek
@ 2013-11-05 19:17   ` erik quanstrom
  0 siblings, 0 replies; 3+ messages in thread
From: erik quanstrom @ 2013-11-05 19:17 UTC (permalink / raw)
  To: 9fans

On Tue Nov  5 13:06:06 EST 2013, cinap_lenrek@gmx.de wrote:
> how is this possible? execing a zero byte file should fail
> header parsing, which is portable code in sysexec(). can
> you reproduce the panic?
>
> i get this on a pc:
>
> term% ./xxx
> ./xxx: exec header invalid

this is not what happened.  what happened was
/sys/src/cmd/vl/v.out was a valid mips executable.
unfortuntely, vl creates/truncates (i haven't looked yet)
v.out  but when the name of vl is actually v.out,
the process nukes its own text.  so the next page fault in text/data
should be unfixable.  this should terminate the running
process, not panic the kernel.

- erik



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-11-05 19:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-05 17:43 [9fans] rb kernel issue erik quanstrom
2013-11-05 18:58 ` cinap_lenrek
2013-11-05 19:17   ` erik quanstrom

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).