x86: WARN() hackery
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest12 patches 9 repliesIn review
- v111 patches 5 repliesSuperseded
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/12 | x86: Rework __bug_table helpersarch/ | +20 | 0 replies | |
| 2/12 | bug: Add BUG_FORMAT infrastructureinclude/ lib/ | +39 | 0 replies | |
| 3/12 | bug: Clean up CONFIG_GENERIC_BUG_RELATIVE_POINTERSinclude/ | +8 | 0 replies | |
| 4/12 | bug: Add BUG_FORMAT_ARGS infrastructureinclude/ lib/ | +16 | 0 replies | |
| 5/12 | bug: Add report_bug_entry()include/ lib/ | +23 | 0 replies | |
| 6/12 | bug: Implement WARN_ON() using __WARN_FLAGS()include/ | +17 | 0 replies | |
| 7/12 | bug: Allow architectures to provide __WARN_printf()include/ | +22 | 0 replies | |
| 8/12 | x86/bug: Add BUG_FORMAT basicsarch/ | +21 | 6 replies | |
| 9/12 | x86/bug: Use BUG_FORMAT for DEBUG_BUGVERBOSE_DETAILEDarch/ include/ | +13 | 0 replies | |
| 10/12 | x86_64/bug: Implement __WARN_printf()arch/ arch/ arch/ | +168 | 1 reply | |
| 11/12 | x86/bug: Implement WARN_ONCE()arch/ include/ | +11 | 0 replies | |
| 12/12 | x86_64/bug: Inline the UD1arch/ arch/ arch/ | +19 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH v2 00/12] x86: WARN() hackery
Hi!
I was going through my patch cabinet the other day and found these patches.
Mark was going to see if he could make ARM64 play ball to see if the generic bits really are that. But clearly he's forgotten about things just as much as I had.
We should probably just merge these, as they improbe the code-gen for WARN() significantly on x86 and then I'll help Mark out for ARM64 when he gets around to it and needs a hand.
Freshly rebased and somewhat tested.
As a quick reminder, this makes WARN(), which has a vararg printf like arguments work with the #UD based WARN infra by hiding the format in the bug_table (its a constant after all) and replacing this first argument with the address of the bug-table entry while making the actual function that's called a UD1 instruction.
The exception handler then create a va_list from pt_regs and vprintk() does the rest.
Also here:
git://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git x86/bugs