tech-net archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: panic: UBSan: Undefined Behavior in /syzkaller/managers/netbsd-kubsan/kernel/sys/netinet6/scope6.c:LINE, member access w



On Fri, Sep 20, 2019 at 02:58:31PM +0200, Kamil Rytarowski wrote:
> memcpy/memcmp is too invasive here as we need to change macros shared
> with userland.

The kernel use falls into two categories:
(1) strict alignment architectures are supposed to have ensured the
alignment of all packet data via appropiate pulldowns.
(2) non-strict alignment architectures assume that access is fine.

Given that this is performance sensitive, doing unnecessary work here
really matters. So when fuzzing with ubsan, enable the strict alignment
logic...

Joerg


Home | Main Index | Thread Index | Old Index