Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp8036398ybi; Thu, 6 Jun 2019 05:46:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqw2EYwVyjLCtQLM+XGMcaMxN8XFKSwqNyvyifPCBkDyFGX8j6a2MkRH8cPT1324HgWur6kX X-Received: by 2002:a17:90a:a102:: with SMTP id s2mr51029119pjp.53.1559825217022; Thu, 06 Jun 2019 05:46:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559825217; cv=none; d=google.com; s=arc-20160816; b=x7R8uMM+j5g1834VmqLsgVHjgjdp0YT6M0g6nTftLl6EAlVwqdsU71P1AZ989IE6y3 OWUD6XDrdY/0kJOQSy7cidFW/cCiyJyf3Xo73VPnHbpRV+7ZMwOWS/VorlUfwkZI/cYL nNHudUXd2v6ISZSrij+g+h8V9WWRjYO4aTzgw2so9jLpGIlEw6yADAtUl7avrOIyezl3 XC0aguuRI7+nvBGZAN02zlPumxefYGIaKWnkEkvFPGw+SB7AIX0w/s2i3KawG81RBa2Q H7M5SJXo44d6ehzNIHnv+wZiKOHLNAJ72BRSub68w8UtDVe73l9kUuB1VNTubl9yEoNW E4Cg== 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 :message-id:date:subject:to:from:dkim-signature; bh=oMMiwjAlMh6MGR8worNddSzah23ku1550J8bzwy/Gxg=; b=qqlqfdVV1RlYff1nP0cX2R7A+IpUFdkxzV9ZvlN6SnS7daARF2cWgQHrjgoO7rl2/+ ZtrQbuU/YXPrmM/kCp3NloAs1efn+cKo0BQvrNs8ctGfU+JGkF0OjJjJUlFT9KiGVAjW VkJ5CPt55WK3MPd+SgWdeYzqYvFgrTrwXATFgSYBlmnJCE5SLVzN0atmwifAl5lX04nQ SVktldgubb0kk1QzV2xHmX4JkWPTUPDZ3OnNlYE5d+sI+nXmmGAkJ3p5c8xiJfSAd9om dvoXAEDZ0FX93Nz+u+A3z9nXAsYqKGwtNcEkyPFQV31Q9juHKDbE9sCz4mnJlQOxNgpw XlOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@silvair-com.20150623.gappssmtp.com header.s=20150623 header.b="1/hjtpNc"; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-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 k8si1590864plt.200.2019.06.06.05.46.26; Thu, 06 Jun 2019 05:46:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@silvair-com.20150623.gappssmtp.com header.s=20150623 header.b="1/hjtpNc"; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728695AbfFFL7O (ORCPT + 99 others); Thu, 6 Jun 2019 07:59:14 -0400 Received: from mail-lf1-f41.google.com ([209.85.167.41]:41613 "EHLO mail-lf1-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727867AbfFFL7O (ORCPT ); Thu, 6 Jun 2019 07:59:14 -0400 Received: by mail-lf1-f41.google.com with SMTP id 136so1321550lfa.8 for ; Thu, 06 Jun 2019 04:59:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=silvair-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=oMMiwjAlMh6MGR8worNddSzah23ku1550J8bzwy/Gxg=; b=1/hjtpNcwugk5Bd3/5XwmN0UqYOyRJ3S9ONb3FUXLirBzkpKpuAXWrwsgHzkhIi43B 7wSODec5hieOR6Cwi6bOnhYGiEiFbFSq2FwKy5h5gDDis+AmMe/iN3ogyBpuANpeMt6b 9Acpty5UMe7NqgZ/byw+h6XC7DfMCwna8Qeh2cOmnPu9Z9ZvHCEhJ1PSxU4d+OLAF4lO KZHosa95cEAK6SPqa36C2IcfC8lZmzDAeb+WsRsjM3ZYI+iMbMgqngvukOak/Rte3t6x qplXh5wm1Z3QwexNTwOcf0NKWDbZHA7IAM5scb5TwP5r/unGRmr06N4K03So51ikKzdi sr0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=oMMiwjAlMh6MGR8worNddSzah23ku1550J8bzwy/Gxg=; b=Ktc5l55NJk3djFQPNnaeJ+M/ZdsF5XnTM/5Z8YQXkkH3ELwh9pPnW9MSYf+1OoxO1N 1TsQ9LsReVVNwf5nYcrCzNA0VZbymnikVdaGCNJb/ycxKGQaXvHk2X6EGRdoaoxqKxDC aYJ4FSYwL61BORYdgVKREV7XwnwOdYIr3YjRxr2o3YAqe+QQdUaQkkQ/E4UC5dWI0h17 PQLLi2p8NjOykA3lnftnMA7n3i4Dj5d4CGMXo3Ir7iC2NEKFvL7PfSUMSqrcA37L5enW iecRxF7EJdeiRJ5SoV4G9oFtMV6xpetHCXMSurKVXDjvLB5CLyxb9weLzj3ihF921/mV HLCg== X-Gm-Message-State: APjAAAWtyfUt5fN82VlidiGKk3LegGmDea8qxBdoz3k6u7R3stLEPM8b OKDAZ+0NP2CqJ97SvIccrebMdihc7VaoVA== X-Received: by 2002:ac2:410a:: with SMTP id b10mr6892410lfi.175.1559822352199; Thu, 06 Jun 2019 04:59:12 -0700 (PDT) Received: from localhost.localdomain ([217.153.94.18]) by smtp.gmail.com with ESMTPSA id d5sm262170lfc.96.2019.06.06.04.59.11 for (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 06 Jun 2019 04:59:11 -0700 (PDT) From: Jakub Witowski To: linux-bluetooth@vger.kernel.org Subject: [PATCH BlueZ 0/1] Fix segmentation fault after adding second network key Date: Thu, 6 Jun 2019 13:59:05 +0200 Message-Id: <20190606115906.9262-1-jakub.witowski@silvair.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Segmentation fault occured when we want to add second network key via NETWORK KEY ADD opcode (0x8040). It was caused by passing 'subnet' pointer (which was NULL) to the start_network_beacon() function. Jakub Witowski (1): mesh: Fix segmentation fault after adding second netkey via NET_KEY_ADD opcode mesh/net.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- 2.20.1