Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3237686imu; Sat, 24 Nov 2018 00:48:09 -0800 (PST) X-Google-Smtp-Source: AFSGD/UhzbWgzeJexR6XYKqEUgQdi1+l31430APMbJsq5wEgJCts68JOMuZXB1m32b2MvqEkT+Ou X-Received: by 2002:a17:902:f83:: with SMTP id 3-v6mr19331896plz.254.1543049289014; Sat, 24 Nov 2018 00:48:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543049288; cv=none; d=google.com; s=arc-20160816; b=xEVjRvHVY0bz+C4fAbx1eIY5Y0Le6RtbZRSBknJjUZWM4wPI8DxWfmoiDF0Mf/vnFO vryWAYytUFTgSXcUjEATIDmFTctUU5PgPJXG/Dc+BaYh5w4jg+WgFBbzGJYaamlp4lHI 4mTjfldcUYxR9YTFRUtZ3hcwZ64M0l49Z/TXzhW35a0WieCiXQ6qbqQC4d+R/ey4dP9i fDnkJyxi+9yiyietD8Ogzgq09lzldJ1DjER9fd/k+fiz1ozzgc/8zMFR9A2/i+LRbhyU ajVGxLnEICaUIIPC5YGERZGQBBDKAFiQz5GH3+QM38hR0PdS5op+EKbW+7d56i8nP3P8 t+qw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date; bh=0jrtivcpH+xTxbl+n8E4/zxEaj2WiVm3jui57YkQnoU=; b=O0x0L2TZOyRfeI6qeZm1P585uB5aM9EXrv/i/mQbO3Di/pbJlCmyYpAv4Eg89mEjw6 0epS4gB/ufSbhd8auef5IxPSjGHLctHKnL9+pYByKq287Wu6DLhJps5H0RckS6fBHGzo jjOv6k4Ptsp4GRz2z1n8ooBZrGvp1uNenXrg2cSP/t1OK/1w4NR1EV5OHXpMKUnQ5C55 qYCDWwOyCbdSezG2/wHPYoa0UWcPlrdySQ8PuuohkYDEkeFdZllsYS98V7kd9vvTw4pX jEh/SazcilSRtpxomg60MkxGYxGCk5JaP8REpakY2rC7Coi8H0vBRGwTiaqHzWO3f1XV W8Yg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=codethink.co.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f16si20899967pgg.173.2018.11.24.00.47.54; Sat, 24 Nov 2018 00:48:08 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=codethink.co.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388158AbeKXFTb (ORCPT + 99 others); Sat, 24 Nov 2018 00:19:31 -0500 Received: from imap1.codethink.co.uk ([176.9.8.82]:60610 "EHLO imap1.codethink.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726368AbeKXFTa (ORCPT ); Sat, 24 Nov 2018 00:19:30 -0500 Received: from cpc118554-reig6-2-0-cust775.6-3.cable.virginm.net ([86.18.95.8] helo=xylophone.i.decadent.org.uk) by imap1.codethink.co.uk with esmtpsa (Exim 4.84_2 #1 (Debian)) id 1gQGHB-0001FX-Ky; Fri, 23 Nov 2018 18:34:01 +0000 Date: Fri, 23 Nov 2018 18:33:56 +0000 From: Ben Hutchings To: Alexei Starovoitov , Daniel Borkmann Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/3] bpf: Test defence against SSB exploitation Message-ID: <20181123183356.5q4bu47zpj5wdufb@xylophone.i.decadent.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series adds log messages for all patching done by the verifier, and a test case to verify that the patch to defend against SSB exploitation is applied where needed. Ben. Ben Hutchings (3): bpf/verifier: Log instruction patching when verbose logging is enabled selftests/bpf: Add the ability to test for a log message on success selftests/bpf: Add test case for defence against SSB exploitation kernel/bpf/verifier.c | 13 +++++++++++++ tools/testing/selftests/bpf/test_verifier.c | 26 +++++++++++++++++++++++++- 2 files changed, 38 insertions(+), 1 deletion(-) -- Ben Hutchings, Software Developer Codethink Ltd https://www.codethink.co.uk/ Dale House, 35 Dale Street Manchester, M1 2HF, United Kingdom