Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp164584imm; Tue, 18 Sep 2018 19:04:43 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdb3NfHj16H3pZ77/69g5Ipru15EVb7j/M3C5NO7Y6PM4u88Ci6uedGf4n6lT5H81sBkiPS+ X-Received: by 2002:a63:9712:: with SMTP id n18-v6mr29978474pge.69.1537322683656; Tue, 18 Sep 2018 19:04:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537322683; cv=none; d=google.com; s=arc-20160816; b=Yj3N4XnZXIy9gS5gf5lL33dmrK6UqCaOL8u3MVn27IzM4AHGTSSIipFmDOG8agx9Cc ObzBYK40xcFHx/rXutficRCfmbk/lUxID24PeWgEX24jPrisLpewqOcN/+wklI6ZVaPg USUnhPR4tD43FqVm1+CxPQWO8GeiBAAUNH7zxUKvVCUJCMEaQz0TAys2iaztHkgdAO5q HYMVwA06eNyp0KL9Y25MGba99EuRz0EiuF2WGXd0kJXjBJQKJscC6Gsdg5b155KKLQfl oz3igAZVdrMLq34Y2sFpxXCXj+GzKZMeoboVZ0AkxJYHttQFo2lkDMPkdXp6PoSdAlXc T2hQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=KXQnvbDJthlUWrIvSVBLeFVoEpa7DU5/5L6OqQUaCD8=; b=QCSU7duvgyO2UvVifQXxIO1ZraCCREGo3xIUBqexPQfcD7Zltpn83Zs4+gS99y7bKC emPQgKmqL6UNNJlIDXp4L/PfpgPbSEIi2oP/MRKnBOcozzPBPAaeNb00QOiPDdmv/B8H Bq3SUlAht5ZraWyIgzGze17q+QHpDvvejaJ2pTq4SeUpgEgrcqqhI43V1bIWtqc1mXRs lwYd5rjK+uhueE3UVw+G4urmiv5TOkBkuV4Fdrqu2UipffWOhHLfCDKxA0Y90738a0E3 O9tVp3QBVMdK+O/50+1wA94znpK/D8SGpg8UTRuBmAa6R4rAkHTw5Vp3t4uc/eF7uMQe PENQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zx2c4.com header.s=mail header.b=2LWnP+H5; 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=pass (p=NONE sp=NONE dis=NONE) header.from=zx2c4.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c17-v6si18554350pgp.299.2018.09.18.19.04.27; Tue, 18 Sep 2018 19:04:43 -0700 (PDT) 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; dkim=pass header.i=@zx2c4.com header.s=mail header.b=2LWnP+H5; 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=pass (p=NONE sp=NONE dis=NONE) header.from=zx2c4.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730849AbeISHjl (ORCPT + 99 others); Wed, 19 Sep 2018 03:39:41 -0400 Received: from frisell.zx2c4.com ([192.95.5.64]:55489 "EHLO frisell.zx2c4.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726887AbeISHjl (ORCPT ); Wed, 19 Sep 2018 03:39:41 -0400 Received: by frisell.zx2c4.com (ZX2C4 Mail Server) with ESMTP id 54a8ede5; Wed, 19 Sep 2018 01:46:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=zx2c4.com; h=mime-version :references:in-reply-to:from:date:message-id:subject:to:cc :content-type; s=mail; bh=oh5Av8KMPztDpn13YdNF1G112xc=; b=2LWnP+ H5o3QlGiM9VRsLyUaVgsbx62Sm/HK+FQMPrLI6+zIvorAfvANzKYjzfnbidS1N5V 6sWi2axNh6e8CfWgd8xtUrVs+Tx2MLslUMoWkub4URrejxJLsE0Yb+2FhQQTUREW RsckiVLHF5V6Pi013TD5WKXIdQwWpZfib1Vj5hnWAicPks2N/GqpppW0gOF2UcXm Mcvbpv5TAFFPZ8ozGAqbZ+ttjvewKGH5IqcHyzVbLf+cdXn9zuAmG82fBHeSQ/f6 A/gx2V9JyzuK99GO9DxPJnNGS6Yeq2zGZ4Fmkcup0pqIGGgnD0wCkMSR4IBBpEfX nnnwIucVheuGV+AQ== Received: by frisell.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id a786a58e (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128:NO); Wed, 19 Sep 2018 01:46:35 +0000 (UTC) Received: by mail-oi0-f50.google.com with SMTP id x197-v6so3651142oix.5; Tue, 18 Sep 2018 19:04:12 -0700 (PDT) X-Gm-Message-State: APzg51DUj54ZOwLpHfZELkFfeFD06EF127Md6S295AcyPrKE8D+gu5Y/ /Cb97deE+w3Kirklwrmm5vwTXb5j1V79kEEzQR4= X-Received: by 2002:aca:f58f:: with SMTP id t137-v6mr323560oih.244.1537322652282; Tue, 18 Sep 2018 19:04:12 -0700 (PDT) MIME-Version: 1.0 References: <20180918161646.19105-1-Jason@zx2c4.com> <20180918161646.19105-21-Jason@zx2c4.com> <20180918233411.GB17466@lunn.ch> In-Reply-To: <20180918233411.GB17466@lunn.ch> From: "Jason A. Donenfeld" Date: Wed, 19 Sep 2018 04:04:01 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH net-next v5 20/20] net: WireGuard secure network tunnel To: Andrew Lunn Cc: LKML , Netdev , Linux Crypto Mailing List , David Miller , Greg Kroah-Hartman Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Andrew, On Wed, Sep 19, 2018 at 1:34 AM Andrew Lunn wrote: > I see this BUG_ON() is still here. It really needs to be removed. It > does not look like you need to crash the kernel here. Can you add in a > test of len >= 128, do a WARN and then return. I think you then leak > some memory, but i would much prefer that to a crashed machine. Sure, I'll change it to that. Regards, Jason