Message ID | 20240821-landlock_houdini-v2-0-b46211ca64f9@suse.com |
---|---|
Headers | show
Return-Path: <ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=Tlj2X5L3; dkim=fail reason="signature verification failed" header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=Qw4L1B+c; dkim=fail reason="signature verification failed" (1024-bit key) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=Tlj2X5L3; dkim=neutral header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=Qw4L1B+c; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.linux.it (client-ip=213.254.12.146; helo=picard.linux.it; envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it; receiver=patchwork.ozlabs.org) Received: from picard.linux.it (picard.linux.it [213.254.12.146]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WplQL31Fjz1yYZ for <incoming@patchwork.ozlabs.org>; Wed, 21 Aug 2024 22:05:14 +1000 (AEST) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 747993D2263 for <incoming@patchwork.ozlabs.org>; Wed, 21 Aug 2024 14:05:12 +0200 (CEST) X-Original-To: ltp@lists.linux.it Delivered-To: ltp@picard.linux.it Received: from in-7.smtp.seeweb.it (in-7.smtp.seeweb.it [217.194.8.7]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id E765D3D0D4D for <ltp@lists.linux.it>; Wed, 21 Aug 2024 14:04:35 +0200 (CEST) Authentication-Results: in-7.smtp.seeweb.it; spf=pass (sender SPF authorized) smtp.mailfrom=suse.de (client-ip=2a07:de40:b251:101:10:150:64:1; helo=smtp-out1.suse.de; envelope-from=andrea.cervesato@suse.de; receiver=lists.linux.it) Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2a07:de40:b251:101:10:150:64:1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by in-7.smtp.seeweb.it (Postfix) with ESMTPS id 3DC7E200929 for <ltp@lists.linux.it>; Wed, 21 Aug 2024 14:04:35 +0200 (CEST) Received: from imap1.dmz-prg2.suse.org (unknown [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-out1.suse.de (Postfix) with ESMTPS id 805CD22290; Wed, 21 Aug 2024 12:04:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1724241873; 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; bh=o5GkRdaCbK6AU7b5UPus/8FaTCN2tTjBesaxaeFDlD4=; b=Tlj2X5L3KvzcyRZaXN7ger7TSwnOMrsrFj+1GD2Q6YzB6/qRGsajdfSl/spxOVMgT5VUFF 77QXCoJou11jlVqSBR6n4THBAZZv7f6nQoylK9MkEfogWszc/PjQ8bjj8DgLAhcSX4cCwf rfcvNIbcCzPd8oIb21Qauw82Vp2lxv0= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1724241873; 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; bh=o5GkRdaCbK6AU7b5UPus/8FaTCN2tTjBesaxaeFDlD4=; b=Qw4L1B+c6ypxEKSEtEGOgsE36adfHaHKiql0XaEPh1H+Nuc1OGyu25MUJK4DFqaQyQRLVB fDoukkXDsKyk+jAw== Authentication-Results: smtp-out1.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1724241873; 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; bh=o5GkRdaCbK6AU7b5UPus/8FaTCN2tTjBesaxaeFDlD4=; b=Tlj2X5L3KvzcyRZaXN7ger7TSwnOMrsrFj+1GD2Q6YzB6/qRGsajdfSl/spxOVMgT5VUFF 77QXCoJou11jlVqSBR6n4THBAZZv7f6nQoylK9MkEfogWszc/PjQ8bjj8DgLAhcSX4cCwf rfcvNIbcCzPd8oIb21Qauw82Vp2lxv0= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1724241873; 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; bh=o5GkRdaCbK6AU7b5UPus/8FaTCN2tTjBesaxaeFDlD4=; b=Qw4L1B+c6ypxEKSEtEGOgsE36adfHaHKiql0XaEPh1H+Nuc1OGyu25MUJK4DFqaQyQRLVB fDoukkXDsKyk+jAw== 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 6251A139C2; Wed, 21 Aug 2024 12:04:33 +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 Gxz7FdHXxWaTBgAAD6G6ig (envelope-from <andrea.cervesato@suse.de>); Wed, 21 Aug 2024 12:04:33 +0000 From: Andrea Cervesato <andrea.cervesato@suse.de> Date: Wed, 21 Aug 2024 14:04:24 +0200 Message-Id: <20240821-landlock_houdini-v2-0-b46211ca64f9@suse.com> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAMjXxWYC/32NQQ7CIBBFr9LMWgylGKsr72EagzBjJ1YwYImm4 e5iD+DyveS/v0DCyJjg2CwQMXPi4CuoTQN2NP6Ggl1lUFJp2SspJuPdFOz9MobZsWdBSmvaKez 3toM6e0Ykfq/J81B55PQK8bM+5PZn/8RyK1pB1F2J7KFDY05pTri14QFDKeULT1YLpq8AAAA= To: ltp@lists.linux.it X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1724241873; l=913; i=andrea.cervesato@suse.com; s=20240812; h=from:subject:message-id; bh=G4sAW2IMgEBA54U81GyIUcqqlRJfUo5l5jbUjqBEZf4=; b=j5M3rk4YMKrkoUqBqFebr9KPGaXDf1Y57+66iSiqlezjY1u3Bl6RmI0To4dxuTiuo9tiBo3hB +orIgLvdnddDdsraHutBMojEkrLyVN1H9DDnh7jZj35Pq/DOuxjjwFg X-Developer-Key: i=andrea.cervesato@suse.com; a=ed25519; pk=RG/nLJ5snb1tLKGwSORQXBJ5XA4juT0WF2Pc/lq9meo= X-Spam-Level: X-Spamd-Result: default: False [-4.30 / 50.00]; BAYES_HAM(-3.00)[99.99%]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_ALL(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; FUZZY_BLOCKED(0.00)[rspamd.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; TO_DN_NONE(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.com:email,suse.com:mid] X-Spam-Score: -4.30 X-Spam-Status: No, score=0.1 required=7.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE shortcircuit=no autolearn=disabled version=4.0.0 X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on in-7.smtp.seeweb.it X-Virus-Scanned: clamav-milter 1.0.3 at in-7.smtp.seeweb.it X-Virus-Status: Clean Subject: [LTP] [PATCH v2 0/2] Reproducer for the landlock houdini bug X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Test Project <ltp.lists.linux.it> List-Unsubscribe: <https://lists.linux.it/options/ltp>, <mailto:ltp-request@lists.linux.it?subject=unsubscribe> List-Archive: <http://lists.linux.it/pipermail/ltp/> List-Post: <mailto:ltp@lists.linux.it> List-Help: <mailto:ltp-request@lists.linux.it?subject=help> List-Subscribe: <https://lists.linux.it/listinfo/ltp>, <mailto:ltp-request@lists.linux.it?subject=subscribe> Cc: landlock@lists.linux.dev Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it Sender: "ltp" <ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it> |
Series |
Reproducer for the landlock houdini bug
|
expand
|
More information at: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-42318 Signed-off-by: Andrea Cervesato <andrea.cervesato@suse.com> --- Changes in v2: - add SAFE_KEYCTL macro - verify in setup that landlock is activated - Link to v1: https://lore.kernel.org/r/20240820-landlock_houdini-v1-1-ff3bffc93eaa@suse.com --- Andrea Cervesato (2): Add SAFE_KEYCTL macro Add landlock07 test include/lapi/keyctl.h | 26 +++++- runtest/syscalls | 1 + testcases/kernel/syscalls/landlock/.gitignore | 1 + testcases/kernel/syscalls/landlock/landlock07.c | 109 ++++++++++++++++++++++++ 4 files changed, 136 insertions(+), 1 deletion(-) --- base-commit: edc79222abdcf32a344c806275a30a5c7cbf1ef3 change-id: 20240820-landlock_houdini-f244f52e87c3 Best regards,