From patchwork Mon Mar 23 21:40:32 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Gix X-Patchwork-Id: 11454053 X-Patchwork-Delegate: brian.gix@gmail.com Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4E15A92A for ; Mon, 23 Mar 2020 21:40:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3214220719 for ; Mon, 23 Mar 2020 21:40:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726955AbgCWVkg (ORCPT ); Mon, 23 Mar 2020 17:40:36 -0400 Received: from mga03.intel.com ([134.134.136.65]:7025 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726203AbgCWVkg (ORCPT ); Mon, 23 Mar 2020 17:40:36 -0400 IronPort-SDR: INCV6RmU/yf+dHYGdAzuuh5kGLOp+yyi6xs5UQ6zDygvrUU8H/TH6kR+LCoyvYGDaK/+VvlI5J Fl4C87vZxSMw== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Mar 2020 14:40:35 -0700 IronPort-SDR: rGdcbBANf8m1w3VolZcwjzH5YvYHtY6qEG6YBdkQ1TgDsQ8JAqefzSMbQaL/7g4YaVLVN5bhVH /2/BLUUVajiQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,297,1580803200"; d="scan'208";a="325699111" Received: from bgi1-mobl2.amr.corp.intel.com ([10.251.242.81]) by orsmga001.jf.intel.com with ESMTP; 23 Mar 2020 14:40:35 -0700 From: Brian Gix To: linux-bluetooth@vger.kernel.org Cc: brian.gix@intel.com, inga.stotland@intel.com Subject: [PATCH BlueZ] mesh: Fix Replay Protection Cache Date: Mon, 23 Mar 2020 14:40:32 -0700 Message-Id: <20200323214032.23816-1-brian.gix@intel.com> X-Mailer: git-send-email 2.21.1 MIME-Version: 1.0 Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org There was a bug identified in the RPL storage, such that the real-time queue was being filled by incorrect unicast addresses. (Thx ccsanden). --- mesh/net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesh/net.c b/mesh/net.c index 55b1330cc..49c4ee23a 100644 --- a/mesh/net.c +++ b/mesh/net.c @@ -3857,7 +3857,7 @@ void net_msg_add_replay_cache(struct mesh_net *net, uint16_t src, uint32_t seq, if (!rpe) { l_debug("New Entry for %4.4x", src); rpe = l_new(struct mesh_rpl, 1); - rpe->seq = src; + rpe->src = src; } rpe->seq = seq;