[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
- To: tech-net%netbsd.org@localhost
- Subject: Re: panic: UBSan: Undefined Behavior in /syzkaller/managers/netbsd-kubsan/kernel/sys/netinet6/scope6.c:LINE, member access w
- From: Joerg Sonnenberger <joerg%bec.de@localhost>
- Date: Fri, 20 Sep 2019 16:43:45 +0200
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
Main Index |
Thread Index |