lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <czzcsmwaf42v47arvmwgrh4p7h3misoarremtc7r2cme2ceuud@yya5jfuqhuye>
Date: Wed, 9 Apr 2025 14:49:02 +0200
From: Maciej Wieczor-Retman <maciej.wieczor-retman@...el.com>
To: Dave Hansen <dave.hansen@...el.com>
CC: <hpa@...or.com>, <hch@...radead.org>, <nick.desaulniers+lkml@...il.com>,
	<kuan-ying.lee@...onical.com>, <masahiroy@...nel.org>,
	<samuel.holland@...ive.com>, <mingo@...hat.com>, <corbet@....net>,
	<ryabinin.a.a@...il.com>, <guoweikang.kernel@...il.com>,
	<jpoimboe@...nel.org>, <ardb@...nel.org>, <vincenzo.frascino@....com>,
	<glider@...gle.com>, <kirill.shutemov@...ux.intel.com>, <apopple@...dia.com>,
	<samitolvanen@...gle.com>, <kaleshsingh@...gle.com>, <jgross@...e.com>,
	<andreyknvl@...il.com>, <scott@...amperecomputing.com>,
	<tony.luck@...el.com>, <dvyukov@...gle.com>, <pasha.tatashin@...een.com>,
	<ziy@...dia.com>, <broonie@...nel.org>, <gatlin.newhouse@...il.com>,
	<jackmanb@...gle.com>, <wangkefeng.wang@...wei.com>,
	<thiago.bauermann@...aro.org>, <tglx@...utronix.de>, <kees@...nel.org>,
	<akpm@...ux-foundation.org>, <jason.andryuk@....com>, <snovitoll@...il.com>,
	<xin@...or.com>, <jan.kiszka@...mens.com>, <bp@...en8.de>, <rppt@...nel.org>,
	<peterz@...radead.org>, <pankaj.gupta@....com>, <thuth@...hat.com>,
	<andriy.shevchenko@...ux.intel.com>, <joel.granados@...nel.org>,
	<kbingham@...nel.org>, <nicolas@...sle.eu>, <mark.rutland@....com>,
	<surenb@...gle.com>, <catalin.marinas@....com>, <morbo@...gle.com>,
	<justinstitt@...gle.com>, <ubizjak@...il.com>, <jhubbard@...dia.com>,
	<urezki@...il.com>, <dave.hansen@...ux.intel.com>, <bhe@...hat.com>,
	<luto@...nel.org>, <baohua@...nel.org>, <nathan@...nel.org>,
	<will@...nel.org>, <brgerst@...il.com>, <llvm@...ts.linux.dev>,
	<linux-mm@...ck.org>, <linux-doc@...r.kernel.org>,
	<linux-arm-kernel@...ts.infradead.org>, <linux-kbuild@...r.kernel.org>,
	<linux-kernel@...r.kernel.org>, <kasan-dev@...glegroups.com>,
	<x86@...nel.org>
Subject: Re: [PATCH v3 09/14] x86: Minimal SLAB alignment

On 2025-04-04 at 09:59:49 -0700, Dave Hansen wrote:
>On 4/4/25 06:14, Maciej Wieczor-Retman wrote:
>> Adjust x86 minimal SLAB alignment to match KASAN granularity size. In
>> tag-based mode the size changes to 16 bytes so the value needs to be 16.
>
>I feel like we need a _bit_ of a discussion of the impact here. We are,
>after all, trying to get this feature into shape so that it can be used
>more widely outside of just debugging environments.
>
>What's the impact of this in a production environment?

I tried booting a fedora 41 on a Sierra Forest system with KASAN disabled
(disabled only the reports so the 8 byte alignment doesn't cause a wall of debug
information). Did so for both 8 byte alignment (default) and 16 byte alignment
(added by the series).

The differences looked mostly like noise, sometimes the higher alignment would
use up a little bit less memory, sometimes a little bit more. I looked at all
values in "cat /proc/meminfo".

Is there some slab/slub benchmark for the kernel that would make sense to
checkout here?

-- 
Kind regards
Maciej Wieczór-Retman

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ