From patchwork Wed Dec 7 17:53:24 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alistair Francis X-Patchwork-Id: 9464981 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 554296022E for ; Wed, 7 Dec 2016 17:55:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 48B052851B for ; Wed, 7 Dec 2016 17:55:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 39F7328543; Wed, 7 Dec 2016 17:55:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id B9EC82851B for ; Wed, 7 Dec 2016 17:55:38 +0000 (UTC) Received: from localhost ([::1]:40585 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cEgRN-0000P6-1Y for patchwork-qemu-devel@patchwork.kernel.org; Wed, 07 Dec 2016 12:55:37 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46065) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cEgR5-0000NW-E9 for qemu-devel@nongnu.org; Wed, 07 Dec 2016 12:55:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cEgR2-0000be-C9 for qemu-devel@nongnu.org; Wed, 07 Dec 2016 12:55:19 -0500 Received: from mail-by2nam01on0059.outbound.protection.outlook.com ([104.47.34.59]:3000 helo=NAM01-BY2-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cEgR1-0000b6-U4 for qemu-devel@nongnu.org; Wed, 07 Dec 2016 12:55:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector1-xilinx-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=zjzGogu7ST4ff3gfcTN9Q2oHUIoD9/5C4quXrRdVbWA=; b=wNbttPP1oXJqT0+5Xh16TLlZP5sM3MhOwYMmif6JKnq+XdP4mvO/o5XqBRupJSd2c/5QV0Ktr858VXjV6awsmIudh/pGIe6q8cJDLtSW1nCsdqHtPbfwyo6In7drE5aq0voQ3HyeO2putcLQy685OV+yMvYXFdf0hv0bfhYPUR8= Received: from BY2PR02CA0086.namprd02.prod.outlook.com (10.242.32.44) by MWHPR02MB2272.namprd02.prod.outlook.com (10.168.243.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.747.13; Wed, 7 Dec 2016 17:55:12 +0000 Received: from CY1NAM02FT055.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e45::200) by BY2PR02CA0086.outlook.office365.com (2a01:111:e400:2c2a::44) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.734.8 via Frontend Transport; Wed, 7 Dec 2016 17:55:12 +0000 Authentication-Results: spf=pass (sender IP is 149.199.60.100) smtp.mailfrom=xilinx.com; huawei.com; dkim=none (message not signed) header.d=none;huawei.com; dmarc=bestguesspass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.60.100 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.60.100; helo=xsj-pvapsmtpgw02; Received: from xsj-pvapsmtpgw02 (149.199.60.100) by CY1NAM02FT055.mail.protection.outlook.com (10.152.74.80) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.761.6 via Frontend Transport; Wed, 7 Dec 2016 17:55:12 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:; UpperCasedChecksum:; SizeAsReceived:1465; Count:15 Received: from unknown-38-66.xilinx.com ([149.199.38.66]:34912 helo=xsj-pvapsmtp01) by xsj-pvapsmtpgw02 with esmtp (Exim 4.63) (envelope-from ) id 1cEgQx-0003KF-FI; Wed, 07 Dec 2016 09:55:11 -0800 Received: from [127.0.0.1] (helo=localhost) by xsj-pvapsmtp01 with smtp (Exim 4.63) (envelope-from ) id 1cEgQx-0001mi-BO; Wed, 07 Dec 2016 09:55:11 -0800 Received: from xsj-pvapsmtp01 (smtp3.xilinx.com [149.199.38.66]) by xsj-smtp-dlp2.xlnx.xilinx.com (8.13.8/8.13.1) with ESMTP id uB7Ht6CF031353; Wed, 7 Dec 2016 09:55:06 -0800 Received: from [172.19.74.182] (helo=xsjalistai50.xilinx.com) by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from ) id 1cEgQs-0001in-CN; Wed, 07 Dec 2016 09:55:06 -0800 From: Alistair Francis To: , Date: Wed, 7 Dec 2016 09:53:24 -0800 Message-ID: <04ae30ed8ee1758cd2d2af880da4d28f74c67738.1481132150.git.alistair.francis@xilinx.com> X-Mailer: git-send-email 2.7.4 X-RCIS-Action: ALLOW X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.0.0.1202-22746.005 X-TM-AS-User-Approved-Sender: Yes;Yes X-IncomingHeaderCount: 15 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:149.199.60.100; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(2980300002)(438002)(189002)(199003)(106466001)(33646002)(39840400001)(39860400001)(39850400001)(6666003)(4326007)(39450400002)(2906002)(63266004)(81166006)(81156014)(5660300001)(8936002)(36756003)(626004)(50226002)(189998001)(48376002)(7846002)(356003)(50466002)(5003940100001)(36386004)(47776003)(305945005)(118296001)(39060400001)(39410400001)(5001770100001)(92566002)(77096006)(9786002)(38730400001)(8676002)(50986999)(107986001)(5001870100001); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR02MB2272; H:xsj-pvapsmtpgw02; FPR:; SPF:Pass; PTR:unknown-60-100.xilinx.com,xapps1.xilinx.com; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; CY1NAM02FT055; 1:2O3Dlb/nyost7kIdfD3uIbKBSwhy/V1NV87k5uF32HGY7yEGwWmTvZA/JnvFhXt50LXID8iNj6FfOhiit8enOeA5izb90WuoW1dyXONWNrMG2mmm/sVHw4THkgOJQJNkuDnp/yQOsEB/bd+rgcz5BOWEfS4pcIUSaUR8tlVHa4TKZGrJ455+26R4m24tHuHRoRQb5jHw0i87L7TuJY7tCf8JdcdDK15jDv0OlevaRo4yhGOmbCM1xa8vHfc7BxVDHwzvCCJ7zfjlNqE65HS4d/01YSb+xNl40uIqwsie0GX/SLWMV4qb15otr1guU5JXdM8LCOElDCJw9UYfYRYpBSJDIfWGjtv6dZ697yTNtOS0nK0k9xNTZkMegKqebayQHNbFiNmuVaXQsm1lUXNwtZz1nnMwV8xKQNQuj1rW5ZrJdRJsqVIWA9zrgdxbp/NTmk5T1tKk8z2B9UuN3qgSV0oBjfYqy4ijZoP9zmc1EMVKahdFvV8CYUIYvnod2ePXKAYCzPTG5Cl6D6FRyWwmSmHHCUDAhQYpyOEN0McWLTiej1eaqjph2neMp2LpV6/y3vFKDVvt1WFH7FEr1B4mFnznKw31T+2U05l61atu8i3OkkAmrN3uFqQe/vKcOBHO MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: f30429ee-13ee-4a77-e0dc-08d41eca3132 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002); SRVR:MWHPR02MB2272; X-Microsoft-Exchange-Diagnostics: 1; MWHPR02MB2272; 3:mgmqIknxvpEksRTB48fiU5zxy60WEEkYHnlQiSEN7Wf0pqKVGdbl0Qkv5fZBzuCAsvD7tGufzJIvWeGu2Ck7tw06u9BUP9t1tJ9D2TNSjN5HE+shak0icSVdtihxUTA1cttbdOekSLB0xIuMOR+Cj0rLrW/omQSjgjsPMU619nLOqIi2uPK5urmYNU2Uxm8Ru+LW10UDR4DtRsuj948l8epDHAPXRgENlHzG92dnuIncKJEHeXtu/58iU35KSBGGa7/XtkEZt1n9m8Tn/RjC9569AhMMKhE3Dx9Tb1IEXBs3n+t2ADxWA3a3K4vEIvmjh/5orgLYZCktHgL6ppriXPD9DrQY3ja9KxuZ/2/VjvV9i+w+L3n7tMS9/qSDRXliUcpy1SNnVuC8RZ4T7z8uiA== X-Microsoft-Exchange-Diagnostics: 1; MWHPR02MB2272; 25:awOQKWwimnB2GOK/YY+Idz3oq2CcLFY9Sf8rH8pLgbLm2EYgAeh2HTVijU8gifxQCpP/Ha42F0rqzWRFHWZXHDE0oCpQ3HmriazssxiCEZQoU3R889jQtUlS02OFkOHePVxZgQoPP5bp3e6NKmB1LIau0ko7anpTD57bwz2kywSvwIgnyn+rNd3I49Yn/Tz0g6l8U4iHB2RI6Sm+eYWH08iAOp6KZ5F7z8iOUXyA9sObX7NTtM2O4yZS9/wHJw6Ojv45Zs2bxs44zL2lflQCHesHppUz+CLTtDaqrs/rSqwuiygkRzWJzY2UDIdIcc66KcNYN4CHvFAk6Lr75A0LRFlJs7lCGzcoQ4TwDOZ1IarNBNE0j0/gi/HqdeRjg584RbAMRJRaF1n5+FAExAFoNFQXLv1zbr6v3e2HtmzFO028pyHq0Mvf13icaOFpGDcKmwYFtz7eUt1Bei5BOthP21Vq06bD+/zRUYq8bQGOKmBpTjmWEYgUKIwr28OkdQROfxE3cE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6C1LjLn2mrYOK4oVTdnkR5ROvVJL1SV4ciDV0snz7GlGSvFzji8eAuS5aL+MSS1gLc4La0OOp5xtiNmyCH5qrWFnVZsLxzs7pQvTJBOnS8ydiE5cSYf64lqE959YZlLZhZOn X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(50582790962513)(192813158149592); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(13017025)(13023025)(13015025)(13024025)(13018025)(8121501046)(5005006)(10201501046)(3002001)(6055026)(6041248)(20161123564025)(20161123562025)(20161123555025)(20161123560025)(6072148); SRVR:MWHPR02MB2272; BCL:0; PCL:0; RULEID:; SRVR:MWHPR02MB2272; X-Microsoft-Exchange-Diagnostics: 1; MWHPR02MB2272; 4:+ltrtr9GFpkSD6j7+KAqWZqA4Ql5yvoVIzB34Al4q3g/Uiyh3CH/l/Tssj4/w/OTuOuztv3dvrbU9qeIW2UNudGl1Wcwo90YInwIjoxM8lk4Sq7aOxQMUEIey0OHy6e0Hv7zu0ONeCzSvuZErfUoUu5reOwP37s7J7eCKTu/P6t577zMZgaiP+vvAV7ic+rFFtPflLpQ/cNzTL205SbED2jUSo3GBWFnmSFzlHxgZIVDGSkb6gOtm2oRtnIdzJnmEr7uoctoWK4BSRVEWXAJQ0W08PCDPSQVu+THn/KgsQRrOsKYc/q4bCyl8MTeT2/yxWapFXE0w5O538Or5KofH2Xe5aOBYvUdvSyQSQnno1NP9K3neF51gn1h1hOowFi+M1XudqMYobrRm+u5dHM3Vg10IZy9VGcvFyg2aG9CzXohV2+HJSxMijGGv00cCLXVhFkrdwRZfTXmf/DTBsLb7uv04BpODzdFlrhvh8PTj+nBV5ccWk9GFs/YU5KLVyb2jPTUe55vT02PMypdn4TEMkq2Ib8E2xlPRlUJztRSvqrNhNXEdVLQ8Z4F8Zr4MEX00eBwU9mpx0dYSpr7QIegbJp/jKUQRyKaGVo7yesb00BXx2Y5exrFOJWVB0vuuaXL5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DbuduMTXH?= =?us-ascii?Q?42D8xPiVfBV7E16B9852ZA6u0vyS1pr6fmEfd3u1WGgbVRUcsKzXelnZtNLn?= =?us-ascii?Q?gx7EXss5tkQF1FzIRPhXguevLpxhJjv1IfASY8jiL1K7HhlAW4mnnFcXljtS?= =?us-ascii?Q?ZPdmnKIy+dW3PZr0tOpyZqAg7Too06/r4EXFfuAFDbD25AcSK6p0jZUmfNOz?= =?us-ascii?Q?X4/pCWNzcFbot8NVywrj8O8HpVncfLHJ52/9C1IA/84cfH878gxnZmxQD0lA?= =?us-ascii?Q?4IEbstTg6db36nyzgnNsxpP60R53B5k8dDn3GuuuXrGtfNbKa0TiMEkitxCd?= =?us-ascii?Q?f4yZer8W2GOp3t0mliij4p0LNGqcB6fQC7+ePIvWeiMiX2I4S5ZnsjqM61K8?= =?us-ascii?Q?Ie3jwU+j6b9Q6HGRhTCwQtstq44rAf4Eds5clng5gn+TuwePmY2jrgczSGFP?= =?us-ascii?Q?6+lWCS/UaA=3D?= X-Microsoft-Exchange-Diagnostics: 1; MWHPR02MB2272; 6:CogHoLgqU4Hnien3JQv87vqT0io6f3AO6BtOsGFxsyx2NMTAXYxaqE747aRcu8ZIMyo8tVxwItBcVxTVeaOWwpP59AXMZqUVUCh8sOEk8HlAern/yr4Nr/w9wr0g9dS7Rl5WvRDToxoqnsDm9zQdTlIiGsFNCUvItbtRD1r8PhTDSkY8oUqF/AnoIyT2f82XmCRJwNhC7JcdryDogdqRnKt9x2sEyAZoRBeoReHsaiDfldJJfvzLkIJu1ebZiUkS5g/a5vGXSdjmPYmNUTFfDXVB7PYHgCetlTLmc75p3ednUwP7WLC0p2q5sG5QAlDl12RlzCccpsc+Cly/PazbuIqso512v0LYJjarvesb9suor01VqOABDJQFoqly2vAliCE94NFPC3D8kXsDaatjoflH786jQRVEZATpbTm8b3pOnrREje3FK1zepPDM99l3MfrIbPY/+RZjuYjhssqMtkedC4npfdensftJsarPdff2Z0n7GBSJgsT1zpiwieOh; 5:hjSc4wqX72Fyrnbc5ivOzsbBFO1DBJQINjk1n2YIVdayxfTtA5JgkWR6KDNdxEaRFcGf0jdu5q1TkrJMoa5LGzZZXBqNQF73Tdvb59aAr4RY/4pb+lLQGMz42rP71LmBEhNXTFWna30jbxXT+SV3/Q==; 24:4/qJRCmtALwRYq0J9lwyWxJkS2bWoNe4b7OuTMQhEHsaC7OV27m1dqsBqnPsv8CEGP1gZTuycKwVPLqccJy8lzFatrRf/ByuIgXvbkx1cpI= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; MWHPR02MB2272; 7:Btf8cjvni1y9Ds+TRZR6ebICfZHaW+omegYVXFOu+7cLfkQo5BJQF6rM3laQ/ufrN79DqkdvHM/0cIZJmf7s6/va5kqt69s/fKKtvSEsiGzE/5Cpiw4tnXZji0OTJyjPtduXUrvv/5bV1d/jnB3nifCz5/22k2STscjYxKuWExyC7k6D1SoCetQ2nsTCpdwO4WlwdKwaeWaaZywfZ5603+hXXjjobF44qmv5ACx4yQokKBmbYEGLR8P+nCdebtfH0Z0eOk1px0aTURdey9pB57CY/bQw2H8zkizEVO/WfPHj6DbSQgm0OQHnJWHTQ6a4lK06U1MhfjV8PpqwUZtVt5V4AsnWci1cMJqlvnV22hfqrW/YxePu+Apfm13ivB8tWuQXtbIoMR2ck/6QIpBfVJMFberV9RRbWv8d46L8zjQMztIcFrN660LysnE7O0Iqi3hNHcpAFMakinc644Pbkw== X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Dec 2016 17:55:12.0602 (UTC) X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c; Ip=[149.199.60.100]; Helo=[xsj-pvapsmtpgw02] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR02MB2272 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-Received-From: 104.47.34.59 Subject: [Qemu-devel] [PATCH for 2.8 v4 1/1] cadence_uart: Check baud rate generator and divider values on migration X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: alistair23@gmail.com, psirt@huawei.com, pjp@fedoraproject.org, alistair.francis@xilinx.com Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP The Cadence UART device emulator calculates speed by dividing the baud rate by a 'baud rate generator' & 'baud rate divider' value. The device specification defines these register values to be non-zero and within certain limits. Checks were recently added when writing to these registers but not when restoring from migration. This patch adds checks when restoring from migration to avoid divide by zero errors. Reported-by: Huawei PSIRT Signed-off-by: Alistair Francis --- V4: - Fix R_BRGR logic V3: - Fix broken migration logic - Manually double checked and it passes migration. V2: - Abort the migration if the data is invalid hw/char/cadence_uart.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/hw/char/cadence_uart.c b/hw/char/cadence_uart.c index 0215d65..dba1c53 100644 --- a/hw/char/cadence_uart.c +++ b/hw/char/cadence_uart.c @@ -502,6 +502,13 @@ static int cadence_uart_post_load(void *opaque, int version_id) { CadenceUARTState *s = opaque; + /* Ensure these two aren't invalid numbers */ + if (s->r[R_BRGR] < 1 || s->r[R_BRGR] & ~0xFFFF || + s->r[R_BDIV] <= 3 || s->r[R_BDIV] & ~0xFF) { + /* Value is invalid, abort */ + return 1; + } + uart_parameters_setup(s); uart_update_status(s); return 0;