public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC] suspicious code in frv/kernel/traps.c
@ 2008-04-12  2:31 Al Viro
  0 siblings, 0 replies; only message in thread
From: Al Viro @ 2008-04-12  2:31 UTC (permalink / raw)
  To: dhowells; +Cc: linux-kernel

In insn_access_error():
        info.si_addr    = (void *) ((epcr0 & EPCR0_V) ? (epcr0 & EPCR0_PC) : __frame->pc);

In illegal_instruction():
        info.si_addr    = (void *) ((epcr0 & EPCR0_PC) ? (epcr0 & EPCR0_PC) : __frame->pc);

and with

#define EPCR0_V                 0x00000001      /* register content validity indicator */
#define EPCR0_PC                0xfffffffc      /* faulting instruction address */

it really smells like a braino in the latter...

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-04-12  2:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-12  2:31 [RFC] suspicious code in frv/kernel/traps.c Al Viro

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox