Received: by 10.223.185.116 with SMTP id b49csp4188852wrg; Mon, 26 Feb 2018 12:51:17 -0800 (PST) X-Google-Smtp-Source: AH8x227H2aTQH8b22f7GzW4tDUiPuOcvzPQL3RzHgDQB3m/T9djISKDEVvUfGc/3X8QEeUp0pZ9l X-Received: by 10.101.86.138 with SMTP id v10mr9405728pgs.353.1519678277323; Mon, 26 Feb 2018 12:51:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519678277; cv=none; d=google.com; s=arc-20160816; b=JHd6foNnI38tZQzhQ24xmDEhxOwy+vCQXOM+Dpm1oWov2fmRx/ELSqR/iZkL/t9zyZ u4HIXHx44C15t1tzSpW2191sEr7VzwZvk0BMwV6v6Wrhz9dKSj7zNu3zlID8cXHbefJX NjTWSrDT2IuozybmIjBNM4+PA90U+3W96/PgICXEkP/XtDA76kXjicldq87j7DTAWw8v 3eDd1Fsc2dEOrg4lI6/VmxKjyAMUKjbkksyPkuCuFFqbj8G9/Rv5F/IrPieQPbGn/Cz2 MyzhkC3DpV+MiM+FzGT4OvNv7a42FOL1iZn6DyAhmJ6VJFzPtu1lcDCLkkBvmf3R7hUm fYHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=8KuwRGcaf9w0usa3ep5lyQm08wB9i4oGvxUg7vt3pO4=; b=P2oycOR7OMaGKX7Wn3Oy/2lEbK0eN6ROkAhgX7/mS96PC682fS/jjaquWjExCsOS1b NjGkPGbznqmX414sHuOrNAIeGLPNSIWfT84wgPuOesEqki2xcAHpyNbpnX15xLiw0GFW 4kEO7g47ccquxYtfaIXrgNO5gsMPxlwj9escrEuKUfxMtmNDvKwQnMGzgnu2F/PUojk1 rJvJTfs23YPrp8/PimIZHNvfzdaWVt5QdGESBZOsi1WvQA8dpoU8pbzUbBJUMIYD+Lac uOIfecIV2Yfy8BTmOHtCqh7sS0WNDoqzaFXKuMmEnqkREazjQmYGcvmVXJW0am2uUF2q N0Ow== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v191si5839098pgd.807.2018.02.26.12.51.01; Mon, 26 Feb 2018 12:51:17 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753325AbeBZUt0 (ORCPT + 99 others); Mon, 26 Feb 2018 15:49:26 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:35270 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753023AbeBZUYt (ORCPT ); Mon, 26 Feb 2018 15:24:49 -0500 Received: from localhost (clnet-b04-243.ikbnet.co.at [83.175.124.243]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id AA67AF8B; Mon, 26 Feb 2018 20:24:48 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann , Johannes Berg Subject: [PATCH 4.14 08/54] cfg80211: fix cfg80211_beacon_dup Date: Mon, 26 Feb 2018 21:21:45 +0100 Message-Id: <20180226202144.774953452@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180226202144.375869933@linuxfoundation.org> References: <20180226202144.375869933@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 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 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Arnd Bergmann commit bee92d06157fc39d5d7836a061c7d41289a55797 upstream. gcc-8 warns about some obviously incorrect code: net/mac80211/cfg.c: In function 'cfg80211_beacon_dup': net/mac80211/cfg.c:2896:3: error: 'memcpy' source argument is the same as destination [-Werror=restrict] >From the context, I conclude that we want to copy from beacon into new_beacon, as we do in the rest of the function. Cc: stable@vger.kernel.org Fixes: 73da7d5bab79 ("mac80211: add channel switch command and beacon callbacks") Signed-off-by: Arnd Bergmann Signed-off-by: Johannes Berg Signed-off-by: Greg Kroah-Hartman --- net/mac80211/cfg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/net/mac80211/cfg.c +++ b/net/mac80211/cfg.c @@ -2863,7 +2863,7 @@ cfg80211_beacon_dup(struct cfg80211_beac } if (beacon->probe_resp_len) { new_beacon->probe_resp_len = beacon->probe_resp_len; - beacon->probe_resp = pos; + new_beacon->probe_resp = pos; memcpy(pos, beacon->probe_resp, beacon->probe_resp_len); pos += beacon->probe_resp_len; }