All of lore.kernel.org
 help / color / mirror / Atom feed
* arm: Request to preserve TPIDRURW per thread
@ 2013-01-22  0:04 André Hentschel
  2013-01-22  0:11 ` Greg KH
  0 siblings, 1 reply; 4+ messages in thread
From: André Hentschel @ 2013-01-22  0:04 UTC (permalink / raw)
  To: linux-arch; +Cc: will.deacon, gregkh, rmk+kernel

Hi,
that comes a bit late, but [1] asked for objections.
As you can see in [2] there are more and more applications coming to WinRT, Wine could support them,
but mostly they expect to have the thread environment block (TEB) in TPIDRURW.
This register must be preserved per thread and we have patches for that.

Currently there exist two kernel behaviours:

1. the kernel does not touch TPIDRURW at all ("covert channel")
2. the kernel clears TPIDRURW on thread switch

Attached to [3] you'll find kernel patches you can freely use.
Permission and more info you'll find in [4].
Any hints or suggestions?

[1] http://www.kernelhub.org/?p=2&msg=57979
[2] http://forum.xda-developers.com/showthread.php?t=2092348
[3] http://bugs.winehq.org/show_bug.cgi?id=31322
[4] http://bugs.winehq.org/show_bug.cgi?id=31308
-- 

Best Regards, André Hentschel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: arm: Request to preserve TPIDRURW per thread
  2013-01-22  0:04 arm: Request to preserve TPIDRURW per thread André Hentschel
@ 2013-01-22  0:11 ` Greg KH
  2013-01-22  0:16   ` André Hentschel
  2013-01-22  9:24   ` Will Deacon
  0 siblings, 2 replies; 4+ messages in thread
From: Greg KH @ 2013-01-22  0:11 UTC (permalink / raw)
  To: André Hentschel; +Cc: linux-arch, will.deacon, rmk+kernel

On Tue, Jan 22, 2013 at 01:04:56AM +0100, André Hentschel wrote:
> Hi,
> that comes a bit late, but [1] asked for objections.
> As you can see in [2] there are more and more applications coming to WinRT, Wine could support them,
> but mostly they expect to have the thread environment block (TEB) in TPIDRURW.
> This register must be preserved per thread and we have patches for that.
> 
> Currently there exist two kernel behaviours:
> 
> 1. the kernel does not touch TPIDRURW at all ("covert channel")
> 2. the kernel clears TPIDRURW on thread switch
> 
> Attached to [3] you'll find kernel patches you can freely use.
> Permission and more info you'll find in [4].
> Any hints or suggestions?
> 
> [1] http://www.kernelhub.org/?p=2&msg=57979
> [2] http://forum.xda-developers.com/showthread.php?t=2092348
> [3] http://bugs.winehq.org/show_bug.cgi?id=31322
> [4] http://bugs.winehq.org/show_bug.cgi?id=31308

Please submit the patches to fix this in the way described in
Documentation/SubmittingPatches.  Once they are in Linus's tree, I'll be
glad to take them in the stable tree if they meet the guidelines that
are described in Documentation/stable_kernel_rules.txt.

Does that help?

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: arm: Request to preserve TPIDRURW per thread
  2013-01-22  0:11 ` Greg KH
@ 2013-01-22  0:16   ` André Hentschel
  2013-01-22  9:24   ` Will Deacon
  1 sibling, 0 replies; 4+ messages in thread
From: André Hentschel @ 2013-01-22  0:16 UTC (permalink / raw)
  To: Greg KH; +Cc: linux-arch, will.deacon, rmk+kernel

Am 22.01.2013 01:11, schrieb Greg KH:
> On Tue, Jan 22, 2013 at 01:04:56AM +0100, André Hentschel wrote:
>> Hi,
>> that comes a bit late, but [1] asked for objections.
>> As you can see in [2] there are more and more applications coming to WinRT, Wine could support them,
>> but mostly they expect to have the thread environment block (TEB) in TPIDRURW.
>> This register must be preserved per thread and we have patches for that.
>>
>> Currently there exist two kernel behaviours:
>>
>> 1. the kernel does not touch TPIDRURW at all ("covert channel")
>> 2. the kernel clears TPIDRURW on thread switch
>>
>> Attached to [3] you'll find kernel patches you can freely use.
>> Permission and more info you'll find in [4].
>> Any hints or suggestions?
>>
>> [1] http://www.kernelhub.org/?p=2&msg=57979
>> [2] http://forum.xda-developers.com/showthread.php?t=2092348
>> [3] http://bugs.winehq.org/show_bug.cgi?id=31322
>> [4] http://bugs.winehq.org/show_bug.cgi?id=31308
> 
> Please submit the patches to fix this in the way described in
> Documentation/SubmittingPatches.  Once they are in Linus's tree, I'll be
> glad to take them in the stable tree if they meet the guidelines that
> are described in Documentation/stable_kernel_rules.txt.
> 
> Does that help?
> 
> thanks,
> 
> greg k-h
> --
> To unsubscribe from this list: send the line "unsubscribe linux-arch" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

Sure, thx.
It only will take a while, because i'm out for some days. I'll report back.

-- 

Best Regards, André Hentschel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: arm: Request to preserve TPIDRURW per thread
  2013-01-22  0:11 ` Greg KH
  2013-01-22  0:16   ` André Hentschel
@ 2013-01-22  9:24   ` Will Deacon
  1 sibling, 0 replies; 4+ messages in thread
From: Will Deacon @ 2013-01-22  9:24 UTC (permalink / raw)
  To: Greg KH; +Cc: André Hentschel, linux-arch, rmk+kernel

On Tue, Jan 22, 2013 at 12:11:43AM +0000, Greg KH wrote:
> On Tue, Jan 22, 2013 at 01:04:56AM +0100, André Hentschel wrote:
> > Hi,
> > that comes a bit late, but [1] asked for objections.
> > As you can see in [2] there are more and more applications coming to WinRT, Wine could support them,
> > but mostly they expect to have the thread environment block (TEB) in TPIDRURW.
> > This register must be preserved per thread and we have patches for that.
> > 
> > Currently there exist two kernel behaviours:
> > 
> > 1. the kernel does not touch TPIDRURW at all ("covert channel")
> > 2. the kernel clears TPIDRURW on thread switch
> > 
> > Attached to [3] you'll find kernel patches you can freely use.
> > Permission and more info you'll find in [4].
> > Any hints or suggestions?
> > 
> > [1] http://www.kernelhub.org/?p=2&msg=57979
> > [2] http://forum.xda-developers.com/showthread.php?t=2092348
> > [3] http://bugs.winehq.org/show_bug.cgi?id=31322
> > [4] http://bugs.winehq.org/show_bug.cgi?id=31308
> 
> Please submit the patches to fix this in the way described in
> Documentation/SubmittingPatches.  Once they are in Linus's tree, I'll be
> glad to take them in the stable tree if they meet the guidelines that
> are described in Documentation/stable_kernel_rules.txt.

Please also send them to linux-arm-kernel@lists.infradead.org, since that's
the happening place for arch/arm/ and they'll likely get reviewed there.

Cheers,

Will

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-01-22  9:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-22  0:04 arm: Request to preserve TPIDRURW per thread André Hentschel
2013-01-22  0:11 ` Greg KH
2013-01-22  0:16   ` André Hentschel
2013-01-22  9:24   ` Will Deacon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.