lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20151211103459.GS8644@n2100.arm.linux.org.uk>
Date:	Fri, 11 Dec 2015 10:34:59 +0000
From:	Russell King - ARM Linux <linux@....linux.org.uk>
To:	"Jon Medhurst (Tixy)" <tixy@...aro.org>
Cc:	David Long <dave.long@...aro.org>,
	Pratyush Anand <panand@...hat.com>,
	Steve Capper <steve.capper@...aro.org>,
	Ananth N Mavinakayanahalli <ananth@...ibm.com>,
	will.deacon@....com,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
	anil.s.keshavamurthy@...el.com,
	Sandeepa Prabhu <sandeepa.s.prabhu@...il.com>,
	masami.hiramatsu.pt@...achi.com, wcohen@...hat.com,
	davem@...emloft.net,
	"linux-arm-kernel@...ts.infradead.org" 
	<linux-arm-kernel@...ts.infradead.org>
Subject: Re: [RFC] kprobe'ing conditionally executed instructions

On Fri, Dec 11, 2015 at 10:27:13AM +0000, Jon Medhurst (Tixy) wrote:
> On Fri, 2015-12-11 at 00:05 -0500, David Long wrote:
> > There is a moderate amount of code already in kprobes on ARM and the 
> > current ARMv8 patch to deal with conditional execution of instructions. 
> > One aspect of how this is handled is that instructions that fail their 
> > predicate and are not (technically) executed are also not treated as a 
> > hit kprobe. Steve Capper has suggested that the probe handling should 
> > still take place because we stepped through the instruction even if it 
> > was effectively a nop.  This would be a significant change in how it 
> > currently works on 32-bit ARM
> 
> 32-bit ARM uses undefined instructions for kprobe 'breakpoints' and the
> ARM ARM says it's implementation defined behaviour whether these
> generate exceptions or not, i.e. whether the kprobe handler will be
> called.

There are two classes of undefined instructions.  There are those which
fall into the above category, and there are those which are guaranteed
to raise an exception.  We should always be using the guaranteed ones,
not the other set.

-- 
RMK's Patch system: http://www.arm.linux.org.uk/developer/patches/
FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up
according to speedtest.net.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ