From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.2 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 49CB0C432BE for ; Mon, 30 Aug 2021 17:39:16 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3580B60F3A for ; Mon, 30 Aug 2021 17:39:15 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 3580B60F3A Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8D9EF833B0; Mon, 30 Aug 2021 19:39:12 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="eb3G5gd5"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6A410833B0; Mon, 30 Aug 2021 19:39:10 +0200 (CEST) Received: from mail-qk1-x730.google.com (mail-qk1-x730.google.com [IPv6:2607:f8b0:4864:20::730]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id D62EF8164D for ; Mon, 30 Aug 2021 19:39:04 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qk1-x730.google.com with SMTP id y144so16547195qkb.6 for ; Mon, 30 Aug 2021 10:39:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=date:from:to:subject:message-id:mime-version:content-disposition :user-agent; bh=FhnRkHE9KdnbY0Cou/tsh8hox93zus+8kwZ7re5MkMU=; b=eb3G5gd5DIPUP/O4vvYEOwJDG9JJQ8yjOfN0XtdwhnBtLxixB0Y0Mhg+1NYDOue+Bu V8HIpU9SzjjGyW9Et0Dv0IaDr34W5XU5AZsSJxGabnW26nOekXnFGF9F+CQSphzWOHSu ZBhp7OU30Zt+nshjG9yxUNVRK5k8w7wcAnaIY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=FhnRkHE9KdnbY0Cou/tsh8hox93zus+8kwZ7re5MkMU=; b=XiIEz2oMt1nA7EHBNtY/IaXyvfAzjoWVvCJrBz7JsTKOAD5yir4i5uxnxRJkelucw4 N+WWaL2OnRyTiFhrwwjnCArVG+Kc3XyJ5zI3od0YmlYHe/CR9mQdzt1XF6CZoS0jlfUT XfmJ/vJpQ2hTeU6igNIOKiIhj+xlYjCZK06kPdEv9FZmbIlBAovND5uIjuV8QivS/zTW m7u/VAIZYmUq6RwdKXTaFankoofOkfwXLryWR3ESPb/ZQVPIhlIIJLazaUPkBo2CZ43f 1JHuBlqKEYh1juemXgsD00e350c0uT3TIOuLjZ8o3hflbX8loBmKUlOrV+Awxk5T+28k XIfA== X-Gm-Message-State: AOAM533gOji3yNb9qvYCFGlk0CxX9gKq91WoXrAks9cU+KKDW4dnPScx OtveYLpKpyFvYiqgaBCMF3bJ6pcRRkv68Q3v X-Google-Smtp-Source: ABdhPJxCb2M8X52bF93Wdp96KWR3JemTbngcbbfRx7J88Mu6GKRLbwx3J9L0Je0IhM6K3o5q/icAGQ== X-Received: by 2002:ae9:f814:: with SMTP id x20mr23159333qkh.266.1630345143342; Mon, 30 Aug 2021 10:39:03 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b01-cbda-8d75-4e9a-efec-7167.res6.spectrum.com. [2603:6081:7b01:cbda:8d75:4e9a:efec:7167]) by smtp.gmail.com with ESMTPSA id v23sm8733324qto.55.2021.08.30.10.39.02 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 30 Aug 2021 10:39:02 -0700 (PDT) Date: Mon, 30 Aug 2021 13:39:00 -0400 From: Tom Rini To: u-boot@lists.denx.de, Oleh Kravchenko Subject: [scan-admin@coverity.com: New Defects reported by Coverity Scan for Das U-Boot] Message-ID: <20210830173900.GE858@bill-the-cat> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="fR70KeJ71B43Gyae" Content-Disposition: inline X-Clacks-Overhead: GNU Terry Pratchett User-Agent: Mutt/1.9.4 (2018-02-28) X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean --fR70KeJ71B43Gyae Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hey all, Here's the latest report. ----- Forwarded message from scan-admin@coverity.com ----- Date: Mon, 30 Aug 2021 16:58:54 +0000 (UTC) =46rom: scan-admin@coverity.com To: tom.rini@gmail.com Subject: New Defects reported by Coverity Scan for Das U-Boot Hi, Please find the latest report on new defect(s) introduced to Das U-Boot fou= nd with Coverity Scan. 2 new defect(s) introduced to Das U-Boot found with Coverity Scan. New defect(s) Reported-by: Coverity Scan Showing 2 of 2 defect(s) ** CID 338648: Memory - illegal accesses (UNINIT) /drivers/fastboot/fb_mmc.c: 618 in fastboot_mmc_flash_write() ___________________________________________________________________________= _____________________________ *** CID 338648: Memory - illegal accesses (UNINIT) /drivers/fastboot/fb_mmc.c: 618 in fastboot_mmc_flash_write() 612 =20 613 if (is_sparse_image(download_buffer)) { 614 struct fb_mmc_sparse sparse_priv; 615 struct sparse_storage sparse; 616 int err; 617 =20 >>> CID 338648: Memory - illegal accesses (UNINIT) >>> Using uninitialized value "dev_desc". 618 sparse_priv.dev_desc =3D dev_desc; 619 =20 620 sparse.blksz =3D info.blksz; 621 sparse.start =3D info.start; 622 sparse.size =3D info.size; 623 sparse.write =3D fb_mmc_sparse_write; ** CID 338647: Integer handling issues (DIVIDE_BY_ZERO) ___________________________________________________________________________= _____________________________ *** CID 338647: Integer handling issues (DIVIDE_BY_ZERO) /drivers/fastboot/fb_mmc.c: 631 in fastboot_mmc_flash_write() 625 sparse.mssg =3D fastboot_fail; 626 =20 627 printf("Flashing sparse image at offset " LBAFU "\n", 628 sparse.start); 629 =20 630 sparse.priv =3D &sparse_priv; >>> CID 338647: Integer handling issues (DIVIDE_BY_ZERO) >>> In function call "write_sparse_image", division by expression "spar= se.blksz" which may be zero has undefined behavior. 631 err =3D write_sparse_image(&sparse, cmd, download_buffer, 632 response); 633 if (!err) 634 fastboot_okay(NULL, response); 635 } else { 636 write_raw_image(dev_desc, &info, cmd, download_buffer, ___________________________________________________________________________= _____________________________ To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.n= et/ls/click?upn=3DHRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50yoA22WlOQ-2By3= ieUvdbKmOyw68TMVT4Kip-2BBzfOGWXJ5yIiYplmPF9KAnKIja4Zd7tU-3DB0R5_EEm8SbLgSDs= aDZif-2Bv7ch8WqhKpLoKErHi4nXpwDNTsWpxO-2FB72i0SdTN3-2BHFJyiYovM6CPwd6hE024N= qoJv2G1PZTeHMVC9jxFLJgI9alL1SVy-2FumNUJ7wQLM0LhmayO628LnXGSp6-2BQxL8eWMnX8D= fYwdG1iiYjTCUb6p6N4KZqayMpDRL0dNo-2FZrxTT-2FAz2SR1H1kktB9lp0iaajH-2BQ-3D-3D To manage Coverity Scan email notifications for "tom.rini@gmail.com", cli= ck https://u15810271.ct.sendgrid.net/ls/click?upn=3DHRESupC-2F2Czv4BOaCWWCy= 7my0P0qcxCbhZ31OYv50yped04pjJnmXOsUBtKYNIXxWeIHzDeopm-2BEWQ6S6K-2FtUHv9ZTk8= qZbuzkkz9sa-2BJFw4elYDyedRVZOC-2ButxjBZdouVmTGuWB6Aj6G7lm7t25-2Biv1B-2B9082= pHzCCex2kqMs-3DiOdo_EEm8SbLgSDsaDZif-2Bv7ch8WqhKpLoKErHi4nXpwDNTsWpxO-2FB72= i0SdTN3-2BHFJyiTVHAVBb1e5w6-2BMjbd4JHjfrBraKGFtJ28aslex2Dq-2BGKoKqFa9LXDqSX= Kh1T4x2FIG8bOrMBw8qOG48BL8SGCU5Fh4Mz3heVvRktq2Dv-2Bu-2Fb8WoqCxYHUiUWEtrXPET= G439ARsKn2eC80b78pwPIaQ-3D-3D ----- End forwarded message ----- --=20 Tom --fR70KeJ71B43Gyae Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmEtF7EACgkQFHw5/5Y0 tyxPdgwAoQ+ETgsYphfKZoIWF66GWlIuJ3IMx2FIbMaCA9wC5KSxyhaRR3nkoWHG V/6b4kwQmfwyp25CsFNjIVv0lhpxBwK8eJEe7u/fp5GuVTJ1dAw+mHd/3beyzMZA JDq60sOn2u0Ry98I1C2Pnv5uowPH/RecNwPLy66b7WZ6M7jgOev4Cxw9nS80lieI fW26cD68O89sLgSLQw6Qnl9DQI/vih17e1ziRqTRU7BCaogFjGgkeRy7otwQ+HB/ 5Rwj9+J/bM6B7UX/0r7hh5wxmwlQV7wH7dsgDom3y4+tv6yomTc9OBmyRZniJG7G p6Md9HfGNeBVeteym4omFn/JGq8SzdOrmu/ZYmnHf2OxBoDvebp3gRfUGZOXq8MW b+brfhwRCFaPwsMrXJwBRKI2mnF6LtLr5sL5JKc3U0zWJWwPvNdyYOq4pUdPaS1w 3G0iv3GrvHmlURYOkbf5885UNd20voDBtpqDTNONaij34tlSmD1riWIcFn5jBTjy 4wcdpRGP =/bWn -----END PGP SIGNATURE----- --fR70KeJ71B43Gyae--