Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp1594810pxb; Mon, 12 Apr 2021 01:47:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxczsQIJSBTg9oQafW28Oaf7ahHxdL5DobMkHlmNHUqkY5+SbYAcDERvHysDJRYb3NZWxth X-Received: by 2002:a62:17d5:0:b029:248:f224:f393 with SMTP id 204-20020a6217d50000b0290248f224f393mr10542617pfx.71.1618217233617; Mon, 12 Apr 2021 01:47:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618217233; cv=none; d=google.com; s=arc-20160816; b=05t7XUoEGYh5QDQOFhtullD7fvEjQUzhvtKqEtJG26uf7eQuT9zQvpM8zHcyle1M4E T13DZbjKjhfaNVMM/gcVQ2nzwgNShcxpZTeoxkSIoVvUKoracPPbWqsdszPqUIB60kQ8 9Mly4HHGkdfg8EhhpfQXlcyj6eMQxll38kK4nrGAnNsest+NMaq5fqw8kAdPV6Or1Hmm /MQ+qrk1McqWS2JpMZgkDB0LMwoHbRjlDbh+Lt5x4T1Ct5OARpCOnkEpiG9KG6JrVxgl wWXtekYYa0qYtJihxB84RQQWVPvjno+F8Ni1tK0Pzcv0R2mQpFuisEq/isDCJcZC/E9r CGpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Df36cKyNfvL5t5e7ngzRKEgPoUqXzS28v2Tba4qunDs=; b=douVcTIT5Tx7F4z9NtHsqIS/EHP2YFeOBtwsA83WYvbsYfraLO8x7WYjvsKG1zw4dJ 29D2at8v0jd8S6qMSdAmzV5D6dXrx2/RmJ45rZsmXTlfZtsY6q/7BttXL55NwNhY89+4 KUyA48cKZDS+1gjzIantu6Gxdkac1eeiw7q5eHiGKZgkPY2zFdqsmhtB5VKartLWzT2W VTmqq5hZgzqzpp6okjxMpTBOv/La8+y2RFRiTpLZ8tNOz8XDYhhf1K4FoXzzUmx9YdVV m5IKCSwUZR1jS3xeux5Y1gYK2ZGxR9uNO2roE/9dPFGtcIzYrbgAyxfPF8IXXUBV1Lx1 nNdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=fi9sMRp4; 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; 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 k3si13948255pfu.132.2021.04.12.01.47.01; Mon, 12 Apr 2021 01:47:13 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=fi9sMRp4; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237880AbhDLIqT (ORCPT + 99 others); Mon, 12 Apr 2021 04:46:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:36784 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237747AbhDLIpI (ORCPT ); Mon, 12 Apr 2021 04:45:08 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0EF9961246; Mon, 12 Apr 2021 08:44:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1618217090; bh=LO7YwfIm5hEC50Aj+yN9I5w4WLEye4vQ50dCqVN9Zfs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fi9sMRp4Kx8nc98qu8XETFcjdEJ9A8GpEdb+JPmPsX7wl0iLhmYLQ/Vo1mwYTFTYl Jooc4IlbTL5e9Z59QtqZ5KhXNhTOD6AcuD+i8gY9Fdj4dC5kx6YAbsifr8ftEybVCU nlNLTzSKub4GFBmSewiIReKjl9X4Sgkva4FLOE0w= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, syzbot+cde43a581a8e5f317bc2@syzkaller.appspotmail.com, Alexander Aring , Stefan Schmidt Subject: [PATCH 4.19 65/66] net: ieee802154: stop dump llsec params for monitors Date: Mon, 12 Apr 2021 10:41:11 +0200 Message-Id: <20210412084000.229034468@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210412083958.129944265@linuxfoundation.org> References: <20210412083958.129944265@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Alexander Aring commit 1534efc7bbc1121e92c86c2dabebaf2c9dcece19 upstream. This patch stops dumping llsec params for monitors which we don't support yet. Otherwise we will access llsec mib which isn't initialized for monitors. Reported-by: syzbot+cde43a581a8e5f317bc2@syzkaller.appspotmail.com Signed-off-by: Alexander Aring Link: https://lore.kernel.org/r/20210405003054.256017-16-aahringo@redhat.com Signed-off-by: Stefan Schmidt Signed-off-by: Greg Kroah-Hartman --- net/ieee802154/nl802154.c | 5 +++++ 1 file changed, 5 insertions(+) --- a/net/ieee802154/nl802154.c +++ b/net/ieee802154/nl802154.c @@ -836,8 +836,13 @@ nl802154_send_iface(struct sk_buff *msg, goto nla_put_failure; #ifdef CONFIG_IEEE802154_NL802154_EXPERIMENTAL + if (wpan_dev->iftype == NL802154_IFTYPE_MONITOR) + goto out; + if (nl802154_get_llsec_params(msg, rdev, wpan_dev) < 0) goto nla_put_failure; + +out: #endif /* CONFIG_IEEE802154_NL802154_EXPERIMENTAL */ genlmsg_end(msg, hdr);