Re: [PATCH] aarch64: Fix missing BTI instruction in trampolines

2020-07-01 Thread Richard Sandiford
Omar Tahir writes: > Hi, > > Got a small bugfix here regarding BTIs and trampolines. > > If two functions require trampolines, and the first has BTI enabled while the > second doesn't, the generated template will be lacking a BTI instruction. > This patch fixes this by always adding a BTI

[PATCH] aarch64: Fix missing BTI instruction in trampolines

2020-06-29 Thread Omar Tahir
Hi, Got a small bugfix here regarding BTIs and trampolines. If two functions require trampolines, and the first has BTI enabled while the second doesn't, the generated template will be lacking a BTI instruction. This patch fixes this by always adding a BTI instruction, which is safe as BTI