Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp5535745rwb; Wed, 9 Aug 2023 05:50:59 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFKL0fJpTVRdGGqcm+v/X04nk9A7uDxcTDfDWjC3Qq6qqMesWtYVaQgfMkqPBLjHrbohAHn X-Received: by 2002:a17:902:c155:b0:1b0:3637:384e with SMTP id 21-20020a170902c15500b001b03637384emr2439487plj.25.1691585459347; Wed, 09 Aug 2023 05:50:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691585459; cv=none; d=google.com; s=arc-20160816; b=adESifJM7St9KxvHURu5ypCbMG6VsId0+skj2JVd4sSAiqqmAoFD53b+N0y28EgbjT sjq1aFnpkfxfU2yasUAGsOBTK0pJjfsHa72MW3nV0wnH/UgXTFyM/3JuX/0deyUGsKqY 19Wul7R0Cs/NtZ5Pd4P48lTWiotd6SP6gWKs1geVUZjw7mCYWWK4ZjMahljjm17Ji/Zj fp7KBb58JPXdvzGG1znWJIC7VxDQAwgl6aJ+QFxKDfnWwD5pEOkUBjyq1f24EO0VDQXp h88UsYY0ge0BTb2DPmxBlu0TdvQvGGluxZYJvmWd7QNFHJLXgEddxQpQbXk9KMjAmJyt UuUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=MGGpzWy7VBccB+8l3MXRUdWJN8M9OwEXxLhwnlMbWNQ=; fh=DFpZLBujhCHCpmuYkNNsm7uFCQ+uquEXTGNddalec4A=; b=UYubKEJUF6jUCcMd1xsWtd+XSV/mRq+9P7xzlmcTNUScOL2/Zm503fSeq5zjj/spO9 c8zPSM8Q7JqX0MioLFJf+Wd1/6JtiCEXmV+85YmHEWz6eCUaW1chSlRpHP1m+XTpFSsa BWwnjJ2JLmP6A2FbJ9C4HWYlSXZQ2znreUFB4lCawokoyPl/YRwNfjHzu2GI0WpnALZW Hmix5mX3QP1QBleSFzGA0iEavMNbYE+p0yZIOmNdzKhBnHvuiMDnO3GEuulew0XMVtDV 4dYHmoFOxb1Q58E0acYUZnllhvJG5FpyMxqX4vKxnuKI5XvNGIcA/fNdn7e0pwBwfIab KVKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=Xmqjc5fG; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ij29-20020a170902ab5d00b001b80643d64dsi9272003plb.145.2023.08.09.05.50.50; Wed, 09 Aug 2023 05:50:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-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=@sipsolutions.net header.s=mail header.b=Xmqjc5fG; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231580AbjHIMRM (ORCPT + 56 others); Wed, 9 Aug 2023 08:17:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229612AbjHIMRL (ORCPT ); Wed, 9 Aug 2023 08:17:11 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:242:246e::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C7AA1BF7 for ; Wed, 9 Aug 2023 05:17:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=MIME-Version:Content-Transfer-Encoding: Content-Type:References:In-Reply-To:Date:Cc:To:From:Subject:Message-ID:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-To: Resent-Cc:Resent-Message-ID; bh=MGGpzWy7VBccB+8l3MXRUdWJN8M9OwEXxLhwnlMbWNQ=; t=1691583430; x=1692793030; b=Xmqjc5fGOBpgo5ssZDvGveF2unmpGDbjy9DS2K3kHwXgCla j8cNGIh69BIQUi/pXdz/5fZPvupbSK37XTAjyYMK8azyfGiAeQpok/L1Ra12NaKHSA46TmoC5tnH9 8Uh4Q6pDGsjxgDdeqQirCEenBcy2UYHHMiKMLgnsb2MBNyUmkJ69BVhXpgkSzlwrtKM5G/+SXRfO2 1BRJaISWFS9xkGD6/XsKBipRIQ9NtaDIyop5t25SVaiPnf4T6vuB14crgpUKD794s7BFl9Oe8S4jy M4/PfzH0kuvCnYnR/NUwkUt3ddxHn9kf8JdER5mDUuTPhDVKzD4Ve5i3Ij3cCMXQ==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.96) (envelope-from ) id 1qTi7b-00EcXr-1I; Wed, 09 Aug 2023 14:17:03 +0200 Message-ID: <5cabcc57acd781e90c35fcc9b3c6a8aa8fbaa581.camel@sipsolutions.net> Subject: Re: [PATCH 2/2] wifi: ath12k: fix undefined behavior with __fls in dp From: Johannes Berg To: Harshitha Prem , ath12k@lists.infradead.org Cc: linux-wireless@vger.kernel.org Date: Wed, 09 Aug 2023 14:17:01 +0200 In-Reply-To: <20230809042738.13394-3-quic_hprem@quicinc.com> References: <20230809042738.13394-1-quic_hprem@quicinc.com> <20230809042738.13394-3-quic_hprem@quicinc.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.4 (3.48.4-1.fc38) MIME-Version: 1.0 X-malware-bazaar: not-scanned X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_PASS,SPF_PASS,URIBL_BLOCKED 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-wireless@vger.kernel.org On Wed, 2023-08-09 at 09:57 +0530, Harshitha Prem wrote: >=20 > During the crash, the fragment id of that packet was 0 and > __fls returned a junk value. Hence, it was identified that "__fls" > would have an undefined behavior if the argument is passed as "0". > Therefore, add changes to handle the same. Umm. That makes it sound like you are surprised by this behaviour of __fls() and expected something else?! Please go read the documentation, and then rewrite the commit message. You really shouldn't be surprised by this. johannes