Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp185368lqj; Sat, 1 Jun 2024 13:54:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXINCcDr+ZNlDgf3VGGgOIod2CqfgANMAWChSBmhPRdzK4bEvmr9QbHrrMnPIH3O/kgEynLbLNX2wS9MmWOoEm3DcRRLwseEdHTsdk2NA== X-Google-Smtp-Source: AGHT+IEB8zQUx4vL5ciZmG1grdYFr1ioDx4L2MJKqzY1w7sQhWmklWpe+vAVTtSVLqql+qL3S1L6 X-Received: by 2002:a05:6214:4991:b0:6ad:650a:855d with SMTP id 6a1803df08f44-6aecd6a08f0mr90405166d6.23.1717275244128; Sat, 01 Jun 2024 13:54:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717275244; cv=pass; d=google.com; s=arc-20160816; b=V9gIADe/+6loKRW6zbRdhZAavUlasrorheexel/ZKpBuK3ZWIIYOijTrub7o5VIpDH tLVMRyRgZoTCgSi9BuZHE1MLZ7uz72h0zKAucu7svGEBOjL8shtLWyLWpRvqfykoDadc eXagLCNSrgx0eebgUpCwD0rZ4JgTPkVxVEdMthcfBcw80l7KyItQtJNzyawNzKbFUKVr S3KJ4j5oTdG8CMnMc4yHX8C5QN01a5CwJ9LoY5ORGMeEtW1timJoWAt3HX3VatV++qvw fb7HJISkFhIaacC3RRze85rpZR0T+nHHJW/LPjxBDjZannxvRC1enWdKuRTZSNiFVuj4 +g3Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature:dkim-signature:dkim-signature:dkim-signature; bh=Ptk5drCFwpLg9lSfuRWyk/LcrEFvlG2GrYpochrY8dI=; fh=FSaSg4Quh01Vo2wwj5CeoBPC0NWsmYvY0sbhQpss0vQ=; b=iYLq/Zzrw9EWwP8oLqbZnsUNl57Cgl++qbcjHyQAxse6RgjmJ8pwb0pSxXusn9nKT6 WSlj43uPaNdBuBHTLXW8DJ8V5LPAL1zOaMejF43AJE3cKI6ipUoBtA38Fz6+SS9+932G 2YsrF3ku/zSgD/yAhPXiRwHJLGmf7lKiz6QfrNsaPhjoO69v1NFTxLL6BXrR3xyNWD+S cUmpJ4jr+LtsvFbGqQbJQjOad7yxb8lEslYyzvD67mdwvrMsb9lmbVitRpbUKn1ajpUT uWjxOaL71k1QjWbTx/wta5PdEp4M6lvcJu7SR98R10FcAmiPvsb3mbe19/Wlwpmenw4V 7CZQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=Cxib2fJx; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=xeC6hnOL; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; arc=pass (i=1 spf=pass spfdomain=suse.cz dkim=pass dkdomain=suse.cz dkim=pass dkdomain=suse.cz); spf=pass (google.com: domain of linux-kernel+bounces-198005-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198005-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-43ff259e5c2si51563321cf.672.2024.06.01.13.54.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 01 Jun 2024 13:54:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-198005-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=Cxib2fJx; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=xeC6hnOL; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; arc=pass (i=1 spf=pass spfdomain=suse.cz dkim=pass dkdomain=suse.cz dkim=pass dkdomain=suse.cz); spf=pass (google.com: domain of linux-kernel+bounces-198005-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198005-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 960081C20DE9 for ; Sat, 1 Jun 2024 20:54:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 18A14154C15; Sat, 1 Jun 2024 20:53:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b="Cxib2fJx"; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b="b3SFhczq"; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b="xeC6hnOL"; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b="nZaSFi5Q" Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5E48C1CAA6; Sat, 1 Jun 2024 20:53:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717275234; cv=none; b=fMZP2qQHV63tio3etqK6wA/flTMBTFAXUJVDcgQzGS5xUa064D0hCR/kbHcSuV28ZdkL7HIbk2qmArQUnK5ymZaekjlD/WnHn0s7+sb3eS87jBuw77kAHky2z39O6QIm3KLPAu7qN2qHhFn3vOFjDc6kb1nn7Wycb1ynCNDeUpg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717275234; c=relaxed/simple; bh=zmGlOio8fwOq328cx754nKkHBll8pV+fC/JnKNKp85I=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=MGWUOg7Ka40ynV6G+0XXnMslb/LTK2aSnVfZEe7kBIxjba/Jk296aVaI20eBKP9KdNaLlRWwi14NxOQnBjoaNO37RjUJDiIg/eLkZkn8CKonyAyhNumAgAw0nqGpBxU3ffl1XEKFTDk2hrD/JUMagquGnRDK0nNxrFIBsmxPeHg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=suse.cz; spf=pass smtp.mailfrom=suse.cz; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b=Cxib2fJx; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b=b3SFhczq; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b=xeC6hnOL; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b=nZaSFi5Q; arc=none smtp.client-ip=195.135.223.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=suse.cz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.cz Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 2DC011FEEA; Sat, 1 Jun 2024 20:53:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1717275230; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:autocrypt:autocrypt; bh=Ptk5drCFwpLg9lSfuRWyk/LcrEFvlG2GrYpochrY8dI=; b=Cxib2fJxW3mQLOJyDR61T/AV5YjYePMYW4dM4RG4F7Ws1ua7vgcPa4IDp75RvDJzhuD3I1 PeSHr6Zbe5Ls8BJ3ngiY3E6wxz5bU1uNut9TrS9DhmAWvrUtTJj85JtQzm8EyZYIao4hve uMfvu6C3g1ns93ZKDCseCM/2bKuO7qM= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1717275230; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:autocrypt:autocrypt; bh=Ptk5drCFwpLg9lSfuRWyk/LcrEFvlG2GrYpochrY8dI=; b=b3SFhczqu64YCnft+yeg/FAGAvRPe41JtA4uWd0JIZKAb4nxe2LjK61hn1AVwuhI87XGoX AqpoT1GZe+zpWCBg== Authentication-Results: smtp-out2.suse.de; dkim=pass header.d=suse.cz header.s=susede2_rsa header.b=xeC6hnOL; dkim=pass header.d=suse.cz header.s=susede2_ed25519 header.b=nZaSFi5Q DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1717275229; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:autocrypt:autocrypt; bh=Ptk5drCFwpLg9lSfuRWyk/LcrEFvlG2GrYpochrY8dI=; b=xeC6hnOL2V/vTOwe6k9v+h5jymBx+6wyIzOREynZrvgekCTdC0OLjIXltJDNXWPOUy5cJI lF+nsL+YbAJDyKfz3IE2sHA+dATkcV0TS/+SzJK3gzbob2RAFFdtdr4Xu5g+ysNwC//1FT krLPxOVd7JptBgmhNLhxDZRdBs7TL60= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1717275229; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:autocrypt:autocrypt; bh=Ptk5drCFwpLg9lSfuRWyk/LcrEFvlG2GrYpochrY8dI=; b=nZaSFi5QMELda2Ux4+mKWF/vp7oiuqDoEf8xfpiBOKs3Y3ljnLu4ZNkl2HDXXJOxPR444l VO40tm2RM/YBj/AQ== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 01789137C3; Sat, 1 Jun 2024 20:53:48 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id VNc9O1yKW2bYTgAAD6G6ig (envelope-from ); Sat, 01 Jun 2024 20:53:48 +0000 Message-ID: <718071ea-e39f-473a-ad84-10dba436815f@suse.cz> Date: Sat, 1 Jun 2024 22:53:48 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH RFC 0/4] static key support for error injection functions Content-Language: en-US To: Roman Gushchin Cc: Akinobu Mita , Christoph Lameter , David Rientjes , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , "Naveen N. Rao" , Anil S Keshavamurthy , "David S. Miller" , Masami Hiramatsu , Steven Rostedt , Mark Rutland , Jiri Olsa , Hyeonggon Yoo <42.hyeyoo@gmail.com>, linux-kernel@vger.kernel.org, linux-mm@kvack.org, bpf@vger.kernel.org, linux-trace-kernel@vger.kernel.org References: <20240531-fault-injection-statickeys-v1-0-a513fd0a9614@suse.cz> From: Vlastimil Babka Autocrypt: addr=vbabka@suse.cz; keydata= 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 EP+ylKVEKb0Q2A== In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Flag: NO X-Spam-Score: -3.00 X-Rspamd-Action: no action X-Rspamd-Queue-Id: 2DC011FEEA X-Spam-Level: X-Rspamd-Server: rspamd2.dmz-prg2.suse.org X-Spamd-Result: default: False [-3.00 / 50.00]; BAYES_HAM(-3.00)[100.00%]; SUSPICIOUS_RECIPS(1.50)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.20)[-1.000]; R_DKIM_ALLOW(-0.20)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519]; MIME_GOOD(-0.10)[text/plain]; MX_GOOD(-0.01)[]; XM_UA_NO_VERSION(0.01)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FUZZY_BLOCKED(0.00)[rspamd.com]; RBL_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[2a07:de40:b281:104:10:150:64:97:from]; RCPT_COUNT_TWELVE(0.00)[19]; DKIM_SIGNED(0.00)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; FREEMAIL_ENVRCPT(0.00)[gmail.com]; FREEMAIL_CC(0.00)[gmail.com,linux.com,google.com,kernel.org,iogearbox.net,linux.ibm.com,intel.com,davemloft.net,goodmis.org,arm.com,vger.kernel.org,kvack.org]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; TAGGED_RCPT(0.00)[]; RECEIVED_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[2a07:de40:b281:106:10:150:64:167:received]; DKIM_TRACE(0.00)[suse.cz:+]; RCVD_VIA_SMTP_AUTH(0.00)[]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.cz:dkim,imap1.dmz-prg2.suse.org:helo,imap1.dmz-prg2.suse.org:rdns] On 6/1/24 1:39 AM, Roman Gushchin wrote: > On Fri, May 31, 2024 at 11:33:31AM +0200, Vlastimil Babka wrote: >> Incomplete, help needed from ftrace/kprobe and bpf folks. >> >> As previously mentioned by myself [1] and others [2] the functions >> designed for error injection can bring visible overhead in fastpaths >> such as slab or page allocation, because even if nothing hooks into them >> at a given moment, they are noninline function calls regardless of >> CONFIG_ options since commits 4f6923fbb352 ("mm: make should_failslab >> always available for fault injection") and af3b854492f3 >> ("mm/page_alloc.c: allow error injection"). >> >> Live patching their callsites has been also suggested in both [1] and >> [2] threads, and this is an attempt to do that with static keys that >> guard the call sites. When disabled, the error injection functions still >> exist and are noinline, but are not being called. Any of the existing >> mechanisms that can inject errors should make sure to enable the >> respective static key. I have added that support to some of them but >> need help with the others. > > I think it's a clever idea and makes total sense! Thanks! >> >> Patches 3 and 4 implement the static keys for the two mm fault injection >> sites in slab and page allocators. For a quick demonstration I've run a >> VM and the simple test from [1] that stresses the slab allocator and got >> this time before the series: >> >> real 0m8.349s >> user 0m0.694s >> sys 0m7.648s >> >> with perf showing >> >> 0.61% nonexistent [kernel.kallsyms] [k] should_failslab.constprop.0 >> 0.00% nonexistent [kernel.kallsyms] [k] should_fail_alloc_page ▒ >> >> And after the series >> >> real 0m7.924s >> user 0m0.727s >> sys 0m7.191s > > Is "user" increase a measurement error or it's real? Hm interesting, I have actually did the measurement 3 times even though I pasted just one, and it's consistent. But could be just artifact of where things landed in the cache, and might change a bit with every kernel build/boot. Will see. There's no reason why this should affect user time. > Otherwise, nice savings!