Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp1246313ioo; Fri, 27 May 2022 04:57:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxbs875wnjPK1dBsxC6I6k75bFQI19SmTm9UH6bUVEq6jD4YEIcL/pLdHfSzFp5kb0pkPGG X-Received: by 2002:a17:903:40cf:b0:161:6650:e244 with SMTP id t15-20020a17090340cf00b001616650e244mr42012108pld.128.1653652676340; Fri, 27 May 2022 04:57:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653652676; cv=none; d=google.com; s=arc-20160816; b=RUmIKWf3CLZu0D1mWYvOLuvgl934mVzqjKbsVeAwkQlZ36BnmZqi2rFwV3O8i3e6e+ 8m1VEIYrCXqfGGEy/JwcxnkksurX3Pmh1AScChomQPunTV+qZ29zSJ3V+aPkR2PpTe6M eM0bhIvKdQ21KMxCcUbHDnKMcnkMJ4BfraWKAzc6om4nZKESVFyb8b2slIFgwrkb5Qia dvX/s5pQkzzoIDONoxYeTlwR2J/qoiH4RI0pzYBnSPqBWMLd6xTnDJaT8hcZPZka3Ox7 scQdezQgUS9gCGXvV1eWyowpa/O+XN9nKjSSUcgbFc5gPgyXDCAVEV7r4kqgD15OkvuF +IrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=LaM0s8TIabPQd858/Jret+EVrh7RGqRo70hnNtP0A2E=; b=RHDyrEqGWLGb6zVGqaXYlELKH938je4J9AOT3QBN2xDMHtJED/4fXGpgXNBMml/f9N xrma/zAn1BAQ0HlJiFCT0+cqDiU50k6z2/dFQXGwPYJk/IxhRpJn5ZHStvHqeE1rWmF2 /ZteM8+v/eeBxG/cdakcrgXWwkNBDo1lEp8zY/bKAPZBtusg1h7UEgsarbtd16WFlu0i am55AvwfphYe7c61nrSijv9vCWi+I76Pd4FK8oHy5u7JCQnS5I5kCza+M60ToUDzJvA+ R8jypO98kN0amMWpeK6P5wsoLpiFrDiyVGrGytNd9f4UB2tA1AIfRHYss4qxumyhz2xF 528w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=SSIR6IM2; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c8-20020a6566c8000000b003fba6ed4a6asi2565475pgw.461.2022.05.27.04.57.43; Fri, 27 May 2022 04:57:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=SSIR6IM2; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348797AbiEZXq6 (ORCPT + 99 others); Thu, 26 May 2022 19:46:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50072 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239878AbiEZXq4 (ORCPT ); Thu, 26 May 2022 19:46:56 -0400 Received: from mail-pf1-x436.google.com (mail-pf1-x436.google.com [IPv6:2607:f8b0:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 11B999C2FA for ; Thu, 26 May 2022 16:46:56 -0700 (PDT) Received: by mail-pf1-x436.google.com with SMTP id p8so2959730pfh.8 for ; Thu, 26 May 2022 16:46:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=LaM0s8TIabPQd858/Jret+EVrh7RGqRo70hnNtP0A2E=; b=SSIR6IM2hZSyRWcbbW/ZngW7KeOc5OS2GsVBc4Lgj7KG/VhTOD3DQAnFerk4uAwXZi HSWKanQowJT6z9iMDRGCTWJSyKWBvGQmqpDsoZb1tnSZdihrKFOgCxGS718vPMeFNzLa dalcVOjlNarevSVts1T2c7Ml8yIwUGCPj9fdvsxHbBxygYMnknUeZJWoMF3xtIDhWqsl onxL3KkUUx0AaVyyr4g0ShircwfcFun7xF1XICUYfPwTGGX14HHEoib6wC0H8ywumaYa KGsNGiuAiJVCRcdx5jxMQPsNIM4lz38zuCXk2plCbfKQ30Nmvj2jZTZbURUCJ/yYeBNm zLBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=LaM0s8TIabPQd858/Jret+EVrh7RGqRo70hnNtP0A2E=; b=Jz2iVzKYajB8pLzXgLawa9Hrio1k5NaU4/lfQxkToyGxNGdReYlRQCqWIG+IcQnH5n G3kd2qtJ/K9clpkevyXpd5JTtEA8gef0Ylweht9WoDUPmTofl5c8AKJ2qmfgucTLxMYA ShCIhFIdsHwHABuT+Q88bucsZ2FuutDZmc2M4JoXu1dTgciZSOUJB3YX7R5w/mouISKI xBPfMg5e347HVNWi800g7QtUv+Hv+dhQMGpPAhiOGPSG5LYiLSf+M4JJVGUz7F1fj7Hb Hgwl8a25djigdIRfy/JqAwIaVUgtJvjsZdb7PqiOMomm6HOSw/6J+IIuR5EZRKM8b4Z7 3/xw== X-Gm-Message-State: AOAM532Xgche+syrk7MxVkdsvsLQZJ+ZU9Kwq6BYdQvv5p1MRIHoMYem EGm3QWDHhKqHjQdrnBKNeOuPQo7IEfhS/X+e9WOsktLI X-Received: by 2002:a65:4685:0:b0:3da:eb4e:61ed with SMTP id h5-20020a654685000000b003daeb4e61edmr34188775pgr.591.1653608815526; Thu, 26 May 2022 16:46:55 -0700 (PDT) MIME-Version: 1.0 References: <20220524202630.3569412-1-luiz.dentz@gmail.com> <20220524142128.01acb75a@hermes.local> In-Reply-To: From: Luiz Augusto von Dentz Date: Thu, 26 May 2022 16:46:44 -0700 Message-ID: Subject: Re: [PATCH-stable] Bluetooth: eir: Fix using strlen with hdev->{dev_name,short_name} To: Tom Unbehau Cc: "linux-bluetooth@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Tom, On Thu, May 26, 2022 at 1:50 PM Tom Unbehau wrote: > > Sending this mail again due to HTML mails not being allowed. > > Hi Luiz, > > The patch did not fix my issue. The issue described in the bugzilla ticket was an error > in the mgmt.c module. I do not see any direct correlation between your patch and the error i am encountering. > I have tried your patch on mainline (5.18) and got the same strlen bug when executing the example > program I have attached to the bugzilla ticket. > > I think strlen in the mgmt.c module needs to be replaced by strnlen. > I have attached a patch with these changes to this mail. After applying this patch the > error could not be reproduced for me. Well looks like there are multiple places actually using strlen rather than strnlen with the likes of dev_name and short_name. > However, I am not sure, if the changes you have made in the eir.c module are also prudent and could fix > similar issues (I am not familiar with this). > > Regards, > Tom Unbehau -- Luiz Augusto von Dentz