Neale Ferguson wrote: >Is there an API I can call that allows me to validate an >address as living within userland (and is known in the vma)? >For example, if I'm backtracing through stack frames and >the backchain value I retrieve is non-zero but doesn't >represent a valid address (i.e. if I were to use it I would >crash).
You could check whether mincore () returns -ENOMEM on the page or not ... (requires a 2.4 kernel) Or you could simply set up a SIGSEGV handler and longjmp out when you crash on an attempted access. Mit freundlichen Gruessen / Best Regards Ulrich Weigand -- Dr. Ulrich Weigand Linux for S/390 Design & Development IBM Deutschland Entwicklung GmbH, Schoenaicher Str. 220, 71032 Boeblingen Phone: +49-7031/16-3727 --- Email: [EMAIL PROTECTED]
