Message ID | cover.1732016064.git.ptesarik@suse.com (mailing list archive) |
---|---|
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id AECD5D44148 for <linux-mm@archiver.kernel.org>; Tue, 19 Nov 2024 11:45:16 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 36BC56B0095; Tue, 19 Nov 2024 06:45:16 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 31BA86B0098; Tue, 19 Nov 2024 06:45:16 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1E4656B0099; Tue, 19 Nov 2024 06:45:16 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id F22C76B0095 for <linux-mm@kvack.org>; Tue, 19 Nov 2024 06:45:15 -0500 (EST) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id A7E9AA03C4 for <linux-mm@kvack.org>; Tue, 19 Nov 2024 11:45:15 +0000 (UTC) X-FDA: 82802662656.05.AF8F3D2 Received: from mail-ed1-f43.google.com (mail-ed1-f43.google.com [209.85.208.43]) by imf13.hostedemail.com (Postfix) with ESMTP id 011D120023 for <linux-mm@kvack.org>; Tue, 19 Nov 2024 11:44:20 +0000 (UTC) Authentication-Results: imf13.hostedemail.com; dkim=pass header.d=suse.com header.s=google header.b=eaVtUyEt; spf=pass (imf13.hostedemail.com: domain of ptesarik@suse.com designates 209.85.208.43 as permitted sender) smtp.mailfrom=ptesarik@suse.com; dmarc=pass (policy=quarantine) header.from=suse.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1732016565; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=mZ5xLXq1auqcHSe45YUJ8SRlrVXe/jZLSm2XCMGI+NA=; b=jXWuC15lPngOdNpe9jaFj7LsWWeQ9/eaXHBG58OznpPkjkBjpLFUQc5bbtcZ+GLRk4OERh LhS24s3Yh0++F02Wr3zppNpw2J5EN6wp5SigVNJNT0SvIEH9aw9QLD0aBERYiPtA5sPQsM gnftrKMxfTGfWzSk18n/FjT7m5lGjfc= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1732016565; a=rsa-sha256; cv=none; b=6XeK+StW5xA/P727pcnneWy/w05l2UOHfKf/KGNB95LWi+z3POtnsVs3Xklv7CvJh3uuB3 12zzgvrwOZcD9x/cdVJvfQETVJHr5iYdjQ7x4YpeZXF+k/WCMm0fftPGd030QR3yuzP4Ty x5TnuKnrvKrySjxtsz8mBGm6ly3FWjs= ARC-Authentication-Results: i=1; imf13.hostedemail.com; dkim=pass header.d=suse.com header.s=google header.b=eaVtUyEt; spf=pass (imf13.hostedemail.com: domain of ptesarik@suse.com designates 209.85.208.43 as permitted sender) smtp.mailfrom=ptesarik@suse.com; dmarc=pass (policy=quarantine) header.from=suse.com Received: by mail-ed1-f43.google.com with SMTP id 4fb4d7f45d1cf-5cfbe8f0cd8so375675a12.1 for <linux-mm@kvack.org>; Tue, 19 Nov 2024 03:45:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1732016712; x=1732621512; darn=kvack.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=mZ5xLXq1auqcHSe45YUJ8SRlrVXe/jZLSm2XCMGI+NA=; b=eaVtUyEtvNQWsB8NXhLxQiI2nu+hndnA8RLBAqkVh0Pxu32HIT41ZJFXWOVaneXLia 9wsz056TIYFwVgjbTNpzTPf4QbBXIkev0NwcMWlUypJk6mpzliwM/n9KfboVRksbkydZ K5FqelBhq89WG+LO8D2bjfQ2Gz96XcmkD75kbObH4SFqRAmKejZybNzC0x9VR9zZTcO/ QweYFqiTwVNE5loIzk9hYM7UOh3tjF67k3Lka5dEub/jtrTXoaOO+dR7oLdL4yoULSQC H3hAXzdiVdQsISZ+E34eibaHwEMeS+JzIlCOJTUUdI7BgJA3W+egqHbgqCiNaVm7nc5x 2hcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732016712; x=1732621512; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=mZ5xLXq1auqcHSe45YUJ8SRlrVXe/jZLSm2XCMGI+NA=; b=lXc28Mf/qEs3dzjh332IFAizD9Nc4H8YAtVBIdFJnMxw1yke13iTmb2sCGN+pTt3JJ LNlG1fiXASsbEXeyuDmML30E+0DGYQnbBYN42rd8U+/mnMF3mHFv5xlDetuaxzCu35Ft TKVzsCiAuC9m8GQzXLJueSMZXnafnhpCMO/7Z24leu45GeaopzKqa1lAvuGHTP+n50fT ekXSfcUTQV6EHnw8D8fz94lH4nhLxnPUpgJIK3gBY3hgXqn/KMHODizhJmnwo0Xbnw2p oCnmf7Eici/vqA6TCdtOtf4OSVkgUj4hBiWoCTjbsNyUT+6+zhGgIBFu2KEMogwN58c1 gjsA== X-Gm-Message-State: AOJu0Yym9hIofOr213F75YJGETPNH+x2mZjvEhT1li+8Lv/0gELnoQo9 xVCR/FxKs0+mhkPKaamddRC+mR7UXZ1ufibFHGQRsJ0sLBLLTTnIw2OG+eXZ+vT5twS1QMToG/w C X-Google-Smtp-Source: AGHT+IEfjAhyexdqiJfCVcYCeJhp7cyp1yYQsZIhT1vcXE1GZmBclRIgAIdt7QwVoKkA+QeG7xh4IQ== X-Received: by 2002:a05:600c:4710:b0:431:558c:d9e9 with SMTP id 5b1f17b1804b1-432df78ac1bmr58711265e9.5.1732016340235; Tue, 19 Nov 2024 03:39:00 -0800 (PST) Received: from localhost ([193.86.92.181]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-432da28b76fsm198451965e9.28.2024.11.19.03.38.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Nov 2024 03:39:00 -0800 (PST) From: Petr Tesarik <ptesarik@suse.com> To: Andrew Morton <akpm@linux-foundation.org>, Kees Cook <kees@kernel.org>, Jinbum Park <jinb.park7@gmail.com> Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Petr Tesarik <ptesarik@suse.com> Subject: [PATCH v2 0/2] Fix mm/rodata_test Date: Tue, 19 Nov 2024 12:37:37 +0100 Message-ID: <cover.1732016064.git.ptesarik@suse.com> X-Mailer: git-send-email 2.46.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspam-User: X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: 011D120023 X-Stat-Signature: ritktubi9enq3ejiya1o9joae9psagjh X-HE-Tag: 1732016660-744945 X-HE-Meta: U2FsdGVkX18reqeYKRTFF+uieBJoCjQbm3ufys7/i0EP1NJYJaB7FCSE+a277ch8RMLOGn1v/2AGqCur89PA0waF90xuMqORwuYkJmHeoeDDBGXWNxOG+2xR42Sc0h7Rqux14JR6ef748O9mzbHMDMkHZuaKA1v1bxPo73tyVpERuXMwQjVpHZ1O1a4UseaUgUsR5qjgHhzKJMvhRYYQpgT+5T1jx+NvgztvbgmQ+k9G5IBWTwrj+E+Cfl4FXffhpGJlnWKu+RCva918QBLyqZBJ/CWafdzjbHGEy92mJY6UMIdDwRpe13Ny4g7l4Ct0deemO3je8vYjlzUPDlaa4lUcV2tEyvbBuu2Ta0R76esCC9ZiJ3uE0ZEK2cRMqjubFw56rTKvZ8ob7WpNzyJ7QqtiDoiVMMuEXVHa3GOn7IGYC/ExNnWNbxsF6BkNPiMMq15k9nQkyhxYAhKr/xLqFWv7CY/XS/ll1MFvKydcW74AEvk3L7+e1xDTFOf//xu6GjDJCTjx+qadOAXwy5EBeJKWHvd4gm5BfdPX+M/M0s/m5O7X5bzozrQaDhSxmRLG4IH9ImgBYEPrTbvQYJ3PSj9YGzxuekX8GMnuKd7rbgnkpkuSa8ArNhQBuhcpkhQ3+5cu+y+fBLTELulx/c4SARafBFoQXA8NA+h1sKnAUGyD+DiFZFUkA1bNQyLLUpVySzCNlgPfmx5lECCs2jzdewa5iMc5NRxebMpP35RGVXQR9quZZBVI/Bm4toAhMk/25OsGjxWXCBVCmN4CO304pK+G1xxzGIO5BL2XQc40ukjr86Z5oDqw2MIQwS87q+oZK+Gvhps7XTL2RyyKDx79HLF9mZxs9V/k8zrN37IQYTV7xUHb9aJfaZ/33ppxnTOCJKVSL+z4SK4h7K0x/FnW8OPgvCq+7fmAgxQncY6DwQVA/iOhcTxgns9l7EfVpnmoDed8WL/IH4TnnzvxG1n 4FkhQ8FZ k+I1HWxktvo0uaibn1oFgj3RdUJie+sePheGaZxLW4BjiNb51Nxh1jt9AVf49wJhW5RakVV9cNRiIGiUQ+5ZvwKuye8RSNV5eHWO5XFCNJHQSCzj9oMPiw3UwEok3KeL//2KmRt4RtoPjcc5BMY4jhQW81rMcX+EqpJlLFRiDmq97Ses/Q5YK1Nsd/uEMyvOlDO0+HNt4qFF9jaG1u0Ngo62F5vobIt7jl1XbsPjjfkhTDGuIYfNnO2iywG7u+xxS3xgqgLC9Pi7ioGf6Kx5ie/Lb989CfepTNH9JQZUfavk5Im/aLXjHKU3/uKcgR+bJ1JSQT66u6M6Fc/YGfGz7UMkcwdFb37PukGFsbJyP5wIcA8NfpTkOA2/BfDdCrhurO/eji1XLXvKJsaq+z3wOmXKB4Q== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000027, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series | Fix mm/rodata_test | expand |
On Tue, Nov 19, 2024 at 12:37:37PM +0100, Petr Tesarik wrote: > Make sure that the test actually reads the read-only memory location. > Verify that the variable contains the expected value rather than any > non-zero value. > > Petr Tesarik (2): > mm/rodata_test: use READ_ONCE() to read const variable > mm/rodata_test: verify test data is unchanged, rather than non-zero > > mm/rodata_test.c | 7 ++++--- > 1 file changed, 4 insertions(+), 3 deletions(-) Nice fixes! Thanks for catching these. Reviewed-by: Kees Cook <kees@kernel.org>