Re: [PATCH] i2c bus acquire / release cleanup, forbid i2c access in hard interrupt context

2019-12-22 Thread Jason Thorpe
> On Dec 19, 2019, at 9:46 AM, Christos Zoulas wrote: > > LGTM, thanks for doing this. I've pushed this in. I'll watch for any fallout over the coming days. -- thorpej

A new page allocator for UVM

2019-12-22 Thread Andrew Doran
Hi, Anyone interested in taking a look? This solves the problem we have with uvm_fpageqlock. Here's the code, and the blurb is below: http://www.netbsd.org/~ad/2019/allocator.diff Cheers, Andrew General overview The page allocator currently works in 4 dimensions, with

[PATCH v4 3/4] Combine x86 register tests into unified test function

2019-12-22 Thread Michał Górny
Reduce the code duplication and improve maintainability of x86 register tests by combining all of them to a single base function. --- tests/lib/libc/sys/t_ptrace_amd64_wait.h | 406 +--- tests/lib/libc/sys/t_ptrace_i386_wait.h | 335 +-- tests/lib/libc/sys/t_ptrace_x86_wait.h | 2417

[PATCH v4 4/4] Add tests for reading registers from x86 core dumps

2019-12-22 Thread Michał Górny
--- tests/lib/libc/sys/t_ptrace_x86_wait.h | 187 +++-- 1 file changed, 141 insertions(+), 46 deletions(-) diff --git a/tests/lib/libc/sys/t_ptrace_x86_wait.h b/tests/lib/libc/sys/t_ptrace_x86_wait.h index 4572e3eb8b23..7867f1e8dd1c 100644 ---

[PATCH v4 2/4] Fix alignment when reading core notes

2019-12-22 Thread Michał Górny
Both desc and note header needs to be aligned. Therefore, we need to realign after skipping past desc as well. --- tests/lib/libc/sys/t_ptrace_wait.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/lib/libc/sys/t_ptrace_wait.c b/tests/lib/libc/sys/t_ptrace_wait.c index

[PATCH v4 1/4] Include XSTATE note in x86 core dumps

2019-12-22 Thread Michał Górny
Introduce a simple COREDUMP_MACHDEP_LWP_NOTES logic to provide machdep API for injecting per-LWP notes into coredumps, and use it to append PT_GETXSTATE note. Since the XSTATE block uses the same format on i386 and amd64, the code does not have to conditionalize between 32-bit and 64-bit ELF

Re: [PATCH v3] Include XSTATE note in x86 core dumps

2019-12-22 Thread Michał Górny
Hi, First of all, I'm sorry for not replying for this long. I've got distracted with other things, and I've completely forgotten about this. On Tue, 2019-07-16 at 05:23 +1000, matthew green wrote: > > Introduce a simple COREDUMP_MACHDEP_LWP_NOTES logic to provide machdep > > API for injecting

Re: [PATCH] Kernel entropy rework

2019-12-22 Thread Paul.Koning
> On Dec 21, 2019, at 5:08 PM, Taylor R Campbell wrote: > > > > The attached patch set reworks the kernel entropy subsystem. > > ... > - For (e.g.) keyboard interrupt and network packet timings, this >is zero, because an adversary can cause events to happen with >