From nobody Fri Dec 19 18:52:59 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1567617370; cv=none; d=zoho.com; s=zohoarc; b=Znk4sUcTKdodDP/3gvzhCFyMKhQV4Di1669yxnDYvg2l8NO5KqyBtCrEIpFqYWO64s8GJZaWF16IbDhG4W4G54ZVZe+bRz7wP+H5C1pN3bBthRSQMUIC0Fg2RBkrVJ4oYMw5Y2fGPZ3RWIte+VsgVoNh19uIuUgL30b6/Dh4Q3w= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1567617370; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=Re5SoK9LBlh1OETVvBHDiEijPJqBMr7rX5bmU56TmLo=; b=PbMa/JJ2erIrm+ggq0xhhSQ1OUOj2kg/Yqg1LozNtxrF3SRRxCtyzNy5F8odCr/FueXNQqsQpXC1nCiIhjHgWQXGLzIjiJrZuz0Z5C83kEG3IZ7oUwsvFV0CE63J9vAuhD1WqIxS7Hx3bWaA7xC2sShENhJo+pgCaURoRgAKRlg= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (209.51.188.17 [209.51.188.17]) by mx.zohomail.com with SMTPS id 1567617370764998.5629587641752; Wed, 4 Sep 2019 10:16:10 -0700 (PDT) Received: from localhost ([::1]:35522 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i5Yt1-0003GY-JW for importer@patchew.org; Wed, 04 Sep 2019 13:16:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48345) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i5YqR-0001Ia-J8 for qemu-devel@nongnu.org; Wed, 04 Sep 2019 13:13:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i5YqQ-0006zE-Kk for qemu-devel@nongnu.org; Wed, 04 Sep 2019 13:13:23 -0400 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]:33135) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i5YqQ-0006yr-Ec; Wed, 04 Sep 2019 13:13:22 -0400 Received: by mail-wr1-x443.google.com with SMTP id u16so22125904wrr.0; Wed, 04 Sep 2019 10:13:22 -0700 (PDT) Received: from x1w.redhat.com ([195.166.127.210]) by smtp.gmail.com with ESMTPSA id p19sm2339512wmg.31.2019.09.04.10.13.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Sep 2019 10:13:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Re5SoK9LBlh1OETVvBHDiEijPJqBMr7rX5bmU56TmLo=; b=nV2g+n9zeC4s2DMuvnV4wNpvw/73bDuCwOGe3RG8IZx8f1Z9tIpvnucKfqSRJJzxnT gHOsRpczq2RmGpFD0ec7ngCYP8D5AiTTT4wBmqtRXXMKZMIogd7+VU01gh2Pw/OTsGhQ 9UPaPgktdOqKDBoR13CvLjphtTt20pnr5n32HCRlA6LmxCdJVZVDfuFKwANvd6GAhFRa i+L7WUECBtVf0AH4yzcSleXyaMmbC/Fwfyt3BZSyasTeV/PxQybWeY3ZyHVEJu90puL4 eobNLU7ZmwTQFWy+Rj5FtXMPmOg1OJtOC0yQlESBxBsDGRYYitGBKBTBkh4IopM++k11 2jcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=Re5SoK9LBlh1OETVvBHDiEijPJqBMr7rX5bmU56TmLo=; b=AxafNZINv6RQeqzGn9+ZmF2xrSoCp3f+nHn+iXDkEsdHtZwoaLUEvgFQi20p8E8aQx TjVMtfaUnBkPsxgiqPmYMSomWZkS9i3gL0pZqE9LYp6gjmOpWUTEOfbz5croh1yrBtVH U/efyCGRHt35MacRYiYpN+oFOqC9jk8ZpkavRK+t3mFf/9RT+S5ay+karBYx3n5d1mux n2moncBE+Xx20i2LMRCoFt8h9woomMimbd4z3SYNAUbNAiGXY1/AvuRF1r1smDjCLWUp 026uAB+MGIaaV/9AFjbOaNBDCEd2ifnluyTn3faZdBEUQgAFxy0m25qa925N64rlKQnz gq8g== X-Gm-Message-State: APjAAAVkOTLpOCJPw5qX66w/GQbz2nDhd19S7v1k4zmidm2UZh+PSvUC yR8FsfWFZpuj22cQuRFke7k= X-Google-Smtp-Source: APXvYqxqFsgbbB5cSLHO8aHW+LjhxGc8JcZOj/pdM62vUI87Od70LG3yV1cjZD725KRr2aAR7AbFsQ== X-Received: by 2002:adf:ff8a:: with SMTP id j10mr1475139wrr.334.1567617201524; Wed, 04 Sep 2019 10:13:21 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: Peter Maydell , Esteban Bosse , Andrew Baumann , qemu-devel@nongnu.org, Pekka Enberg , =?UTF-8?q?Zolt=C3=A1n=20Baldaszti?= Date: Wed, 4 Sep 2019 19:13:03 +0200 Message-Id: <20190904171315.8354-3-f4bug@amsat.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190904171315.8354-1-f4bug@amsat.org> References: <20190904171315.8354-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::443 Subject: [Qemu-devel] [PATCH 02/14] hw/misc/bcm2835_property: Add FIXME comment for uninitialized memory X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , qemu-arm@nongnu.org, Clement Deschamps , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Paolo Bonzini , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Luc Michel Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) We are returning unintialized memory, this is probably unsafe. Reported-by: Peter Maydell Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- hw/misc/bcm2835_property.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/misc/bcm2835_property.c b/hw/misc/bcm2835_property.c index d86d510572..399f0d9dd5 100644 --- a/hw/misc/bcm2835_property.c +++ b/hw/misc/bcm2835_property.c @@ -57,6 +57,7 @@ static void bcm2835_property_mbox_push(BCM2835PropertySta= te *s, uint32_t value) case 0x00010001: /* Get board model */ qemu_log_mask(LOG_UNIMP, "bcm2835_property: %x get board model NYI\n", ta= g); + /* FIXME returning uninitialized memory */ resplen =3D 4; break; case 0x00010002: /* Get board revision */ @@ -70,6 +71,7 @@ static void bcm2835_property_mbox_push(BCM2835PropertySta= te *s, uint32_t value) case 0x00010004: /* Get board serial */ qemu_log_mask(LOG_UNIMP, "bcm2835_property: %x get board serial NYI\n", t= ag); + /* FIXME returning uninitialized memory */ resplen =3D 8; break; case 0x00010005: /* Get ARM memory */ --=20 2.20.1