Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2066243pxb; Mon, 12 Apr 2021 13:26:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyMm7HRWhvaHf//FW3X+4QET40rB1zA75YePH2kZXfa5bxmATkswaLYq58j+CWeHYMxY0hu X-Received: by 2002:a62:e70e:0:b029:245:3a00:5720 with SMTP id s14-20020a62e70e0000b02902453a005720mr21148600pfh.0.1618259176495; Mon, 12 Apr 2021 13:26:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618259176; cv=none; d=google.com; s=arc-20160816; b=Lo9U8HwS/UaxCCmyTolDfmmuEs9wMylZLU/ZQ+cHXjqHOV3QeD5VYKKpYzSAy1L9O9 QDXiQNVEkQ5dXioVFZCgcgIjFAfuUsOZPWCw77QkS6VmIgz8BI4CT9LHmk57U8fUgXy8 jzr9EFHCEsAZ+X3b5JZ9lU21sQtqaDAEugwqoNLV89IJtpyCguxTaLl5XufC53Rcu1KR U0nm8EsNCzgJVfq+m577wCLEHzLGc6HPn1uQpovDoIpjBZsjBfWZTJxNTf/bKof6065e onCzTKlaPCiSrthgCmKPaBZIcbRF/6j8rGLWS8/+8v1EdFIzuUwEIjwWO1pObghwhE3w 8fcg== 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=BNnHZcF0hohfZ+X9b1F6FL27T4cEOcgPLOs2hkFWb3fLFDTflEwMuhHT6RKkwhlP4Y k5q16d+hgMHeebn3MNMM1whJluWTymd0E6MY0PbJBOnb9s1lRl0dXiviKm1fZxUk7YZ2 4CzlO8uKY5XYR9y1OPgqLkrFKRxg3KyQnw1WC+Gc0nVZD+zY4qn11fM9Fb6ew0cse/9f aCLkv5TwHaYMF+9gf9mNz+cUj4iGtOanT7nl8JO26BltZCZeJSibmoPvDKSPIotH20b2 N+jRpRAJ+LAcmP470cN/M0UCj4oCN2yGlXIhAHqbN4bHZnzvTK/HU4jDg3f2IOuW3HrB OFSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=pHEQVkJR; 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 y8si14706955pll.329.2021.04.12.13.26.02; Mon, 12 Apr 2021 13:26:16 -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=pHEQVkJR; 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 S238676AbhDLI6Q (ORCPT + 99 others); Mon, 12 Apr 2021 04:58:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:40488 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238639AbhDLIuN (ORCPT ); Mon, 12 Apr 2021 04:50:13 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1C10661220; Mon, 12 Apr 2021 08:49:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1618217395; bh=LO7YwfIm5hEC50Aj+yN9I5w4WLEye4vQ50dCqVN9Zfs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pHEQVkJRiDb+M6b6aqJgGhQl+f18gG1CHYSXDjJadh/xhonAuiQvlINQcXfmioBcA 6Jrvn6APieYBgYVKKQogSjdby6g5KFL1ZfbKlQFlZZlKN1YPT3V1yUBALZtVnR8c6E 2PEDHdCMN7yOv3y5hBzrR2KU0sDfGvWF9TVZeg+E= 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 5.4 110/111] net: ieee802154: stop dump llsec params for monitors Date: Mon, 12 Apr 2021 10:41:28 +0200 Message-Id: <20210412084007.931891457@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210412084004.200986670@linuxfoundation.org> References: <20210412084004.200986670@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);