search for: hotpatch

Displaying 20 results from an estimated 48 matches for "hotpatch".

2016 Apr 06
7
RFC: New function attribute "patchable-prologue"="<kind>"
[Proposed langref entry] The "patchable-prologue" attribute on a function is a general mechanism to control the form of a function's prologue in ways that make it easy to patch at runtime. Currently only one value is supported: # "hotpatch-compact" If a function is marked with "patchable-prologue"="hotpatch-compact" then: 1. The first instruction of the function is at least two bytes long. 2. The first two bytes of the first instruction does not span a cache line boundary. 3. The instruction deno...
2010 Oct 26
2
[LLVMdev] Implementing the hotpatch attribute for X86
Hi, According to http://blogs.msdn.com/b/freik/archive/2006/03/07/x64-hotpatchability.aspx, 'hotpatchable' functions on x86 (and by extension, x86-64) are preceded by six bytes of padding and start with a two byte instruction. The problem is that, still being relatively unfamiliar with the x86 backend, I have no idea how to implement this for the 'hotpatch' at...
2010 Oct 26
2
[LLVMdev] Implementing the hotpatch attribute for X86
On 10/26/10 5:24 PM, Michael Spencer wrote: > The linker adds the padding. Also, the first instruction just has to > be two bytes or longer. Not exactly two bytes. How then does the linker know to add the padding? I assume there's a PE-COFF attribute that will do that, but what about other file formats, like ELF or Mach-O? Bear in mind that I'm doing this for the Wine project, so
2010 Oct 26
0
[LLVMdev] Implementing the hotpatch attribute for X86
...t file. You have to pass /FUNCTIONPADMIN to the linker which then figures it out. > but what about other file formats, > like ELF or Mach-O? Bear in mind that I'm doing this for the Wine > project, so I'm very concerned about those two formats. > > Chip There is no standard hotpatch ABI/toolchain for those object file formats. Although a quick search brought up various projects working on it. On ELF I believe you can just fiddle with the GOT and PLT to hook functions, which is all hotpatching is. The reason COFF and Windows DLLs require the extra effort is because of the way t...
2010 Oct 26
0
[LLVMdev] Implementing the hotpatch attribute for X86
On Tue, Oct 26, 2010 at 7:02 PM, Charles Davis <cdavis at mymail.mines.edu> wrote: > Hi, > > According to > http://blogs.msdn.com/b/freik/archive/2006/03/07/x64-hotpatchability.aspx, > 'hotpatchable' functions on x86 (and by extension, x86-64) are preceded > by six bytes of padding and start with a two byte instruction. The > problem is that, still being relatively unfamiliar with the x86 backend, > I have no idea how to implement this for the &...
2010 Oct 27
1
[LLVMdev] Implementing the hotpatch attribute for X86
> I don't know how GCC handles this case. They may do the padding in the > compiler. You are going to have to look at exactly what GCC does and > whatever hotpatch loader Wine uses to figure out what to do, but it > will most likely be incompatible with the Windows implementation. Why? I don't see how this might be incompatible with what MS linker does; in any case the end result should be the same. gcc just emits series of bytes before the function (...
2016 Apr 14
2
RFC: New function attribute "patchable-prologue"="<kind>"
...ng to be mutually incompatible, so I'm not sure it makes sense to make this attribute a comma-separated list. I think Eric's and Dean's use case may be better addressed by a separate attribute. My recollection is that they want to add nop slides to the prologue and epilogue that can be hotpatched to enable and disable instrumentation at runtime. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160414/a061e542/attachment.html>
2011 Sep 30
0
[LLVMdev] [patch] Add the returns_twice attribute
While I'd like to see support for hotpatching, the other Clang bugs block it from being useful. If Mozilla is close to working, let them have it. Thanks for asking :). -Austin On Thu, Sep 29, 2011 at 21:39, Charles Davis <cdavis at mymail.mines.edu> wrote: > Howdy Austin, > > I'm about to sacrifice the Hotpatch attribu...
2016 Apr 06
2
RFC: New function attribute "patchable-prologue"="<kind>"
Reid Kleckner wrote: > I'm assuming this attribute won't affect inlining or other IPO in any > way, but you should probably mention that in the langref. To directly answer this, this is just a *mechanism* to implement linkonce_odr type linkage. This in itself does not imply in IPO restrictions, that should come directly from the linkage type. -- Sanjoy
2012 Jun 15
0
Wine release 1.4.1
...handles and crashes on a particular VSD file 29956 Unable to create an empty Jet database file. 29984 Legend of Grimrock (test) crashes with "Device can't render to D3DFMT_G16R16" 30000 iw4mp (Call of Duty MW2 mod) loader crashes because some kernel32.dll API entries are not hotpatchable (DECLSPEC_HOTPATCH missing) 30001 iw4mp (Call of Duty MW2 mod) loader crashes due to iphlpapi.dll GetAdaptersAddresses not hotpatchable (DECLSPEC_HOTPATCH missing) 30005 Acrobat 8: installer action text for INSTALLMESSAGE_ACTIONDATA is not deformated 30012 MS Project 2010 crashes at sh...
2014 Jan 03
2
[PATCH net-next 1/3] net: allow > 0 order atomic page alloc in skb_page_frag_refill
...logical compact/reclaim behavior but doesn't fix it. Actually it still really quite bad because the whole thing loops until it gets to order-0 so it's effectively trying the allocation 4 times anyway. I typically see non-zero order allocations very rarely without these two pieces of code. I hotpatched a running system to get results from this quickly. Even setting the max order to order-1 I still see bad behavior. If anything this behavior should be conditional until this is ironed out. Performance data: http://pastebin.ubuntu.com/6687527/ -Debabrata
2014 Jan 03
2
[PATCH net-next 1/3] net: allow > 0 order atomic page alloc in skb_page_frag_refill
...logical compact/reclaim behavior but doesn't fix it. Actually it still really quite bad because the whole thing loops until it gets to order-0 so it's effectively trying the allocation 4 times anyway. I typically see non-zero order allocations very rarely without these two pieces of code. I hotpatched a running system to get results from this quickly. Even setting the max order to order-1 I still see bad behavior. If anything this behavior should be conditional until this is ironed out. Performance data: http://pastebin.ubuntu.com/6687527/ -Debabrata
2012 Mar 16
0
Wine release 1.5.0
...9891 Symantec VIP Access can not be activated 29894 LibreOffice: sdraw.exe runs out of GDI object handles and crashes on a particular VSD file 29956 Unable to create an empty Jet database file. 30000 iw4mp (Call of Duty MW2 mod) loader crashes because some kernel32.dll API entries are not hotpatchable (DECLSPEC_HOTPATCH missing) 30001 iw4mp (Call of Duty MW2 mod) loader crashes due to iphlpapi.dll GetAdaptersAddresses not hotpatchable (DECLSPEC_HOTPATCH missing) 30005 Acrobat 8: installer action text for INSTALLMESSAGE_ACTIONDATA is not deformated 30011 Paragon Alignment Tool needs...
2015 Jan 23
0
Wine release 1.7.35
...and AtlAxWinLic100. atl100/tests: Added tests for AtlAxAttachControl. atl: Don't conflict GWLP_USERDATA with user applications. ntdll: Fixed buffer size checking for ProcessWow64Information on 64bit in NtQueryInformationProcess. kernel32: Make SetUnhandledExceptionFilter hotpatchable. ntdll: Make RtlAddVectoredExceptionHandler hotpatchable. ole32: Make CoUninitialize and OleUninitialize hotpatchable. kernel32: Fixed buffer size on 64bit in IsWow64Process. atl: Improved content type handling of AtlAxCreateControlEx. atl100/tests: Added tests for...
2011 Sep 27
1
[LLVMdev] Function attribute size limit
Hi everyone, It looks to me like we're out of bits for function attributes. I need another one, unfortunately... Is there any objection to moving to 64 bits? I can write the patch. Thanks, Patrick
2014 Jan 03
0
[PATCH net-next 1/3] net: allow > 0 order atomic page alloc in skb_page_frag_refill
...aim behavior but > doesn't fix it. Actually it still really quite bad because the whole > thing loops until it gets to order-0 so it's effectively trying the > allocation 4 times anyway. I typically see non-zero order allocations > very rarely without these two pieces of code. I hotpatched a running > system to get results from this quickly. Even setting the max order to > order-1 I still see bad behavior. If anything this behavior should be > conditional until this is ironed out. > > Performance data: http://pastebin.ubuntu.com/6687527/ It seems that you shoot the...
2014 May 27
6
[LLVMdev] [PATCH] Symbol offsets
Somehow this cover letter was dropped from my symbol offsets patch set: 1. http://lists.cs.uiuc.edu/pipermail/llvmdev/2014-May/073200.html 2. http://lists.cs.uiuc.edu/pipermail/llvmdev/2014-May/073201.html Original message ----------------- About a year ago a proposal suggesting symbol offsets was brought to this list[1]. This proposal goes hand-in-hand with the prefix data proposal[2]
2011 Feb 23
1
[LLVMdev] LLVM ExecutionEngine/JIT trampoline question
I understand that we need to push the address to a register then branch using the register. But i am asking why there is a trampoline there such that a call to foo is first branched to an snippet and the snippet branches to the X86CompilationCallback. is this snippet necessary ? Thanks Xin On Tue, Feb 22, 2011 at 12:39 PM, Reid Kleckner <reid.kleckner at gmail.com>wrote: > The
2015 Oct 16
0
Wine release 1.7.53
...wined3d: Avoid the builtin texture coordinate varyings on core profile. wined3d: Avoid the builtin color varyings on core profile. wined3d: Use non-deprecated texture sample builtins in shaders on core profile. Michael M?ller (11): kernel32: Make WritePrivateProfileStringA hotpatchable. gdi32: Make BitBlt and StretchDIBits hotpatchable. advapi32: Mark some registry functions as hotpatchable. ws2_32: Implement InetPtonW function. comctl32: Add semi-stub implementation for LoadIconWithScaleDown. comctl32: Add implementation for LoadIconMetric....
2014 Jan 03
2
[PATCH net-next 1/3] net: allow > 0 order atomic page alloc in skb_page_frag_refill
On Thu, 2014-01-02 at 16:56 -0800, Eric Dumazet wrote: > > My suggestion is to use a recent kernel, and/or eventually backport the > mm fixes if any. > > order-3 allocations should not reclaim 2GB out of 8GB. > > There is a reason PAGE_ALLOC_COSTLY_ORDER exists and is 3 Hmm... it looks like I missed __GFP_NORETRY diff --git a/net/core/sock.c b/net/core/sock.c index