Skip to contentSkip to conversation

arm: Request to preserve TPIDRURW per thread

DISCUSSION André Hentschel 3 participants 4 messages Jan 22, 2013 Generic include/asm header files

lore
Share & tools
lore
#0 lore raw

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

Signature · 1 line
Best Regards, André Hentschel
#1 lore raw
Quoted 11 lines · André Hentschel

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

Quoted 8 lines

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

#2 lore raw

Am 22.01.2013 01:11, schrieb Greg KH:

Quoted 28 lines · André Hentschel
Quoted 11 lines

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

Quoted 8 lines

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?

Quoted 8 lines

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-arch" in the body of a message to [email protected]
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.

Signature · 1 line
Best Regards, André Hentschel
#3 lore raw
In reply to Greg KH
Quoted 21 lines · Greg KH
Quoted 11 lines · André Hentschel

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

Quoted 8 lines

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

Quoted 4 lines

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 [email protected], since that's the happening place for arch/arm/ and they'll likely get reviewed there.

Cheers,

Will