Re: TM Bad Thing exception easily raised from userspace

2016-08-22 Thread Laurent Dufour
On 22/08/2016 06:18, Cyril Bur wrote: > On Fri, 2016-08-19 at 19:21 +0200, Laurent Dufour wrote: >> Hi, >> >> While working on the TM support for CRIU, I faced a TM Bad Thing >> exception. >> >> Digging further, I found that it is *easy* to raised it from the user >> space. I attached below a

Re: TM Bad Thing exception easily raised from userspace

2016-08-22 Thread Laurent Dufour
On 19/08/2016 22:23, Segher Boessenkool wrote: > Completely off-topic, but... > > On Fri, Aug 19, 2016 at 07:21:44PM +0200, Laurent Dufour wrote: >> asm __volatile__( >> "li 3,1 ;" >> "tbegin.;" >> "beq1f

Re: TM Bad Thing exception easily raised from userspace

2016-08-21 Thread Cyril Bur
On Fri, 2016-08-19 at 19:21 +0200, Laurent Dufour wrote: > Hi, > > While working on the TM support for CRIU, I faced a TM Bad Thing > exception. > > Digging further, I found that it is *easy* to raised it from the user > space. I attached below a simple program which raise it all the time, >

Re: TM Bad Thing exception easily raised from userspace

2016-08-21 Thread Michael Neuling
On Fri, 2016-08-19 at 19:21 +0200, Laurent Dufour wrote: > Hi, > > While working on the TM support for CRIU, I faced a TM Bad Thing exception. > > Digging further, I found that it is *easy* to raised it from the user > space. I attached below a simple program which raise it all the time, > like

Re: TM Bad Thing exception easily raised from userspace

2016-08-19 Thread Segher Boessenkool
Completely off-topic, but... On Fri, Aug 19, 2016 at 07:21:44PM +0200, Laurent Dufour wrote: > asm __volatile__( > "li 3,1 ;" > "tbegin.;" > "beq1f ;" > "li 3,0 ;" >

TM Bad Thing exception easily raised from userspace

2016-08-19 Thread Laurent Dufour
Hi, While working on the TM support for CRIU, I faced a TM Bad Thing exception. Digging further, I found that it is *easy* to raised it from the user space. I attached below a simple program which raise it all the time, like this : [12045.221359] Kernel BUG at c0050a40 [verbose debug