[Bug 224872] powerpc64: ddb breakpoints throwing a fast kernel trap

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Feb 4 16:02:23 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=224872

--- Comment #5 from commit-hook at freebsd.org ---
A commit references this bug:

Author: luporl
Date: Mon Feb  4 16:02:04 UTC 2019
New revision: 343744
URL: https://svnweb.freebsd.org/changeset/base/343744

Log:
  powerpc64: Add a trap stack area

  Currently, the trap code switches to the the temporary stack in the dbtrap
  section. It works in most cases, but in the beginning of the execution, the
  temp stack is being used, as starting in the powerpc_init() code.

  In this current scenario, the stack is being overwritten, which causes the
  return of breakpoint() to take abnormal execution.

  This current patchset create a small stack to use by the dbtrap: codepath
  avoiding the corruption of the temporary stack.

  PR:           224872
  Submitted by: breno.leitao_gmail.com
  Reviewed by:  jhibbits
  Differential Revision:        https://reviews.freebsd.org/D14484

Changes:
  head/sys/powerpc/aim/locore32.S
  head/sys/powerpc/aim/locore64.S
  head/sys/powerpc/aim/trap_subr32.S
  head/sys/powerpc/aim/trap_subr64.S

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ppc mailing list