Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1655011ybg; Thu, 4 Jun 2020 15:45:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwiknmS3UweXY/5BuTe0IypCNCHCQQ2+3RJuT9cAUP5/U/8VjgUTwDzOFj9tIIqJ+fH+AgL X-Received: by 2002:aa7:c60e:: with SMTP id h14mr6607179edq.104.1591310736211; Thu, 04 Jun 2020 15:45:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591310736; cv=none; d=google.com; s=arc-20160816; b=MT8J++sjiR85uFuYFPH2EMFspq5yoQHKe1IheBocXOfgXU07psSrnzZcq59aEqo/Kz 3+0fz5MB/E3bMcrmnyb1eUltX89S3arwHOHuvmoi3i1YGhhXjlZEAkqvmg9bRaeCfpBO nlRJDSeIvQ94i3LSbf54Lnen1PfoTFxvCPxHjuUvgAxg1kQJWPq41MANOTV7uRHhcEdx NQtySpVzIBMOEr1Wc8Ut3oKhNySOPOFGpILGslC/4b80BnwCpMKHKl2DqpAH3Ey020Uu vSKRVEi8UHZWvbJ0na763/AEhDqXy3mwVgPP/0hXMxALfY6OMpmAD/YY9lF8Sds5mHuH rqkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=iU4vK4yEtLw8PYRYDHID45PDdFWFO638BHo1CKvfBF4=; b=kYoDmmZI3PJSPXZvtGfgscMOPTO6CgPpTbwMvNNATxp3JxjvdwbY6C+mfe3Yh34gHa rOVyIpAXmVC0HAOfHUnFjt7xYQmnI+ageT2o+oSk5JpXiKuudbLLJIZMjJkRbKXQ+LaK pK4T6tyDRfgnrrNJwR1CIbWcLYlrKBEiXHKQErLx2BJ2IfsXIe01aECeP+OFAf2lX82Q 30ozQNVyDGDM0Xof2T556ITG2LDjoc4zsJhDy6JteaFQPdOzDko2DFP9KYkBvU0daBY1 eWUzFpiVXSncsH9CRbJ/EQZU2PVKcjQAPBJem3G0R7+teEAtK7uE+Zzg4qy1Yh5M92La nkhg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g22si2525595eds.26.2020.06.04.15.45.13; Thu, 04 Jun 2020 15:45:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728107AbgFDWkW (ORCPT + 99 others); Thu, 4 Jun 2020 18:40:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44802 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726062AbgFDWkW (ORCPT ); Thu, 4 Jun 2020 18:40:22 -0400 Received: from shards.monkeyblade.net (shards.monkeyblade.net [IPv6:2620:137:e000::1:9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 39986C08C5C0; Thu, 4 Jun 2020 15:40:22 -0700 (PDT) Received: from localhost (unknown [IPv6:2601:601:9f00:477::3d5]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 2874511F5F8D1; Thu, 4 Jun 2020 15:40:21 -0700 (PDT) Date: Thu, 04 Jun 2020 15:40:20 -0700 (PDT) Message-Id: <20200604.154020.1609247845922031946.davem@davemloft.net> To: ahabdels@gmail.com Cc: kuba@kernel.org, ast@kernel.org, daniel@iogearbox.net, kafai@fb.com, songliubraving@fb.com, yhs@fb.com, andriin@fb.com, john.fastabend@gmail.com, kpsingh@chromium.org, kuznet@ms2.inr.ac.ru, yoshfuji@linux-ipv6.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org, yuehaibing@huawei.com, eric.dumazet@gmail.com, david.lebrun@uclouvain.be Subject: Re: [net] seg6: fix seg6_validate_srh() to avoid slab-out-of-bounds From: David Miller In-Reply-To: <20200603065442.2745-1-ahabdels@gmail.com> References: <20200603065442.2745-1-ahabdels@gmail.com> X-Mailer: Mew version 6.8 on Emacs 26.3 Mime-Version: 1.0 Content-Type: Text/Plain; charset=iso-8859-7 Content-Transfer-Encoding: base64 X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Thu, 04 Jun 2020 15:40:21 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org RnJvbTogQWhtZWQgQWJkZWxzYWxhbSA8YWhhYmRlbHNAZ21haWwuY29tPg0KRGF0ZTogV2VkLCAg MyBKdW4gMjAyMCAwNjo1NDo0MiArMDAwMA0KDQo+IFRoZSBzZWc2X3ZhbGlkYXRlX3NyaCgpIGlz IHVzZWQgdG8gdmFsaWRhdGUgU1JIIGZvciB0aHJlZSBjYXNlczoNCj4gDQo+IGNhc2UxOiBTUkgg b2YgZGF0YS1wbGFuZSBTUnY2IHBhY2tldHMgdG8gYmUgcHJvY2Vzc2VkIGJ5IHRoZSBMaW51eCBr ZXJuZWwuDQo+IENhc2UyOiBTUkggb2YgdGhlIG5ldGxpbmsgbWVzc2FnZSByZWNlaXZlZCAgZnJv bSB1c2VyLXNwYWNlIChpcHJvdXRlMikNCj4gQ2FzZTM6IFNSSCBpbmplY3RlZCBpbnRvIHBhY2tl dHMgdGhyb3VnaCBzZXRzb2Nrb3B0DQo+IA0KPiBJbiBjYXNlMSwgdGhlIFNSSCBj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