Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp1287146pxv; Fri, 9 Jul 2021 23:45:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz+nY126opn3RbBC38YJARo8rw1lt9Nmr2C4S84ieAoVopX1eFmydssr69IlKYSCOMCaADs X-Received: by 2002:a05:6402:151:: with SMTP id s17mr51388934edu.233.1625899558222; Fri, 09 Jul 2021 23:45:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625899558; cv=none; d=google.com; s=arc-20160816; b=oAa64Dx+GaaxYNKPNBGKQ3CFIzj6g0ZofsDXGI6ZY9L4RpGHHXjSqvQIusJe5Jj8Da 0+CGkuqrbN0qOzWWy9XmqLFXM1j3Ur/L6FxxdWZx6VxKap0bgE+WC8QriRuZ3R2sNXhr f/whfrP0l10jZ2DKQirGx+y+Jeb3+4oVroSQHKCHbGrBRRsOzxWCmP+vUs5QBj8r5rDQ iZLWjVIrs8UK8wY2tcpj3jwkB6eYPWYXheB2eP4A+hupJUoXEg1OUgPJLI0s4Sacw2na 48jVj6L77fzdXpMXvJx9bKWNsJ8poqxvHg98IJ5piJ68EtjNhjO+kCB5DSykUStxHCGF X9LQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=dwycTdqqZHXcEKWQbpxqQDdDN0IyXGhKet5Rw6g7qk8=; b=RuC8d+Nbx64MRf86zVUWMQPxkSeBnNRp744tbju27YmA7Ev7prtZ75nDb06VtyzdPh iWwJGmpFEUydmrka/3C4EEX3QLBKdJKUdwLEYNcFg5SFq4lmT4K2aEWyJSZzFsUHtuff TD+WbSDd+z6c5f5zozjpWD819q0SUN+pQFKi19613cAlyZjEoJIR42dlXRhFxqUfIS8o Q1bEBf1DPUEe6Ayog2B7A9pTn2VPpx8SNp53J1qcvCHani9j2rBMMK8nIiQtdnA1NWhI +FBc1GgIDbKEYC9ND8rtTHWTBbZb0cS/ckm2oR1Dj79Z4/a9XSRr+k5X9jOxFLkeZdtj WhHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=w8vIT1mX; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b22si10325952edw.220.2021.07.09.23.45.25; Fri, 09 Jul 2021 23:45:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=w8vIT1mX; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229754AbhGJGgY (ORCPT + 99 others); Sat, 10 Jul 2021 02:36:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:51024 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229612AbhGJGgX (ORCPT ); Sat, 10 Jul 2021 02:36:23 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C333A61375; Sat, 10 Jul 2021 06:33:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1625898819; bh=VNm9/Ak6s/CzjktMVEDWaoLYk+ioO7EhXz5ijCF6AIE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=w8vIT1mXTYGGJE4vsScr2a8AU9r3OfMTIQC8GJwP+2M66YUBsfTOz9B+HauwQXqSI ohsyQxRw8H//DYz3jCJqrS8bRf3fYcxdYnRnHWS6ugrFGgfNhcSP5wyi/orlVhjabj 1bs2PV+PKH46ycfj5Iyq2CNs6CKE5u+u272lJF9Q= Date: Sat, 10 Jul 2021 08:33:36 +0200 From: Greg Kroah-Hartman To: Davis Mosenkovs Cc: Johannes Berg , Felix Fietkau , linux-wireless@vger.kernel.org, netdev@vger.kernel.org Subject: Re: Posible memory corruption from "mac80211: do not accept/forward invalid EAPOL frames" Message-ID: References: <872e3ea6-bbdf-f67c-58f9-4c2dafc2023a@nbd.name> <56afa72ef9addbf759ffb130be103a21138712f9.camel@sipsolutions.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Fri, Jul 09, 2021 at 10:48:06PM +0300, Davis Mosenkovs wrote: > On 2021-07-02 at 09:54 Johannes Berg () wrote: > > > > > If testing procedure mentioned in my first email is sufficient (and > > > using skb->data is the correct solution in kernel trees where current > > > code doesn't work properly), I can make and test the patches. > > > Should I do that? > > > > Yes, please do. > > > > Thanks, > > johannes > > > I have done the testing on kernel versions 4.4.274, 4.9.274, 4.14.238, > 4.19.196, 5.4.130, 5.10.48, 5.12.15 and 5.13.1. > Only kernels 4.4.274, 4.9.274 and 4.14.238 are affected. > On kernels 4.19.196, 5.4.130, 5.10.48, 5.12.15 and 5.13.1 current code > works properly (and skb->data produces incorrect pointer when used > instead of skb_mac_header()). > I have submitted patches for the affected kernel versions: > https://lore.kernel.org/r/20210707213800.1087974-1-davis@mosenkovs.lv > https://lore.kernel.org/r/20210707213820.1088026-1-davis@mosenkovs.lv > https://lore.kernel.org/r/20210707213834.1088078-1-davis@mosenkovs.lv Please resend and cc: the stable@vger.kernel.org list so these can actually be applied. You have read: https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html right? thanks, greg k-h