From patchwork Thu Apr 21 13:48:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Jason A. Donenfeld" X-Patchwork-Id: 12821651 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 39B65C433FE for ; Thu, 21 Apr 2022 13:48:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1387434AbiDUNvR (ORCPT ); Thu, 21 Apr 2022 09:51:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60000 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1387428AbiDUNvP (ORCPT ); Thu, 21 Apr 2022 09:51:15 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D52C381BE for ; Thu, 21 Apr 2022 06:48:24 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id B190CB824BA for ; Thu, 21 Apr 2022 13:48:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0341AC385A1; Thu, 21 Apr 2022 13:48:20 +0000 (UTC) Authentication-Results: smtp.kernel.org; dkim=pass (1024-bit key) header.d=zx2c4.com header.i=@zx2c4.com header.b="Jfl1boT7" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zx2c4.com; s=20210105; t=1650548899; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=wsQn3FCgwGEOIdAOB8Zy2pB9zP2WVgdAz95d1q7MMBo=; b=Jfl1boT7iirjbh8ftXn11miv4wEUqFWS6Ww9x23AOX2/tfRGljwfj63VBzwJdJpPy86Cwg DDtGEcKvIwj7rdiUP5r/t+mPZUyjSFw+GixqK8CDjcpdAaVekMuK84QUwVuOtcBropIe8C N58dmE2t0TE/XC13zf7brF5YioGD6v8= Received: by mail.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id a3195342 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Thu, 21 Apr 2022 13:48:18 +0000 (UTC) From: "Jason A. Donenfeld" To: netdev@vger.kernel.org, davem@davemloft.net, kuba@kernel.org Cc: "Jason A. Donenfeld" Subject: [PATCH net 0/2] wireguard patches for 5.18-rc4 Date: Thu, 21 Apr 2022 15:48:03 +0200 Message-Id: <20220421134805.279118-1-Jason@zx2c4.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org Hi Davekub, Here are two small wireguard fixes for 5.18-rc4: 1) We enable ACPI in the QEMU test harness, so that multiple CPUs are actually used on x86 for testing for races. 2) Sending skbs with metadata dsts attached resulted in a null pointer dereference, triggerable from executing eBPF programs. The fix is a oneliner, changing a skb_dst() null check into a skb_valid_dst() boolean check. Thanks, Jason Jason A. Donenfeld (1): wireguard: selftests: enable ACPI for SMP Nikolay Aleksandrov (1): wireguard: device: check for metadata_dst with skb_valid_dst() drivers/net/wireguard/device.c | 3 ++- tools/testing/selftests/wireguard/qemu/arch/i686.config | 1 + tools/testing/selftests/wireguard/qemu/arch/x86_64.config | 1 + 3 files changed, 4 insertions(+), 1 deletion(-)