From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.224.53 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795929674; b=ypzkw9YAHUB/WcOZnYxlzE7UEc+IEsCnpT8hFjVrgiEYk0MkmoNSycq9UcnZSScPzbYD bhNurKj19bD98JfhFZsTdXywfYh+hgdSJAYv1/qDq4IlzHQsoPXn3M/tBUB+WszX/yjdS bXqDv+KIMpsWOj5PB2HmTZ9Ojmb5aq+NdpEGgLBFqLc4kUJ57zawL6Sle85C9hb54ooBZ L4Z1wEtjITYLUifcg/yyE2QG/s37DwzdMGfF4D3Pp+51b/6IRF2+NKhaoKxE6IunAoStJ 8RTSrBaxgKQPiY+BXUHehkBRCZqo1FN4VhljxH3OH6z1x8JnW+NwjLeVpaWghWcV+RQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795929674; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: Date:From:To:Cc:Subject:In-Reply-To:References:Message-ID: MIME-Version:Content-Type:Content-Disposition:User-Agent; bh=tuNPLna514MnNfWgIFPRzLfVh4jUy8r2ecqNbLBJ4VY=; b=gOnyNTGrHHcX/0Hc3PghIyFIcSbM1PUBieUaUUWWHpb4JTondCBlAk+YimzkkD7j1CHT RBtvWgIg3MLcNdAJgy6ODuvj5fT7K+rKlOaFfA1dJjQjFF228pwgH+44Qk74NoDhX2jxL kzn8aiDnEGcmSY/k5RwM4b2iRcCqd9WoF2lh5HNH55KT+34AdbMKL4kGXVXuBULAU/e8M +hm1IX+rjC0sd1CYe9Vbo3L5VF9Kt9Bd2G0DFy0sNv0hM1uhwwei7w9+DxxFFBV6IQzRA KewYqb6slTpbdFGKDS1VgrkHCbytSKJVCbSnmkNRCYfZepFMJugw45cUH2JjmAb43CA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=chrisdown.name; spf=pass smtp.mailfrom=chrisdown.name; dkim=pass header.d=chrisdown.name header.i=@chrisdown.name header.a=rsa-sha256 header.s=google header.b=FibQnQEk; arc=none smtp.remote-ip=74.125.224.53 Received: from mail-yx1-f53.google.com (mail-yx1-f53.google.com [74.125.224.53]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D7BCC606A329 for ; Sun, 29 Nov 2026 05:21:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org D7BCC606A329 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=chrisdown.name Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chrisdown.name Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chrisdown.name header.i=@chrisdown.name header.a=rsa-sha256 header.s=google header.b=FibQnQEk Received: by mail-yx1-f53.google.com with SMTP id 956f58d0204a3-67990a45e02so9462299d50.3 for ; Sat, 28 Nov 2026 21:21:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chrisdown.name; s=google; t=1795929673; x=1796534473; darn=vger.kernel.org; h=user-agent:content-disposition:content-type:mime-version:message-id :references:in-reply-to:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=tuNPLna514MnNfWgIFPRzLfVh4jUy8r2ecqNbLBJ4VY=; b=FibQnQEkNEonUi65mrYY8qRucGC8zP+2oI20MOtNlBklBOSeh8IeaTW2HS746jbG24 MkBlsHNK9JeZ+sM0rZ7Bkzso7jHN07UGADrv0sW0b19mrnDOu46hoBPkMwz/a/ImdEFv t2+ItWOdISxnySSARHGcqGYvwreVaJuuSLdVo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795929673; x=1796534473; h=user-agent:content-disposition:content-type:mime-version:message-id :references:in-reply-to:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=tuNPLna514MnNfWgIFPRzLfVh4jUy8r2ecqNbLBJ4VY=; b=Ja7FB5rNrNbbaB3qyIBPYjZMHC+L4SNFp97c9+tzU2HgRB7UWqB3rW6LBF7Y8CCmX4 fb3lWD2zGaXlX0nmEntIOxYT5onVa/6kmiG3t0yeV3n8YkTsSpAiUiKkwHHPGK2SpxOX xtwib+JHNf/ZDZvjy9QlEPQfYbTcdME+no9XcbD+ESDetu/C1c+JniHXEHGjblGIE6WO GiIU7OWR8rA1f51533JXljI6Qgs1yE9Kb97uUErTGsncuKteBZ03ygvDja2G7V+nxlnf qJKAlBkknhtux4AqCO+RXNVitVSRNy2PwvCdf88R0eiiQ4KWknTGQ3sUBQ6skI772GzQ rXiw== X-Forwarded-Encrypted: i=1; AL+hErHlj4ZX85bHibK+mvqj/bwf6RhM+UThH//1HS8UeT2Ks6zG8tvOlg7aCk44UANxeud2xjPLYozSMaloWVk0cfU=@vger.kernel.org X-Gm-Message-State: APuU4Z8V54xKOMrs87isPTDlx5W19vyuAg0sk4RtZOfvwPCZkPCPWqGK 88lU75kKmNGyXIRAl5EXXAKkuzBMrDajKJgl13RGCSXYhVuvCbGJXkqD+ytOdYj1MOM= X-Gm-Gg: AZFdTZegtJPkGFlSWYpyihfO9GZZ2JF6ZCFqt/6wifZh0RDMlDLmjZXhnyL9ELHpky8 1U4T/54PDnE8XX4z35UnHp9NaHXLOFSXeoRSlwGR5n4bZcXt/iELc2a3eiOh7xaaf+boLKi/fEF mlAw35xqqn+Z8sZnhNiJp24vTqo/LfjddhCMd7Z4rjJ8K2lhICgYJahB+kpffqgj0xowUd6U9Qi iyqtgWKlfsX7+zgkcgH7LyimkqwK844Os6YbqZBOLlR9WNXcHqGMUXmqmHXdrbIg9i5X5JaXjh+ ANNlavBBPNjAvlx6rQHRO+rtwcY6/rHNJRM4RVdZM7YYu+pGHfWw6H1a96BZUWTuRsxKDb0zEg9 22aYHmyrayPQol7r2SqBigzOzMm8kCt+Ou8uJPzO9RAqB8FAXnEOEbzCO4Joki2pkMrS+yp16C+ nE36RMK/3HkZHQubqp5e+4tPNk27RUFnnzmHtDfEd+Sub/hxJlDuPWSMrqY08sOEABzrl6rGq7D Xded3GgJLtHUbLlToP66DwwS1vWyz8Wuh2y3wdY3PJ5vLVdNqkUeLuKMT7xVniCJcMqnK5hD3o+ BN8Bw7SxtZFTLM3E/ghP+W20DwyK7TSe/QNxTRtQLn0MqDIR4kZ0HrgQo7bbpaAmzjWTBcVrBa8 1fngYKn7AlpMCPtKsCAwkI9FXAN8DA+cbpWVXdokFsCCUNBB0BMiXIP0hGINmF7RQC8H0qwcAzO OGg6jIcEv26HJJlnaizJQ/kW9aBN97zN0uGBnF+eNXrmmCLqzSlWPoVrMw2BPxpOetxlC01E/i4 MSokkVw2W4M2v/ddJqRqJM= X-Received: by 2002:a05:690e:810:20b0:67d:b995:a5b9 with SMTP id 956f58d0204a3-67df442229cmr8870772d50.49.1795929673056; Sat, 28 Nov 2026 21:21:13 -0800 (PST) Received: from [172.20.0.2] (c-73-207-185-9.hsd1.ga.comcast.net. [73.207.185.9]) by smtp.gmail.com with ESMTPSA id 956f58d0204a3-67df31fa545sm13546379d50.2.2026.11.28.21.21.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 Nov 2026 21:21:11 -0800 (PST) Date: Sat, 28 Nov 2026 21:21:09 -0800 From: Chris Down To: Harry Yoo Cc: Marco Elver , Vlastimil Babka , Andrew Morton , Hao Li , Christoph Lameter , David Rientjes , Roman Gushchin , Kees Cook , GONG Ruiqi , Jonathan Corbet , linux-mm@kvack.org, linux-hardening@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-team@meta.com Subject: Re: [PATCH v3 0/6] mm/slab: Support selecting slab hardening features at boot In-Reply-To: References: Message-ID: X-Mailing-List: linux-hardening@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/2.4.3 (cc9e3943) (2026-10-09) Hi Harry, Harry Yoo writes: >> I'd rather mirror hardened_usercopy= instead of mitigations=off. >> >> slab_hardening=on (turn on all slab hardening features) >> slab_hardening=off (turn off all slab hardening features) >> (Otherwise it is determined by CONFIG_*.) > >Should have been CONFIG_*_DEFAULT_ON. Sure, I'd like v4 to take "on" and "off" for the buckets and partitions, with one SLAB_HARDENING_DEFAULT_ON for the default, like HARDENED_USERCOPY_DEFAULT_ON. >> I hope we don't reach this point, but more fine-grained control should >> be achivable if it is indeed required. Marco's list syntax also gives us [no]buckets and [no]partition without any extra parameters, so v4 will have them too. The buckets only cost about 1 MiB by your numbers and the partitions about 18 MiB, so a memory-conscious host can keep the buckets with slab_hardening=nopartition. Thanks! Chris