Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp6721053ybl; Wed, 15 Jan 2020 09:09:34 -0800 (PST) X-Google-Smtp-Source: APXvYqx3RDoJfODk1uTJvbM/RU/T98Yo3wSWvR5BtEKwq+lk8Zm4BB0ITINikQ3WEiQ8m5WAcyR8 X-Received: by 2002:a9d:6505:: with SMTP id i5mr3252631otl.121.1579108173978; Wed, 15 Jan 2020 09:09:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579108173; cv=none; d=google.com; s=arc-20160816; b=Gls1ugns5HjGHe8PWHD1tcUV3STIpp1X6TFIUZ37oOIlWLp5g3CEpsMs2HELER3NaH bmdXJJVZcCDhrUfjUemwMLsT/JmULdEOo6WnU9PVSuglC2cPozKP+23ZA6zlJnYb7TzQ PnYQjCFKLUXD/BporBgpDgQpnIUJJ5WykHj3YyPr2iKjQ8At7f4L1tOpAhzdwSQwHfDL YEbfA8K/hZlERcsgfAisRU3UQSPYCA7agA/jhgDNI+SQeD0nxSaQgcoDk8jjUVRmNl/J wFQqx36Kd0w5Ooga72+1nzxRzdvJIkanHbx7dooLwabcsTbjBeep8JKXqkoB9xqqxHJd PS/w== 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=MdcIJnOGEVHmE38OfU6Qs7Oy8VONN3G7DfrAt1NWFSE=; b=I1tkP1dEgFXvt1QFYeL61/2zOpmh1i+kAmdQfzLfeVCMQ2+wsthbAmGkYo3L/25dxk 3Qv7ZF9ioawDd5usZGPXjvzsQJR24UG5DNao6L3JUREpf+cwZYtAmdjJ6LOkBvkhoGlR iGnrDQwmFdSY01R1FdyeLNmTtmVPKwZ7tdtmfvToOnUp4mU8ukMpZ1Yao2KWw/+qB5BW 1J/ltc20uVWcv6LfVRNq4enZ83mLL7mwV9uV2HLSfQWYRvTgslAGpyVNlQl4X2wxc2Ca Pp5QotOECkie7tToh7W5JDNpu7DYGxv8I9e85WdqjWJOt1G1cREVMLiMLitrdniAYY0P g0pw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@silvair-com.20150623.gappssmtp.com header.s=20150623 header.b=TiTS2mw1; 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 u15si9591319oie.265.2020.01.15.09.09.02; Wed, 15 Jan 2020 09:09:33 -0800 (PST) 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=TiTS2mw1; 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 S1728913AbgAORJB (ORCPT + 99 others); Wed, 15 Jan 2020 12:09:01 -0500 Received: from mail-lj1-f171.google.com ([209.85.208.171]:44423 "EHLO mail-lj1-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728909AbgAORJB (ORCPT ); Wed, 15 Jan 2020 12:09:01 -0500 Received: by mail-lj1-f171.google.com with SMTP id u71so19348829lje.11 for ; Wed, 15 Jan 2020 09:09:00 -0800 (PST) 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=MdcIJnOGEVHmE38OfU6Qs7Oy8VONN3G7DfrAt1NWFSE=; b=TiTS2mw1Z0lca3T0RyBssb/BATnN+5vd4RzKPDSnuPzViOxejAG99klsU7zPEo/ni3 YkL1NicXtDoWUwV/8AVqmpcCDWYy9I3Okn3O7kxjLgS0MVHpSBXmAYcCwymA9FcAetpy M1f5jTmkid23e5iXl0eDusm5gTeGbMbCOd8D0hELyTgBQdmM9LJ2mJhxiYXpAZWF/yj/ d7wLRznXDFTyuCtwjITrn//a8yN/nIz8qrVRYVJktqaIQmrSIt7EoyqK3S2+7BpJ7IVn Xw0cdFmofya7MtfSSa30u3s/G9o+2Waj1YR99FTKzIg9XyEz5FAKT2yT9bh2cOdhKacJ R41g== 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=MdcIJnOGEVHmE38OfU6Qs7Oy8VONN3G7DfrAt1NWFSE=; b=rq5EtWZGgQ6s31u2ALygX6aM6RdJD4y8LtZyOgP0QMxnbukMbyQOob8hgoPEXsAMTu NSbVpUV4R9Pfr6cO7W+yhkVgDz/677Jy0bYwB6SZifoXFha+UNhO7LqCRLpYX/wPTSWC of2fTDmFyyg4kU9jc56jV/+vPlzNbrB7ECln3KgAfKq88HlQ+E7NRHr1yoN+HOqWMW4Q rl9Ffqs0VePaW84htqkV3w+rlwFc3FtgAhmFYghWRqcYVARDpE+dHVnoDfQgtboq9Df8 +MgkhX+QXmLJ5VLPP/Px+Y5FkS7U6AwhkgmKqFilh1dwObEtwqg9+XV/k3a8/xmBec10 x2eQ== X-Gm-Message-State: APjAAAXI8vPtKenL1QuexHtOsKgO9PJAvqJIfPD8JeY6A2QD6nk3a7Vp P8Qy5N3h1euprijIpQ2yoK3tCKf6oguS4A== X-Received: by 2002:a2e:a486:: with SMTP id h6mr2484347lji.235.1579108139046; Wed, 15 Jan 2020 09:08:59 -0800 (PST) Received: from localhost.localdomain ([217.153.94.18]) by smtp.gmail.com with ESMTPSA id m15sm9685972ljg.4.2020.01.15.09.08.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jan 2020 09:08:58 -0800 (PST) From: Jakub Witowski To: linux-bluetooth@vger.kernel.org Subject: [PATCH 0/1] Sequence number out of range fix Date: Wed, 15 Jan 2020 18:08:29 +0100 Message-Id: <20200115170830.7479-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 During sending messages with high speed, the 'cached' value may have exceeded the 24-bit range and this value will save into storage. The current implementation protects us against exceeding max sequence number (0xFFFFFF). Jakub Witowski (1): mesh: sequence number out of range fix mesh/mesh-config-json.c | 4 ++++ mesh/net.c | 3 +++ 2 files changed, 7 insertions(+) -- 2.20.1