NetBSD Problem Report #60882
From www@netbsd.org Thu Oct 15 13:31:14 2026
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature RSA-PSS (2048 bits)
client-signature RSA-PSS (2048 bits))
(Client CN "mail.netbsd.org", Issuer "YR1" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 084A81A923B
for <gnats-bugs@gnats.NetBSD.org>; Thu, 15 Oct 2026 13:31:14 +0000 (UTC)
Message-Id: <20261015133113.3BA901A923C@mollari.NetBSD.org>
Date: Thu, 15 Oct 2026 13:31:13 +0000 (UTC)
From: nia@pkgsrc.org
Reply-To: nia@pkgsrc.org
To: gnats-bugs@NetBSD.org
Subject: KASAN/KUBSAN massively bloat the kernel
X-Send-Pr-Version: www-1.0
X-From4GNATS: "nia@pkgsrc.org via gnats" <gnats-admin@NetBSD.org>
>Number: 60882
>Category: kern
>Synopsis: KASAN/KUBSAN massively bloat the kernel
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Oct 15 13:35:00 +0000 2026
>Originator: nia
>Release: -current, -11, -10
>Organization:
The NetBSAN Foundation
>Environment:
NetBSD siphon 11.99.9 NetBSD 11.99.9 (SIPHON) #2: Sun Oct 11 21:09:47 CEST 2026 nia@siphon:/encrypt/obj/sys/arch/amd64/compile/SIPHON amd64
>Description:
KUBSAN/KASAN seem to be producing massive amounts of kernel bloat,
resulting in kernel sizes that approach 200MB.
This impedes debugging and finding bugs because a kernel that is 100MB+
is a struggle for the bootloader and in some cases doesn't even load.
>How-To-Repeat:
Build a kernel with the following configuration, e.g. for amd64:
# $NetBSD$
include "arch/amd64/conf/GENERIC"
options KUBSAN
makeoptions KASAN=1
options KASAN
no options SVS
Observe file size of over 100MB.
>Fix:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.