From patchwork Wed Sep 1 11:49:57 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Alexander Bulekov X-Patchwork-Id: 12469267 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=-17.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,HK_RANDOM_FROM, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham 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 65174C432BE for ; Wed, 1 Sep 2021 11:54:16 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id F41D160F6F for ; Wed, 1 Sep 2021 11:54:15 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org F41D160F6F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=bu.edu Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=nongnu.org Received: from localhost ([::1]:41702 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mLOoo-0004ET-Cb for qemu-devel@archiver.kernel.org; Wed, 01 Sep 2021 07:54:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55212) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mLOlM-00074J-0J for qemu-devel@nongnu.org; Wed, 01 Sep 2021 07:50:40 -0400 Received: from mail-bn7nam10on2134.outbound.protection.outlook.com ([40.107.92.134]:37985 helo=NAM10-BN7-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mLOlK-0002UE-Gv for qemu-devel@nongnu.org; Wed, 01 Sep 2021 07:50:39 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dmdTrVWBl/7+U0J4/iZHs611Dfq+UEwHeAhpUKKnX/4BscA1lfK9jrTVeva6e9G9axMBuo02/WSuv+wEGdX/EFAgSIzuRk3F5UvPXH3dPeeZKf68RENqwbGJJi86tsG9OUrT++JinPWW8hlJE+6YuSLug+7tzeEp5PEUXZ9xgcp/Y8/TrfH5P5F8Gc+YHaNJNP+3lo/zr4DCmUIRYP23clC4BUB8bof1s5RifHmU0hU0esYxMV1eGTmvrJIJvMPIX+ezgLSs8iaQK4o5ogv+gkFazmwUzuaKBAQ0uU5KKdtQjtZWIZBDs02zSHgRZXXQMvI5LjvL3IV6pJLhdCz50A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=aS6NVYFeWYkAUe+yX/SnynNsxZaFbZU5FDRzrN2qyKA=; b=WSVkcc1JIYkQQxbVg/STg9C79r/pTWxUyhpOi1q44vna23q4/Ee4/YMv+DSHze6zlFQJeLHNpeeCRsUnsAW+itb8pUeMHtwq2M/Hag1jiZM22oNYIyRWxzSZR3vPe0XCApq1cquMswHCwSkSZ40ZqlfH+Hn3Y5EqMGiUe3Sw0oLiAhXvxz7FUWG36OFyfKDF3d6YpOtoHacvwedf9lnzPO9pXspLtnnr2zxWk0/Sbt0/ovttg3ojqfQxGlNIn2nTelIQ4WtmN2kpDeytg9lfx5sZzremVzzb36sPydCOUdq3oFWu/rjT1pq9CIfj4Hl2fum/d1pYwgEPjkezFsQBkg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=bu.edu; dmarc=pass action=none header.from=bu.edu; dkim=pass header.d=bu.edu; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bu.edu; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=aS6NVYFeWYkAUe+yX/SnynNsxZaFbZU5FDRzrN2qyKA=; b=P0TlYCRUWAyAZCHc0ItfbNHQ8Acm4BfbH/p8rtxwMlDsawVhe4LJy0Ay9e6gQb1WStrVvt6GP+aAaK9t8F3Ua+8Cevl2gjIOtci/lHfY57I6gKt4smj4gbMO7syE9Tgnh/hkTPuaG8E+p6dLR9CWQi011WEc/JScYkrBLe7YJxE5py8592cAdyuVYiv94+8qACcN59Dj5W0pLREWoJhiEf4IZFhcTc5fVtdIu8fQwdFhAasCMXCbSAp6Isv+MV3fpraR6TVcIWRIoaOVZ1GGZSNVyApyrgNuNTrcs4MdNV5ybT7HEJCW8B1gENbpSSKjTgfe+omtuBt72h2Lqnw6Tg== Authentication-Results: nongnu.org; dkim=none (message not signed) header.d=none;nongnu.org; dmarc=none action=none header.from=bu.edu; Received: from SN6PR03MB3871.namprd03.prod.outlook.com (2603:10b6:805:6d::32) by SN6PR03MB4224.namprd03.prod.outlook.com (2603:10b6:805:ba::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4457.23; Wed, 1 Sep 2021 11:50:27 +0000 Received: from SN6PR03MB3871.namprd03.prod.outlook.com ([fe80::f6:2ec0:d576:8139]) by SN6PR03MB3871.namprd03.prod.outlook.com ([fe80::f6:2ec0:d576:8139%7]) with mapi id 15.20.4457.024; Wed, 1 Sep 2021 11:50:27 +0000 From: Alexander Bulekov To: qemu-devel@nongnu.org Subject: [PULL v3 1/8] fuzz: fix sparse memory access in the DMA callback Date: Wed, 1 Sep 2021 07:49:57 -0400 Message-Id: <20210901115004.34768-2-alxndr@bu.edu> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210901115004.34768-1-alxndr@bu.edu> References: <20210901115004.34768-1-alxndr@bu.edu> X-ClientProxiedBy: BL1PR13CA0328.namprd13.prod.outlook.com (2603:10b6:208:2c1::33) To SN6PR03MB3871.namprd03.prod.outlook.com (2603:10b6:805:6d::32) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from stormtrooper.vrmnet (72.74.210.193) by BL1PR13CA0328.namprd13.prod.outlook.com (2603:10b6:208:2c1::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4478.8 via Frontend Transport; Wed, 1 Sep 2021 11:50:26 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ff2bc3a8-9831-43ca-c9f4-08d96d3eb0ec X-MS-TrafficTypeDiagnostic: SN6PR03MB4224: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:7691; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: AIA70Ij0H+Zijm+eq0zBYZ+fVGOc3d3EeuVz58GcV9DsZs4HRLVF+nABQ8qKjJLvDL2x7CHh8cnhiwr0F2wGKSZ/CRSact1V/h/PXqCHA+BstblApa/kY5OLHGTl7f2+nDQcYrAoMaHkUoTyS+NSZvK+vDOTplLQN4DIBg7a9l8xnM/XbQFlabixMP+TAPuN+LNR+XFosSs3GyA9PK1GdeDwRhiD81LhnlE8B70pdGpYZuom2Craiwqx+MmRxHJtWGbNOt4qRQjSDxdEUUfVsAw+eEtNWTVgPziHmv3WbliuWV1b3sKAkOS1zOFl7h2CXEjjVoNhPgYh1cNbiGT2JXLmMx1ssMx79IUkR9k3xCTnh7yXtd0RBM3sDaUri11ii+8bhv2fPfu4of+A6hcUrYSsRFlj6qRCZxcQ4ISpIFM/lFsidgW5UbBiUesIcTMO0XhTe2PnTTDDchXlRfylYvMdHOv7XTuxhhwwx4fxY0mmW9btgQzMucNzggTJxgXSgHeN5ek8srVkSML5ElpbGvibklmOuD/OFwlBDGfToqpbSIiMKwB+9qDl5604Lj+Qu3DhhB1GJIkps5Qt079dsKVglxy9W+wNC04bYhCmHIPxHM0h4mbI5hS0x2kV57IkSDga9OqymHBDnvVNCGU1MHjHE3V25hNn/4ASE4d5ID+/ZM7MPx22x6TAQs9R/l3pw0kzoz9AMh5FDklEbrT35A== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN6PR03MB3871.namprd03.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(346002)(396003)(136003)(376002)(366004)(39860400002)(75432002)(8936002)(38100700002)(38350700002)(6486002)(4326008)(52116002)(5660300002)(86362001)(36756003)(956004)(2616005)(2906002)(66476007)(66556008)(54906003)(1076003)(83380400001)(186003)(316002)(6916009)(66946007)(6512007)(6506007)(8676002)(26005)(478600001)(6666004); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?WV64C+HMfuu2vUKTBT9rJNYtIyXL?= =?utf-8?q?iWEKt4d5Y4NObHR/zupI/CKXR9r4hHQOhe9QdgzQW1AGredXRcAVTxd3k/IB38ivx?= =?utf-8?q?Oa1BzVujWDDTLJWs6elSodylctpqX1FbxVKd3EJnbMBM7yuSqiRk+6s7W8WSgzniP?= =?utf-8?q?/nBpVK24LfLtuemLAsorJIvPatpFhSfKQCDP27ZoIV8rx2xb4kDYgckt2FkyhIRSe?= =?utf-8?q?NOn5jAUZeWbciKA2ZzPXWZ0TLscOEKebJJZTijdNQyyfQkZ6vWq+jgqHXii17ZkYj?= =?utf-8?q?43rZv+STeL8K8yGuRG9wNes6i5gNAhgtuEJXA3jdhrMkB8uqBCAWZUf1dcoHJkgC9?= =?utf-8?q?OzJM2C53ALat59Bu1IydLry+MZtjk/J11m0bJOBcAEqN/Ear1qOvc3pqcY9p4Nd3W?= =?utf-8?q?ueCONHwSa3xnAPx22bA600Aqjig4VK35Dr97aeQJ0q1x5iuHwuiotgwikN0DU9IvG?= =?utf-8?q?dsTM28vJqJa5vLjE3vPXlx96PpYpW16c00Xs3FWUwQrGLXzvqINhFbi+SoEZqD0FC?= =?utf-8?q?KJw4r87UblcjHML3TOpu3M6LYl8VdCA9lJ32dVZWRchgPymZmKwsZjRO9PisfiEpF?= =?utf-8?q?V7yQmpk1aLkiU7C4jiLIzFXIPZiwI94SlqDKfbSHvHKjFkFrc6DpUJZM9xnXOTLuS?= =?utf-8?q?Sx3ZNNo9S3CIa8dGwR91o6zCdwV/LZqqVFCtGvjdS6HQewb+OJAocMrGLUD1LutI3?= =?utf-8?q?SX7qPNmTo3VaS7hhUj71N9nWG/ScTU25l2MB/4/dJGxt9YNuJOhDPSm9aI6BATN/o?= =?utf-8?q?hMrc/1tonzLdEt7AXsunhjujXqZXrAmbvZHjIj/AYN5BwrLCMIZUkXkxLQ3sQvIMi?= =?utf-8?q?hmHwDbAoQlVq/otKGcbwVgx1CsXhFn0inZypES3YrPYs7c5px6jCh3R1MvHXHc3W5?= =?utf-8?q?GRmJijaC0CGtX4QqeBncbHpZscQsNIYBcetiCgpeP6chF12/uKxdX72tZ7qo80lKo?= =?utf-8?q?JkZgEFu5Wj/Iaa6x1jyV6+v7Xv7YxYvu7jdlxILF6ifPRO/hYMi7i76aOIfUptzRx?= =?utf-8?q?eprNFgREx3b0bGUFYGbUZ6ywsQ1/2/zQNHDV44H/eWLsBgINztaPqWeo4loubc6WO?= =?utf-8?q?rtWfFguCFjR+m8K3HJsqqscb8I9hncuvbPol4WynURbUXXdhh22UrjH3J87Pswt/k?= =?utf-8?q?rbKXVn1bslFlxvndTcYoFS1IJ3gIPETG5Zsy+Gz07elYQdgj52m/0GE/JGQCXCUQP?= =?utf-8?q?uL6c6GG68KIexAXAuHfeaiDplJ1OF7xy5nefUOqDd7y88cbhUXgnTP509OMI5ZoHa?= =?utf-8?q?PZr76arnHHHyLHkx?= X-OriginatorOrg: bu.edu X-MS-Exchange-CrossTenant-Network-Message-Id: ff2bc3a8-9831-43ca-c9f4-08d96d3eb0ec X-MS-Exchange-CrossTenant-AuthSource: SN6PR03MB3871.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Sep 2021 11:50:27.4873 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: d57d32cc-c121-488f-b07b-dfe705680c71 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: t0BfEQgzATjKv0LRoE+MC88QHamZzl9/npItXT5ysq9OKPzM2yVxvbS0m7FbmxPV X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR03MB4224 Received-SPF: pass client-ip=40.107.92.134; envelope-from=alxndr@bu.edu; helo=NAM10-BN7-obe.outbound.protection.outlook.com X-Spam_score_int: -8 X-Spam_score: -0.9 X-Spam_bar: / X-Spam_report: (-0.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HK_RANDOM_ENVFROM=0.238, HK_RANDOM_FROM=0.999, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action 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: bonzini@redhat.com, peter.maydell@linaro.org, =?utf-8?q?Philippe_Mathieu?= =?utf-8?q?-Daud=C3=A9?= , Darren Kenny , Alexander Bulekov Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" The code mistakenly relied on address_space_translate to store the length remaining until the next memory-region. We care about this because when there is RAM or sparse-memory neighboring on an MMIO region, we should only write up to the border, to prevent inadvertently invoking MMIO handlers within the DMA callback. However address_space_translate_internal only stores the length until the end of the MemoryRegion if memory_region_is_ram(mr). Otherwise the *len is left unmodified. This caused some false-positive issues, where the fuzzer found a way to perform a nested MMIO write through a DMA callback on an [address, length] that started within sparse memory and spanned some device MMIO regions. To fix this, write to sparse memory in small chunks of memory_access_size (similar to the underlying address_space_write code), which will prevent accidentally hitting MMIO handlers through large writes. Signed-off-by: Alexander Bulekov Reviewed-by: Darren Kenny Reviewed-by: Philippe Mathieu-Daudé --- tests/qtest/fuzz/generic_fuzz.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/tests/qtest/fuzz/generic_fuzz.c b/tests/qtest/fuzz/generic_fuzz.c index 6c67522717..0ea47298b7 100644 --- a/tests/qtest/fuzz/generic_fuzz.c +++ b/tests/qtest/fuzz/generic_fuzz.c @@ -240,10 +240,17 @@ void fuzz_dma_read_cb(size_t addr, size_t len, MemoryRegion *mr) addr, &addr1, &l, true, MEMTXATTRS_UNSPECIFIED); - if (!(memory_region_is_ram(mr1) || - memory_region_is_romd(mr1)) && mr1 != sparse_mem_mr) { + /* + * If mr1 isn't RAM, address_space_translate doesn't update l. Use + * memory_access_size to identify the number of bytes that it is safe + * to write without accidentally writing to another MemoryRegion. + */ + if (!memory_region_is_ram(mr1)) { l = memory_access_size(mr1, l, addr1); - } else { + } + if (memory_region_is_ram(mr1) || + memory_region_is_romd(mr1) || + mr1 == sparse_mem_mr) { /* ROM/RAM case */ if (qtest_log_enabled) { /* From patchwork Wed Sep 1 11:49:58 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Bulekov X-Patchwork-Id: 12469273 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=-17.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,HK_RANDOM_FROM, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham 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 F226DC432BE for ; Wed, 1 Sep 2021 11:56:55 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8AA6560F92 for ; Wed, 1 Sep 2021 11:56:55 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 8AA6560F92 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=bu.edu Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=nongnu.org Received: from localhost ([::1]:48306 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mLOrO-0000Fm-O2 for qemu-devel@archiver.kernel.org; Wed, 01 Sep 2021 07:56:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56406) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mLOqI-0006TJ-Go for qemu-devel@nongnu.org; Wed, 01 Sep 2021 07:55:46 -0400 Received: from mail-dm6nam08on2071d.outbound.protection.outlook.com ([2a01:111:f400:7e8b::71d]:59953 helo=NAM04-DM6-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mLOq4-0005WW-9E for qemu-devel@nongnu.org; Wed, 01 Sep 2021 07:55:46 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SKqBRt1qyXREqvMDB2lCfSJVMxLt43VNg2PM7Cml/nIVvZPFjPr6rwNrMHh36FgvyHubdjdRNEypxcaZin/aRkodH016F8UU24iwUa9iPV0mMtaLzNuaOMEetFgn0DP3R7wpLPn3rkt6730q0jaovMej2NIJhYeHnfFGJhT51MynCJgQV6oIBs0qnCzJlkJetrHTy4H/uU0D9e51CfzP46GPyxiEtLDfI5jbUqqXn7SHvsNGpyO1Wi5jxGRwixd30KVLP4/Y3CikjWxa4rBvG5WXCARGFAokynrNo8FSgl/QC9k168LtV/OPs/5s4O0oMAQvq++cOqSrbDl+4ZZizQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=hmPJ+fD4N3a/Adp1pQJyGkU/mGVHfc5J0H8LriDEbPI=; b=nBEf4zTS8zYc5FTfCMNuv8dNg4dS5+su5emZvPTQksHD27MwhpWq1OAEd1aUepwlR2qolMo0q5VAmH/X5vNIoAElDUUY9oR2+UQqvib1kgGKdSI4Ye2/uqoKjab5+SzBrBVb+AxooK0vW9jVJmazDDO2KHj0QVoOBt/nlY6uy84cL/Wc5r8FgJFeyA5AvYBDa+yVcN77Qh3+s+eBHwYOAp89HDunOHa4d2F85gEWKez3NuZXFnS8VTFcCZ5epqPlr40qYUYkRIf5XhzWoNtn4JI598I8d3dNx335fpwoG/Vg2FzWexGb/Nb5bO/rn4AjBgA7t3BYsWZwu4F1Y99qtw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=bu.edu; dmarc=pass action=none header.from=bu.edu; dkim=pass header.d=bu.edu; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bu.edu; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=hmPJ+fD4N3a/Adp1pQJyGkU/mGVHfc5J0H8LriDEbPI=; b=N/G4l4SEi4VXE2/bUe899m994FJOd3Kj/ZIZvz7BmDl+QnbO/qb3xIf0pzw1zoLa0LKYeKeTWURrnRWaTYDZouJOQDazoxJJ4ueuFcjd+55YXi3ek3a0EFlDz36AlUqJ9LFL69TSEK4unX9zBTC9yDdfRhVDO91gL9QDDNACOsAg8SUENnAcDq2Ugau+TCG3gB2BBZATI6veyeNfXRnJomlb5CzCiTGjaczFl7en37NvPVs0+ocZ35bjgsNQlGcScucp7X9oyIURfbnXrhdvL/8LVJDnpqeKYKzjgFqJBfkE4upfSU7BMivPTJRSxMM2vrZZ4cGCLpv/zGHMSGOBwg== Authentication-Results: nongnu.org; dkim=none (message not signed) header.d=none;nongnu.org; dmarc=none action=none header.from=bu.edu; Received: from SN6PR03MB3871.namprd03.prod.outlook.com (2603:10b6:805:6d::32) by SN6PR03MB4224.namprd03.prod.outlook.com (2603:10b6:805:ba::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4457.23; Wed, 1 Sep 2021 11:50:28 +0000 Received: from SN6PR03MB3871.namprd03.prod.outlook.com ([fe80::f6:2ec0:d576:8139]) by SN6PR03MB3871.namprd03.prod.outlook.com ([fe80::f6:2ec0:d576:8139%7]) with mapi id 15.20.4457.024; Wed, 1 Sep 2021 11:50:28 +0000 From: Alexander Bulekov To: qemu-devel@nongnu.org Subject: [PULL v3 2/8] fuzz: adjust timeout to allow for longer inputs Date: Wed, 1 Sep 2021 07:49:58 -0400 Message-Id: <20210901115004.34768-3-alxndr@bu.edu> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210901115004.34768-1-alxndr@bu.edu> References: <20210901115004.34768-1-alxndr@bu.edu> X-ClientProxiedBy: BL1PR13CA0328.namprd13.prod.outlook.com (2603:10b6:208:2c1::33) To SN6PR03MB3871.namprd03.prod.outlook.com (2603:10b6:805:6d::32) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from stormtrooper.vrmnet (72.74.210.193) by BL1PR13CA0328.namprd13.prod.outlook.com (2603:10b6:208:2c1::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4478.8 via Frontend Transport; Wed, 1 Sep 2021 11:50:27 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c5eb0f3d-6000-4334-b0b0-08d96d3eb160 X-MS-TrafficTypeDiagnostic: SN6PR03MB4224: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:765; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: W2hMVi4MFRcmRPPMpqQVtUNcJd4Q29rA09/UfyGjiEx45qio/gPsBgfbRNioZ56KW32jvvD1yL6WxP0GWSt7D0KZi8SLoKN133cCy0p6dUKiwBvxHzN4fDwYjYacfWHTSjREogOYswm15eQN2Tp85AaXi2jBGWuP9PtDX3oXTFxJaH9kmXhKPqcH4jzC5ARpO3w0gebMDFzLUbRqXqNIme+6CHLcv6A6UHCq7q/+P9F1sdD9rTF/ipLwRq1jHcyiJGdTrAXBxtCjWlmnori8WF9PGbEvnhSf4jh3113uia2zJRYas6oimOyY/pMOTq+blF/l2HmT1AovnThqJidG36fGycrXAVdF1a5DekWt8G8oW6xI2mAVplcHxwNCD+U3dJ/fy1G2imANKwc5oGmReCrGVyLkmM3CpniGfFmYQ3klw14MHleqBQFsKtXVmh5yV7HkMfmGFgoPmP7ACctUQZqPZn3MX4rk8pJDdDC1sgZq2SIRyl7AaKKQrWTbQco6QCL/8siCqGHAEfkwQ6/9tJq+X6WyY9ipe4DiPB7xgAhQ7T2Cbe1VMyyhSAsg4T2jfeP0FCc60FvN/32hSpCfifT6FMjBrU4QOSlKwyymqr2Q4U8A2d5kT0BTSOkIMgaQg5Qsg9z5l5LxKX7vSYNuEnQ0rnMCIOPPnY0QkmKfyO7dPWOuIzLsmpD5LWWSbyTKWif4vYAbjAIbclZHevXU3/0Y7tfGdYqEOiB/CclMYuE= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN6PR03MB3871.namprd03.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(346002)(396003)(136003)(376002)(366004)(39860400002)(75432002)(8936002)(38100700002)(38350700002)(6486002)(4326008)(52116002)(5660300002)(86362001)(36756003)(956004)(2616005)(2906002)(66476007)(66556008)(54906003)(1076003)(83380400001)(186003)(316002)(6916009)(66946007)(6512007)(6506007)(8676002)(26005)(478600001)(6666004)(148743002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: JQqdyS24REEAkJo9mX7kQ+pnOLg8OLYv//7YUro35GSLqtcv/d603mUbOKd7SVbjXb3nduRop+UHK/N4+jkFtiek3UPCNrhn1w+N8uXJzPwWGpJNySuAeLSQCqFC7JXOGAQvEKGExHWbj+BjzcuwF83aTFf49V97fSOfYhu+soug7QC2l1y5Ygd5lOVhb/8U83iYEqfi2tfP64tAXLCdiALx2geXgtZ/8Fe5y/6F/IB1D8iN3w0JYXSL8dV2W7QviexW0ouAKslhOdRRp+DIqOIkdzz9Y5E2HPGhPSljClv6Vwvk10w3l/GvcCs6afs4nw3yObTvFVBTbs9Dq05+ozSY0PgTuLQbOj+zQV+e5cCPXJjf2Z9QSln7myPsETlbYXdgppaJB5BUKhmgySMRi37JgizYQ+VWXj0tX94ly2HABER/+ikoo9Kq/08Ydj3WNpDkjDZKSD+Euw8NjmRt6s6a8vwNOyK8/zHCSKVJIy+iyyOYU8T/21A6/0jBJuB09Xyj7oIujfRaedFkGZv40JzZckss7qsH+ha50XZ3QBY/LjXERtOlarTZKvVPWg2ARjAn621BFQlR/dQm9L29XrirFfnDEZTtan8VeW3bT7DtnKtPlLKnrBxURwBEiN5bE8NRDkYC/xvMJU2yOJlWRTm3UN8xtbHqCcPqWfTTkpYhIXvVPYBt/eO5LYMz0mS7L7n0apmNq3ZofIrdI3B8bpN+yZYlV+tDP+iCt4f6+gO6RmKGC2imLIQB/nCKapAqhtjuxUNWQLb+w0em4+eNT2uaLrKQ7wDMdYsccxtQ8UTc2AeUFNQmUojuIb+pRvhZYcjeZaeHOYzZ2e+M65lIPFUnQxqS8ouseJgTu2zroTIPQNRix24pzz6MefV0mv4fUjPItZ5vY5DXWchnXsb39BaX0tluE9YPEZ69zuf5YylSAd5CKvB14Onl7sjYFo8jvC2UHI2j7G3CSubsxhMypZyxMc2zng14Q7PXwimrJcfqb92+aEBChVW6zv5sPqqYOfl3kqHZm8Dd00LFeSfQD8TeWc0dvKQWU/BVVUZFfFsSJYAQzMBj5ZI496b8rdnI+2n4U5bC5zzHDwHyL1LwgzvaO1oOBCT998YxLxz6XD1v5kt8Mh5KjgAAR3/8QVUEyma9oTXmc2s2d+pUARUlXXcZmNrBP8MaxvWAvmsU1AwV04TrICPMaQ+3aZBux5eu4Gv85Oj80KwxUSeLjVZT0eL4w/cS3Mrm+BtO6iPTXGc7T9CuZLmGMtzxrOm/rES8Wn1CQeQYnNKgtrgsFgrzNg7pQjrrLTcOSMDmOGgfi6+XMlUOuZzR/lZQRHij1gPx X-OriginatorOrg: bu.edu X-MS-Exchange-CrossTenant-Network-Message-Id: c5eb0f3d-6000-4334-b0b0-08d96d3eb160 X-MS-Exchange-CrossTenant-AuthSource: SN6PR03MB3871.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Sep 2021 11:50:28.2139 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: d57d32cc-c121-488f-b07b-dfe705680c71 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: oNyHNF+1/0YkDCxtRZY5wpa80yo2pTKWw+npDqwjZjc7I7hJnISLzQaGk6mThjND X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR03MB4224 Received-SPF: pass client-ip=2a01:111:f400:7e8b::71d; envelope-from=alxndr@bu.edu; helo=NAM04-DM6-obe.outbound.protection.outlook.com X-Spam_score_int: -8 X-Spam_score: -0.9 X-Spam_bar: / X-Spam_report: (-0.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HK_RANDOM_ENVFROM=0.238, HK_RANDOM_FROM=0.999, MSGID_FROM_MTA_HEADER=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action 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: bonzini@redhat.com, peter.maydell@linaro.org, Darren Kenny , Alexander Bulekov Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Using a custom timeout is useful to continue fuzzing complex devices, even after we run into some slow code-path. However, simply adding a fixed timeout to each input effectively caps the maximum input length/number of operations at some artificial value. There are two major problems with this: 1. Some code might only be reachable through long IO sequences. 2. Longer inputs can actually be _better_ for performance. While the raw number of fuzzer executions decreases with larger inputs, the number of MMIO/PIO/DMA operation/second actually increases, since were are speding proportionately less time fork()ing. With this change, we keep the custom-timeout, but we renew it, prior to each MMIO/PIO/DMA operation. Thus, we time-out only when a specific operation takes a long time. Reviewed-by: Darren Kenny Signed-off-by: Alexander Bulekov --- tests/qtest/fuzz/generic_fuzz.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/tests/qtest/fuzz/generic_fuzz.c b/tests/qtest/fuzz/generic_fuzz.c index 0ea47298b7..80eb29bd2d 100644 --- a/tests/qtest/fuzz/generic_fuzz.c +++ b/tests/qtest/fuzz/generic_fuzz.c @@ -668,15 +668,16 @@ static void generic_fuzz(QTestState *s, const unsigned char *Data, size_t Size) uint8_t op; if (fork() == 0) { + struct sigaction sact; + struct itimerval timer; /* * Sometimes the fuzzer will find inputs that take quite a long time to * process. Often times, these inputs do not result in new coverage. * Even if these inputs might be interesting, they can slow down the - * fuzzer, overall. Set a timeout to avoid hurting performance, too much + * fuzzer, overall. Set a timeout for each command to avoid hurting + * performance, too much */ if (timeout) { - struct sigaction sact; - struct itimerval timer; sigemptyset(&sact.sa_mask); sact.sa_flags = SA_NODEFER; @@ -686,13 +687,17 @@ static void generic_fuzz(QTestState *s, const unsigned char *Data, size_t Size) memset(&timer, 0, sizeof(timer)); timer.it_value.tv_sec = timeout / USEC_IN_SEC; timer.it_value.tv_usec = timeout % USEC_IN_SEC; - setitimer(ITIMER_VIRTUAL, &timer, NULL); } op_clear_dma_patterns(s, NULL, 0); pci_disabled = false; while (cmd && Size) { + /* Reset the timeout, each time we run a new command */ + if (timeout) { + setitimer(ITIMER_VIRTUAL, &timer, NULL); + } + /* Get the length until the next command or end of input */ nextcmd = memmem(cmd, Size, SEPARATOR, strlen(SEPARATOR)); cmd_len = nextcmd ? nextcmd - cmd : Size; From patchwork Wed Sep 1 11:49:59 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Bulekov X-Patchwork-Id: 12469307 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=-17.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,HK_RANDOM_FROM, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham 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 03B6FC432BE for ; Wed, 1 Sep 2021 12:07:39 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8788A60F92 for ; Wed, 1 Sep 2021 12:07:38 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 8788A60F92 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=bu.edu Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=nongnu.org Received: from localhost ([::1]:41970 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mLP1l-0007Y1-My for qemu-devel@archiver.kernel.org; Wed, 01 Sep 2021 08:07:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55226) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mLOlO-00075E-1f for qemu-devel@nongnu.org; Wed, 01 Sep 2021 07:50:42 -0400 Received: from mail-bn7nam10on2134.outbound.protection.outlook.com ([40.107.92.134]:37985 helo=NAM10-BN7-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mLOlM-0002UE-Df for qemu-devel@nongnu.org; Wed, 01 Sep 2021 07:50:41 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WcD0ycgO/VUGOn5KTs0JOc+Un5zwNHY0ExZQYupKKXTQU5vWAU5NwPDuHk5BxSspB7XgTtBcT6peGUkpmg4oggWKdeCA8JQg5uIk4w+5w54uRhb48/fCYVWhB6rkZvcXQUd/YnNg8MMdkBuq8+sSsZSWBH41UwsZsHZ6nnVGdznDT0Rrn+X3JBAAB28AkqQZCqwRKCPy8M+hgm1HIf7k3QIffAH4FNwM7BnlJ4+8hT89UyCVkJJ7dpe48S3t/L5x1DuuO0IVeuEKfp5lq1vnMf6kJy/Yvrq2BmSKY5najBeeIDafEbOVovPC3BarIxg6jowYwI120IFozxc0IlpmPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0ntD0CBll2MvnNR62ARlgC7X4fKZR9uGeVPZG4F+7zU=; b=NEqi+5K2aPm6VXAR67mu4zLOYcGUJU163Qcuv6if9YstN90z5rS9zVgDDwcbfokSo68Fvpit5UUgsRjQmBvrjUPO0HtabqALPgINvlYTlGXq1F35u8r5GbU+RwVPm8gWTEQqQg6+BKjHqHMPIF9txy4soNmLbPGmxZdUkeJ80VmsdWZk9tc31wkoMNxANqjuD+E2w2149BrspLMpE4oMbxZR2hrVnQhzCj/kBKL/CIfr5lHvDr0vMc6MB9BkxRywqLL3d52590m/51IJOEM7BOXi579/JU8LsRXd7OOpZBdnVcpiF+gm7aJ3XmfidfkxA2tmrwAsVwUCSrHkvdWt2Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=bu.edu; dmarc=pass action=none header.from=bu.edu; dkim=pass header.d=bu.edu; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bu.edu; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0ntD0CBll2MvnNR62ARlgC7X4fKZR9uGeVPZG4F+7zU=; b=MFNYydXpCBqKGJ45gfuHVrvvxNsX5HtQeqEeKbWAm+wd4xcqCUxreEoJ6AvgRvD2UIryFTfEOSjIfX7cNN7dltqiZZFcyKwcrvXAag1H4cTJzOOU7uXxm8G9mAJTnbyOG40T6CYmII+5b+5HYJZ9ls/0SsHu1QLmL+daZcNcN3Q53TKhddqSNfPXx5a9uHVeIFp1/eUSTSaWQLLsL+BYPMSafngNQxLz/P8E0s0rtIB1iU3t3RtYqxFfhTgZr19S9jYknieAR0ABYiVzS+YQrskNj+HJGWetxs9UFNgPB18MimVubAPxQw6x9sa79Ylpwpely6M33cQbd6EniqMJrA== Authentication-Results: nongnu.org; dkim=none (message not signed) header.d=none;nongnu.org; dmarc=none action=none header.from=bu.edu; Received: from SN6PR03MB3871.namprd03.prod.outlook.com (2603:10b6:805:6d::32) by SN6PR03MB4224.namprd03.prod.outlook.com (2603:10b6:805:ba::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4457.23; Wed, 1 Sep 2021 11:50:29 +0000 Received: from SN6PR03MB3871.namprd03.prod.outlook.com ([fe80::f6:2ec0:d576:8139]) by SN6PR03MB3871.namprd03.prod.outlook.com ([fe80::f6:2ec0:d576:8139%7]) with mapi id 15.20.4457.024; Wed, 1 Sep 2021 11:50:29 +0000 From: Alexander Bulekov To: qemu-devel@nongnu.org Subject: [PULL v3 3/8] fuzz: make object-name matching case-insensitive Date: Wed, 1 Sep 2021 07:49:59 -0400 Message-Id: <20210901115004.34768-4-alxndr@bu.edu> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210901115004.34768-1-alxndr@bu.edu> References: <20210901115004.34768-1-alxndr@bu.edu> X-ClientProxiedBy: BL1PR13CA0328.namprd13.prod.outlook.com (2603:10b6:208:2c1::33) To SN6PR03MB3871.namprd03.prod.outlook.com (2603:10b6:805:6d::32) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from stormtrooper.vrmnet (72.74.210.193) by BL1PR13CA0328.namprd13.prod.outlook.com (2603:10b6:208:2c1::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4478.8 via Frontend Transport; Wed, 1 Sep 2021 11:50:28 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e9edaae7-d6b8-4398-6c87-08d96d3eb1cd X-MS-TrafficTypeDiagnostic: SN6PR03MB4224: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:323; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: d+KHe0QRpZKIRlxifFqx694MPx8cLbsd+np2PlOs0cSXs884QaK23UfjmMszVEIQDvPoRthI3YQS9oegDJzOHeEfMUksHPmLg0yBuqqukAa7HSceVmJ2w1IeHDHzDKf7Vh4xECjp0xO66qMxIAfgyFLeGoywYYZRVNj9VDkF7GQD3A+wdS9B7IOALpKqLyRcg1lc4W2KUSs+zq/vGOlSjcf3vNHf70jbHY1ftDSqMApBczAK4mi+kyfBYuUpP9yCtWzWtnerEgnXNQochuORk2Wm2mqrPYAj2WkNA+eo3ELltZfqOg2DXy738rdx8ns+BPqqqXGIKArV3dtlGo31ixUtxio4SFWsbtXdtgFfycMJQYaBkE7m3OexNOPSOXqzJerPZcmLJy9OGtOPAQUDmP2r0SR8WIgvn4fgKhesxSMSg22ueUrArwOMOTtrPVyfYbTJsBborzsyuU7cl5tIpTIdsNHpk9eqO+aLseF9RHEyfh4oCh3EDePv3koQduMnJPhgNccw3wwGT46Ztma5yuM0YCUmNCO0/UFD41R+Fqg4+dDxa3WVP5CBGZHnZp4nCy/Qwai+5/hW/RW8Oe7TkMuXA0d8JiGZhltRU/JmcdHCxyA7OepqGqOTn5IzDRSp1/9pWK/sSVij3mUVycKIztdcASMbtMACT1Rxb/lJp4dPZBwmMORpkVYD465mNja+6G1oDtUrlE9yKA1PFxmmIg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN6PR03MB3871.namprd03.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(346002)(396003)(136003)(376002)(366004)(39860400002)(75432002)(8936002)(38100700002)(38350700002)(6486002)(4326008)(52116002)(5660300002)(86362001)(36756003)(956004)(2616005)(2906002)(66476007)(66556008)(54906003)(1076003)(83380400001)(186003)(316002)(6916009)(66946007)(6512007)(6506007)(8676002)(26005)(478600001)(6666004); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: v8dsEvEcc/bN1UZhrnRxq13XFl8zhj5IpBzPprCDJUPA0zqn9dyHZOE+yMo4zi1PXbPq6SJzmwyrG8+HAEwgoLrRP9ZgptMnITssebtnEluempzv8LLAyrTfCpIsT+2204dgAaisXgM4D+TF5R+MzK/qx542keUWxYggdY6CGpdls4bfyj3pdOS9pXcUPC07UKQJNpE+WEpZkSQQvXvJ2oEUZmBeneWrWXOJMCToEB57V7+XfD28l09JC+mPUZKRtkKxLcKQaD5GYR8VEsi9V09+HEWrLCuywRtUYjV+YXT31/5SXLY0FEdEBnK2oFjxo0CzPjwJ7RtY1TNrzM1vrk38L5LYX3Gh5rcAt0Coeu4ALNQMeV6R6e0reWY6p8rv8E6lxeSOeT59tue/rdWaVj8E834c2iUc+OCwO8AxjzczOGaw27SGPqD9ahYO2QZf2k+k/iu9Wnv9bZjrK/MlvNLd7W+sVLMkg2NnJHhbJZv4n/8ZT5D/D3jWiMOHhumVroWTb54DkxCZn9gphptV3utY9zvc3e45oQpifahSTZ/EaztVskOwOEzJMfLOTCM40p0Vt8oWNdCLhf7CHvXfLmfmFTj4t+vmyN5/0tDNB9EfKbZWlhoKa6kQA9nbe+pc7mmkeMkSg+v65Q1Uc/i65BKR5wVUE7UefWGcs8vC0tcezR9HFXzn0q02cZ1va+RQpu4p8gBRswBpLlUfAZqJc8gkdatQzfonPVk+zqkY9dodBH4LUlhof238sjXTyrfFjzNJ46jjQtpmzZt3nklK1saPkBk7A5gkjN1d47ToYxILCBwsztiEGY5FedtuqcfAenBNFysIfUgOQQxznrVT3gXJRckg0rLYJw/Njw2ORz/GNe55factQnh0rjTKDno8TeEPW94W/rjpz4bhk3xR7hHLUw42m+E1s6QQjsh6njO2FL+cp05t34oaWfLQ3CB5TYmohEn7SiDl4SJWwc2O+wi0oU83qkb9PZTDezsXxXbZW1ogrE2F1VtfQrUb7mZL7inKwzDDGS5GoBiVv9d/Kk2xcrgEWAKf9F3wRPs7pgO6bvigVEn/OPRolj9oal8ErfjSGySm735JDPZkgkl78gCEtiAgBHoJiMPn8b2L4ZuFez+nqCnsDi6IpJeaiQ6fmHo3x6p3k0Ik3pI03N8kEmH7sf526+2vMU4CFNyvB+zH4CKjI/zgDLCKCur7AfMwnnkF7CkggVrOnzqih1SGUrF2wGEwBvybkD3f/YNQnno0sFhMKx3MhGt60EQDoapQmNSxh74WJB197qheIsopc5xtYpf18n96uryfTPJfU3As0xJmAjQXl5tkMQv4Trt2 X-OriginatorOrg: bu.edu X-MS-Exchange-CrossTenant-Network-Message-Id: e9edaae7-d6b8-4398-6c87-08d96d3eb1cd X-MS-Exchange-CrossTenant-AuthSource: SN6PR03MB3871.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Sep 2021 11:50:28.9414 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: d57d32cc-c121-488f-b07b-dfe705680c71 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: p3wcvvw1fzAvNkvseyuTLmZmn0ple8pY0OYUEpnvWXtl3p6l/znjUKc5uo9YDMa/ X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR03MB4224 Received-SPF: pass client-ip=40.107.92.134; envelope-from=alxndr@bu.edu; helo=NAM10-BN7-obe.outbound.protection.outlook.com X-Spam_score_int: -8 X-Spam_score: -0.9 X-Spam_bar: / X-Spam_report: (-0.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HK_RANDOM_ENVFROM=0.238, HK_RANDOM_FROM=0.999, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action 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: bonzini@redhat.com, peter.maydell@linaro.org, Darren Kenny , Alexander Bulekov Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" We have some configs for devices such as the AC97 and ES1370 that were not matching memory-regions correctly, because the configs provided lowercase names. To resolve these problems and prevent them from occurring again in the future, convert both the pattern and names to lower-case, prior to checking for a match. Suggested-by: Darren Kenny Reviewed-by: Darren Kenny Signed-off-by: Alexander Bulekov --- tests/qtest/fuzz/generic_fuzz.c | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/tests/qtest/fuzz/generic_fuzz.c b/tests/qtest/fuzz/generic_fuzz.c index 80eb29bd2d..3e8ce29227 100644 --- a/tests/qtest/fuzz/generic_fuzz.c +++ b/tests/qtest/fuzz/generic_fuzz.c @@ -758,8 +758,13 @@ static int locate_fuzz_memory_regions(Object *child, void *opaque) static int locate_fuzz_objects(Object *child, void *opaque) { + GString *type_name; + GString *path_name; char *pattern = opaque; - if (g_pattern_match_simple(pattern, object_get_typename(child))) { + + type_name = g_string_new(object_get_typename(child)); + g_string_ascii_down(type_name); + if (g_pattern_match_simple(pattern, type_name->str)) { /* Find and save ptrs to any child MemoryRegions */ object_child_foreach_recursive(child, locate_fuzz_memory_regions, NULL); @@ -776,8 +781,9 @@ static int locate_fuzz_objects(Object *child, void *opaque) g_ptr_array_add(fuzzable_pci_devices, PCI_DEVICE(child)); } } else if (object_dynamic_cast(OBJECT(child), TYPE_MEMORY_REGION)) { - if (g_pattern_match_simple(pattern, - object_get_canonical_path_component(child))) { + path_name = g_string_new(object_get_canonical_path_component(child)); + g_string_ascii_down(path_name); + if (g_pattern_match_simple(pattern, path_name->str)) { MemoryRegion *mr; mr = MEMORY_REGION(child); if ((memory_region_is_ram(mr) || @@ -786,7 +792,9 @@ static int locate_fuzz_objects(Object *child, void *opaque) g_hash_table_insert(fuzzable_memoryregions, mr, (gpointer)true); } } + g_string_free(path_name, true); } + g_string_free(type_name, true); return 0; } @@ -814,6 +822,7 @@ static void generic_pre_fuzz(QTestState *s) MemoryRegion *mr; QPCIBus *pcibus; char **result; + GString *name_pattern; if (!getenv("QEMU_FUZZ_OBJECTS")) { usage(); @@ -843,10 +852,17 @@ static void generic_pre_fuzz(QTestState *s) result = g_strsplit(getenv("QEMU_FUZZ_OBJECTS"), " ", -1); for (int i = 0; result[i] != NULL; i++) { + name_pattern = g_string_new(result[i]); + /* + * Make the pattern lowercase. We do the same for all the MemoryRegion + * and Type names so the configs are case-insensitive. + */ + g_string_ascii_down(name_pattern); printf("Matching objects by name %s\n", result[i]); object_child_foreach_recursive(qdev_get_machine(), locate_fuzz_objects, - result[i]); + name_pattern->str); + g_string_free(name_pattern, true); } g_strfreev(result); printf("This process will try to fuzz the following MemoryRegions:\n"); From patchwork Wed Sep 1 11:50:00 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Bulekov X-Patchwork-Id: 12469271 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=-17.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,HK_RANDOM_FROM, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham 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 49163C432BE for ; Wed, 1 Sep 2021 11:56:43 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E659160F92 for ; Wed, 1 Sep 2021 11:56:42 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org E659160F92 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=bu.edu Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=nongnu.org Received: from localhost ([::1]:47262 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mLOrC-00080K-4t for qemu-devel@archiver.kernel.org; Wed, 01 Sep 2021 07:56:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55240) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mLOlP-000766-T2 for qemu-devel@nongnu.org; Wed, 01 Sep 2021 07:50:43 -0400 Received: from mail-bn7nam10on2134.outbound.protection.outlook.com ([40.107.92.134]:37985 helo=NAM10-BN7-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mLOlO-0002UE-8S for qemu-devel@nongnu.org; Wed, 01 Sep 2021 07:50:43 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Bxs4m1VawiWYcSdkPeEHa3P9ZK+Y6IuSC3EmkcJUbOE/7yQQXNM2k0zn+ZJVX2uJqcTJnR7BmOyVgs21byNCEzow7iFn/B95Ye/0z6rSRXRG0fC7duvS3TVx63tQTAKNw7NytFPjOOF3uZREpR8INjS5RPf3k6YfshqslMXaTigdpDCh+dlDMJSxpD4tFHos9Ay2zqG7KPrgRNstHyibXZOeoLfmWd9FH3Grobi+V68qm280/mZ557wVqB7GQBU3voo2S8sJYV1tn1+AV+EIDu1+/jsAtC3FXVD+0KLdWa+lSNywqrropinmgzdAogAczXpfz8wzBxIRkqHhNJDy+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5/WDogIKRTf9tAty5g7PKeEQpl5M+V98YbsyCPWHLy8=; b=bKcWQDX3ZsfxMuuuJdcEWDAa8lfGuKm0CVX6axrJPiF701adhoEqmKVftnNoS1cFrQACC497Fw3Yyz4Yh1x7U9xmsXAW5h7Fs63NNxallPxLa3ZCGE0JntwTB13nPEH5eP9tioUhyyS9P+EfBdL5zCblyedBRToTks40RlBHFK/m7Ul+LRXlC2qsw95P61vZpGbI8YWtporojAK3BOZG8jj/OovnSoMPcHnudtZPnEDM76HZQYIctOkfOsLgMhbicqyFifyD4y0W2cAxiBXjzGRFva41EWQAFfQdg/fLoxIaSZlzgnSMoKpNzQWYVAKywyPE1rO4iOYeOR5ltgRklg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=bu.edu; dmarc=pass action=none header.from=bu.edu; dkim=pass header.d=bu.edu; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bu.edu; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5/WDogIKRTf9tAty5g7PKeEQpl5M+V98YbsyCPWHLy8=; b=lNPDNnUWQpR2U6HL3byqC6Tb6fLle3Zks6rZL3ExUWs3eJ1qv4o28lQnTbihjB2qGkHO4RM7+PQnjOmaMw8oNy+pWFe2L3TwgxGDhBm7tLSIaXvaXFRTV0189MWf7wsMVrwDdtd1sjBZhnRFNP2HBDlgqyPV7YsicBE6OEcZVELTSjGJ+NEsYly4WDBMmjtndbtPvjL6sBZkpumT7JvSppW3BYoKsufZhj38kIhncWw4CM5EqmDKs1CKM1fdrRDCD+iUu3okTe2ap+W9wut5tEuWMrxVNT0Ij0Zncuv62/ZQTgKemrCe6r2MXzYBdjAIwo2MBKF9DQiXODsaiH2QoA== Authentication-Results: nongnu.org; dkim=none (message not signed) header.d=none;nongnu.org; dmarc=none action=none header.from=bu.edu; Received: from SN6PR03MB3871.namprd03.prod.outlook.com (2603:10b6:805:6d::32) by SN6PR03MB4224.namprd03.prod.outlook.com (2603:10b6:805:ba::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4457.23; Wed, 1 Sep 2021 11:50:29 +0000 Received: from SN6PR03MB3871.namprd03.prod.outlook.com ([fe80::f6:2ec0:d576:8139]) by SN6PR03MB3871.namprd03.prod.outlook.com ([fe80::f6:2ec0:d576:8139%7]) with mapi id 15.20.4457.024; Wed, 1 Sep 2021 11:50:29 +0000 From: Alexander Bulekov To: qemu-devel@nongnu.org Subject: [PULL v3 4/8] fuzz: add an instrumentation filter Date: Wed, 1 Sep 2021 07:50:00 -0400 Message-Id: <20210901115004.34768-5-alxndr@bu.edu> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210901115004.34768-1-alxndr@bu.edu> References: <20210901115004.34768-1-alxndr@bu.edu> X-ClientProxiedBy: BL1PR13CA0328.namprd13.prod.outlook.com (2603:10b6:208:2c1::33) To SN6PR03MB3871.namprd03.prod.outlook.com (2603:10b6:805:6d::32) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from stormtrooper.vrmnet (72.74.210.193) by BL1PR13CA0328.namprd13.prod.outlook.com (2603:10b6:208:2c1::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4478.8 via Frontend Transport; Wed, 1 Sep 2021 11:50:29 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: cb987f55-851d-4e66-834e-08d96d3eb23d X-MS-TrafficTypeDiagnostic: SN6PR03MB4224: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:7219; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: tGxggu2X4Nd7IrsvUpzsWrdQRnZE7M4b1p+DYJaPtnHZGjHax2U2GZ1jhd4yQ6VvPPFZQOcbygm48sEgaQgt6VKlaDRC2bzZ7I6uiHZlM70yla2qsADqkG2UbY3TcfJ1ygsVMHExXCZbz61zt1cBeUHFJQtwFql3Yh3klDXlOZY00ullKp59oVtNAOL5Ng9XF1OXLAAd7uKNOEIw+x8b69SkSmdm4XlDt0pXvjXonULUi3uN9UyHg8psEzepD0MnojKuvl7iRvTxXaYMca5PLXPRiQcyaiF7AV/XvD9655Fd+/Rp4bGbNROwZej+Z4sEsEep/sQP2KXXGPhMvjjvzgisUBbajOcEGqGbxAqJ9C7zXqd5mqbxRdfRgKpHEEfscONHFZz36zm+amqjPF0wAb8jKr+w1GfEeTy/YWMWuf4Q7mjexonLFpJZPDpWT5iWgq40gvLsABWUEvyjy7weEq4fZIY4/0qTxOCeThrdIbsSDQD04jw3b8yNIK3XK1WDv1omzsTHNyl7IAQs1b3AQ6LDqLyTnb7GSKRh1sNa9qLcoVaC8Gf0tCdw4QzkRQMpVTv+WOS+gqPI0Q8iW1vuqdsO0PIxJDt39S/RdNfJxXZ/C5Dz4Pg+qJAVc2QMWx/J/7ekMRfNNtMLhuz87qFLbgSp9fmv4wQ93yTGzjmbpTBCVIcpVvwI5tnOD57jvgbBVrbuxAMu7jkV5rasfdspUdDkJy5sSWDpOiXlbQ9phpWVh1b2Kd5hCBAKgH7vLmaR5NE4apXkrNEQUFGIEi0x8j0sLcjMqk80avsrvgIi7RH11eLW5uIEP9iYqYStCNID X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN6PR03MB3871.namprd03.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(346002)(396003)(136003)(376002)(366004)(39860400002)(75432002)(8936002)(38100700002)(38350700002)(6486002)(4326008)(52116002)(5660300002)(86362001)(36756003)(956004)(2616005)(966005)(2906002)(66476007)(66556008)(54906003)(1076003)(83380400001)(186003)(316002)(6916009)(66946007)(6512007)(6506007)(8676002)(26005)(478600001)(6666004)(21314003); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: nSP8LzNZxtyoi4rldefwCA2V4N8vm5C0kXPXyPOsAL5fqh0mQpp6VVZlRy+hF+UfnEF05vlzgQ7DwBf4jTUdnOg26Ky3v4yB0ufJw73xI+JZeVZx3IUi+zt8MdM1xTAYxOR9x1AvrFxsXDwiRXBymxHEfKxMpyQ3Hh148BkwojHcLEiSxyKDF1OXhIvjCrgbtKbnD8GZFA5JCb82KwgHplfcKDMjWt0irjsheM/J38EmPaE2+s7+xeGgGG9zTE3EvQomV+y5sUt6XAbNWBh33zb5t0GNM7kd+yqjASmQ7P+8UKtoXar923AUhLlLo+U0jQWuuJCxOQEAld1iKuBiTWgQb3aqCtsPo6apRoUz41HiYyj+L36Hf1UeJRu9sOsj8c2rp2zD7EG+S2k1oDfpGSYCP+EkZM9NLU/ytwOyyTVT+JcupykZE3A+q8o6qyYMjDiN2k/asUDzB9FfixNFs9WBuBorFQAsk0c2ZkSkl0htQD2WWpWp0J9b2WoHPEpyFv0+WfSIp7bjqcPfUVOlUkAtstSZPOJS8jYobBsP7ZTMY/AQM0wN+e9qhg5b/kf/Kw3xCYkNAQsvV72bzjl9GvyBXI7JXd73kt08fZEWBkEc+SGhSewyEOpj3kn9tLJ2PQG8ipm2Fhd0bLxHfwmf6ZREW/j3779oUZJHPM3vv93oxJDr2PXToYW0ET5dhqcI1C7k8ngvYFbf1QPnef3x9lyDcf+O9h2e1HRMz1XYnHSgXvsB2uqHQSMLfxagef7/U+Dob4+F12YSWDKBxUXRe7ANYY7lUP0G0nALvv3tlkrSPZIJ1PO+N7Bp9zgULV+e4mAs+vtCS34f7xmkTseHk5ieDgWPPM1rZIpnVamvRvQaIrmknv8NEa7b8NnAaVeqMXpyPancNcUEY/ijSQsdhQsSI8yDLl2QujvecNRWWB4tGs9ElhXECBVfyJo/xa03AuVdQxFH7rf6utblnMHjwOZulC90mm35ZpnYPJLYAPWS1J/dAmEnVJjYGcnu3HRzgYyqIIjadKYSezWnInzzNPqMBabCZVP9c3qNOBQlmU72wAzGJLOaPjhPrcv1ZmB9iRy4AOR2lIgtJ9C06SoDg/XkJBK811z+r64UFgZqeVSBlHIVgWj1EWmoR/VCECnxPZ1NcaqttA7oyquxFtrA+y8urfG43+O/Rrzzn5KyfMdBPgw/oUky1yzLcJ50ORGrWdYIABgdiTUiTLlDOZy0rPsPBdRik4Bll+71kVJdJegfst/YC3ipIr9M9XvCt61hubWunPHTESdubRQiAx5zCBEpTL7RH6x6E3bCEDE7gTlfa40QA+Qh4ls+bD5/WXhg X-OriginatorOrg: bu.edu X-MS-Exchange-CrossTenant-Network-Message-Id: cb987f55-851d-4e66-834e-08d96d3eb23d X-MS-Exchange-CrossTenant-AuthSource: SN6PR03MB3871.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Sep 2021 11:50:29.6800 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: d57d32cc-c121-488f-b07b-dfe705680c71 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 2seUCuiNo9AdYBTIAbjp1xs5RMQxkYgyg1kKfXNVy+LH1bGAL/8AeCMZOr/9EvDX X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR03MB4224 Received-SPF: pass client-ip=40.107.92.134; envelope-from=alxndr@bu.edu; helo=NAM10-BN7-obe.outbound.protection.outlook.com X-Spam_score_int: -8 X-Spam_score: -0.9 X-Spam_bar: / X-Spam_report: (-0.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HK_RANDOM_ENVFROM=0.238, HK_RANDOM_FROM=0.999, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action 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: bonzini@redhat.com, peter.maydell@linaro.org, Darren Kenny , Alexander Bulekov Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" By default, -fsanitize=fuzzer instruments all code with coverage information. However, this means that libfuzzer will track coverage over hundreds of source files that are unrelated to virtual-devices. This means that libfuzzer will optimize inputs for coverage observed in timer code, memory APIs etc. This slows down the fuzzer and stores many inputs that are not relevant to the actual virtual-devices. With this change, clang versions that support the "-fsanitize-coverage-allowlist" will only instrument a subset of the compiled code, that is directly related to virtual-devices. Signed-off-by: Alexander Bulekov Reviewed-by: Darren Kenny --- configure | 28 +++++++++++++++---- .../oss-fuzz/instrumentation-filter-template | 15 ++++++++++ 2 files changed, 37 insertions(+), 6 deletions(-) create mode 100644 scripts/oss-fuzz/instrumentation-filter-template diff --git a/configure b/configure index 9a79a004d7..dcdbe3f068 100755 --- a/configure +++ b/configure @@ -4198,13 +4198,21 @@ fi ########################################## # checks for fuzzer -if test "$fuzzing" = "yes" && test -z "${LIB_FUZZING_ENGINE+xxx}"; then +if test "$fuzzing" = "yes" ; then write_c_fuzzer_skeleton - if compile_prog "$CPU_CFLAGS -Werror -fsanitize=fuzzer" ""; then - have_fuzzer=yes - else - error_exit "Your compiler doesn't support -fsanitize=fuzzer" - exit 1 + if test -z "${LIB_FUZZING_ENGINE+xxx}"; then + if compile_prog "$CPU_CFLAGS -Werror -fsanitize=fuzzer" ""; then + have_fuzzer=yes + else + error_exit "Your compiler doesn't support -fsanitize=fuzzer" + exit 1 + fi + fi + + have_clang_coverage_filter=no + echo > $TMPTXT + if compile_prog "$CPU_CFLAGS -Werror -fsanitize=fuzzer -fsanitize-coverage-allowlist=$TMPTXT" ""; then + have_clang_coverage_filter=yes fi fi @@ -4884,6 +4892,14 @@ if test "$fuzzing" = "yes" ; then else FUZZ_EXE_LDFLAGS="$LIB_FUZZING_ENGINE" fi + + # Specify a filter to only instrument code that is directly related to + # virtual-devices. + if test "$have_clang_coverage_filter" = "yes" ; then + cp "$source_path/scripts/oss-fuzz/instrumentation-filter-template" \ + instrumentation-filter + QEMU_CFLAGS="$QEMU_CFLAGS -fsanitize-coverage-allowlist=instrumentation-filter" + fi fi if test "$plugins" = "yes" ; then diff --git a/scripts/oss-fuzz/instrumentation-filter-template b/scripts/oss-fuzz/instrumentation-filter-template new file mode 100644 index 0000000000..76d2b6139a --- /dev/null +++ b/scripts/oss-fuzz/instrumentation-filter-template @@ -0,0 +1,15 @@ +# Code that we actually want the fuzzer to target +# See: https://clang.llvm.org/docs/SanitizerCoverage.html#disabling-instrumentation-without-source-modification +# +src:*/hw/* +src:*/include/hw/* +src:*/slirp/* +src:*/net/* + +# We don't care about coverage over fuzzer-specific code, however we should +# instrument the fuzzer entry-point so libFuzzer always sees at least some +# coverage - otherwise it will exit after the first input +src:*/tests/qtest/fuzz/fuzz.c + +# Enable instrumentation for all functions in those files +fun:* From patchwork Wed Sep 1 11:50:01 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Bulekov X-Patchwork-Id: 12469293 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=-17.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,HK_RANDOM_FROM, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham 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 3A3ACC432BE for ; Wed, 1 Sep 2021 12:02:50 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9BBA160F92 for ; Wed, 1 Sep 2021 12:02:49 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 9BBA160F92 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=bu.edu Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=nongnu.org Received: from localhost ([::1]:59858 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mLOx6-0008Gq-Nt for qemu-devel@archiver.kernel.org; Wed, 01 Sep 2021 08:02:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55258) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mLOlR-00077w-I7 for qemu-devel@nongnu.org; Wed, 01 Sep 2021 07:50:46 -0400 Received: from mail-bn7nam10on2134.outbound.protection.outlook.com ([40.107.92.134]:37985 helo=NAM10-BN7-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mLOlQ-0002UE-4f for qemu-devel@nongnu.org; Wed, 01 Sep 2021 07:50:45 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EVyBFBhkVPcrMOk6QqwW4zUlgCJqa2Y1bU4F2UuHQeoHAsNUGRpb0NApcsb1yKKz+O70cASjE+29gyKVL0xWsQsJB68YmQd+9tVN5GL5tl69mQDuDf35TSF7TD1yEBicvTy6NSuFilt7T4yj/ZZIUjKOwq9BxAM0hjhlMXj7H8Jh8CTj1KZVXu4aQay8Laf0IiCmtje95xwMDcjFg/8VVrXYCp9ArW2AK4Fx/Zz3+8XhVhCXY7j7M05uJoWTmBF4p2RPYlPTaHWxbkPptJHPWooSxY3tYSaAQ75KaNG0KU9CkQvgstoDX0mK1aA9xVq7TDxWw/OvBeTxLSzMS2a2gg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=KT/R1x1z+z1p3xQY7naIic6nQNwUSCMR6gBle7mPU5g=; b=hBEYtAgCF8T3ZzVqF4/ZWCSAQl1yiFbGTho8fO5v0tO5ybtBAcya0rzchuvM+wiHPiHiskpwd1iv9NwL1lZsbxklF6thW9ReY30QLtaCq9qzbWceEk6dfXgsq8ilGQn8OcjyJ6nn6LYC3HRQckBUOQqg/4jvaxMrCTLT9/VH/iOyPHJsUwYIGXZVjGj+AHrfjiVTOSIE9wego5Xo47DyEJXzkQR1Z9nIwhSc1J7kE8w3NjnTWlPcSVPmh6EaW+/nqmZ75jMuI7WXRRR2rvYDYex+Jwqz/rbX4fAy/srB9mf+RZFAPVhUzgVtfclSJvrBfWAfjGLEObC03heYJs6i7Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=bu.edu; dmarc=pass action=none header.from=bu.edu; dkim=pass header.d=bu.edu; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bu.edu; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=KT/R1x1z+z1p3xQY7naIic6nQNwUSCMR6gBle7mPU5g=; b=Rkq/XlbNY92ESn4+g+hIonM+TOHOhXfHatWvIkJVACUA4gJmWiXVihxaxM4IzylJ8fDnt5WT2Vt8Dgq+7xJQ2yGBdF2RVhrybvb1h8xe8BKUJ5ye5wjSRgJNgyeyGvp9JmioQlt0Yt7cidmiO9Hvv58YEdi9mV3RRbGQjJ+zb1B31IMgGgziKErtEsXXwv3EEt8ujoKcaJjuhwYg1Z+Jpys84kcowrTYecO+bs4TsYj5UaMvUJZRL6wMgEHdT0e3KfpFitaU32WNTlpJkuaaKZP3T+GTDc3Q/eJoXlsxKn1P4XpZRVeFZC4zJlVDxPZSHImsPjtrckWxvteF00K0VQ== Authentication-Results: nongnu.org; dkim=none (message not signed) header.d=none;nongnu.org; dmarc=none action=none header.from=bu.edu; Received: from SN6PR03MB3871.namprd03.prod.outlook.com (2603:10b6:805:6d::32) by SN6PR03MB4224.namprd03.prod.outlook.com (2603:10b6:805:ba::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4457.23; Wed, 1 Sep 2021 11:50:30 +0000 Received: from SN6PR03MB3871.namprd03.prod.outlook.com ([fe80::f6:2ec0:d576:8139]) by SN6PR03MB3871.namprd03.prod.outlook.com ([fe80::f6:2ec0:d576:8139%7]) with mapi id 15.20.4457.024; Wed, 1 Sep 2021 11:50:30 +0000 From: Alexander Bulekov To: qemu-devel@nongnu.org Subject: [PULL v3 5/8] fuzz: use ITIMER_REAL for timeouts Date: Wed, 1 Sep 2021 07:50:01 -0400 Message-Id: <20210901115004.34768-6-alxndr@bu.edu> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210901115004.34768-1-alxndr@bu.edu> References: <20210901115004.34768-1-alxndr@bu.edu> X-ClientProxiedBy: BL1PR13CA0328.namprd13.prod.outlook.com (2603:10b6:208:2c1::33) To SN6PR03MB3871.namprd03.prod.outlook.com (2603:10b6:805:6d::32) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from stormtrooper.vrmnet (72.74.210.193) by BL1PR13CA0328.namprd13.prod.outlook.com (2603:10b6:208:2c1::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4478.8 via Frontend Transport; Wed, 1 Sep 2021 11:50:30 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: cfd13061-48b2-4736-6de7-08d96d3eb2b8 X-MS-TrafficTypeDiagnostic: SN6PR03MB4224: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:949; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: G8dNsiaY+jdk5F3dQJqabKtkp5R1hBFtN5z0R2LLH6BAJvwJu7sx+fP/+DUrj4c1EKlqa4zqkoFKcpjqGA+6ZpEwF7pVM+JHLYnScQnKjIsbS8sd8yULMvNNXkAXctLlhgY4uK99bWvS/6J1Uxv+HJaQ1AucjUCevBxVCBKWAWW+LKIiFKlfUxysaucLJeyXqbjEbSfgjl+X6srN9AtZewVpba8jUbHhOfZ6nOasAohBaUD3pKs00vjfw0iccxqjgEvhFd0oa5iohITFMgKIquBtH40ZdFAm7hsoVKGeQC54lyxTCe/ae3zGAYRl4vGHB9ZpCwgs6LF4ENnyTFmQY0Mo4Hn3axoEDteLn9Y0cMUmD5M8w+sG5p+/dxCdLDpFiZioSrfzRaFQrtIRRoJ+nWCgG0jIkpvllVnieJpxLfbuBOlwGlasiBUKs93kr9RfdZ+eFR1qmAjBobQNDUIe7fs1B/R5jm/y6BhASze59iCsqf+hFWf1SJn60I2MDlLgFJoTj4w9SvYqQrdPoJL9b5JDGGoVkY2tTaAxmVR+GRoNK1/+nRaBSxsgkDKgFJjjAL/KBV9mJx9yt6eLK8bv+VR7uhvATFnRhCiAYjebqMLDB3j6GuLMms0YY1QA63CYIQ05yLFPDUS6sjkxvhMtJc2x42+D1BjPlHvg6XxYvWSWj/GS0DPvanZfVjGDwv6ZRdnpMh9F99aDuZs0Fy77Mw== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN6PR03MB3871.namprd03.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(346002)(396003)(136003)(376002)(366004)(39860400002)(75432002)(8936002)(38100700002)(38350700002)(6486002)(4326008)(52116002)(5660300002)(86362001)(36756003)(956004)(2616005)(2906002)(66476007)(66556008)(54906003)(1076003)(83380400001)(186003)(316002)(6916009)(66946007)(6512007)(6506007)(8676002)(26005)(478600001)(6666004); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: hJQ8uXefLXpwS5Sb9Ze1xfnU5+9JK5Pp2BEoccSe14PbNAGV0ObuqWf4xYKOMaJOzxEmTaE7Fr9RvUyWeZ8Bezpq0ovxBIkSXi8rcSGHg2Jf4ZQB88B722dh5v3x8hYgefcioG6OX9r7i/bRrP7Dkm6IUZ40uuG6hbL6CUw8xg+cecQtECr4Zrq4NcFPWjz7dO7xRpGS49cioB+Un+XY+K0HccxSqNBWS2ieaMiRYL0wq//axdMHShijs/NyuFA6jFq1onWyke8vRr518lAaDqsFE7comc62KLWcR0ZEKzFZc5lgKw6vEpMnM+gkfKhjdUmI9SJWvW7x7dCeA8h0KWLp9dz3Jo2szG9EecNn/uT6MbdjAoZJT464pkBgRl/XyAMM6ipCBqKmPfdKEO1OHDDv+J2b7bhf/P6gGHKoSVncED6+Ci+xlz+M5Asah+eCcXZU815uoDSYRVO0hLM1WzIkLtJ2ChxBG571HXOucx3PMBv/OvtLwZ9OEDLsO+ayAXjD0Pu+obixkz2jA7150DqZv8P4/I5+K7AbP2ejIxH/8eA0ytS8r0lHC1051T7BzTrROduzemUT8r72KS4/brAhE6yvX+P2fbTjSV+7wB25vURwPljEP1PYuwa36Nke/RvKUhTkCQdwXT1jpYlDudrH0NKrqMDFNLSaT+PKny1UndS+9R9iT/PJy2gAKT26yEi7AmaOdSgu0DxMxdTslnlzW5Kiz0zAmTqRETA9I20nHBVfh9hy4TYgFrf/fwSGDep/JvljmqfIq7IooOSAET9LqEhTqKZjA7B80A06qCTthyD5OopxEB+5E5oiO8omXzhq8MMwXicHGosE5k/T5GCuqhw0iAlG39qDMfCnazck30bVk39p1DHRHoEBZYQE/txpX/nNBKexRdlGXETJDmasN9rM6Yxcd6+0+OJ4y4Wd/wsE85fuvpkZSjY7B8dVrjpXNKD2Ey3iJTBuM3smH6MMmnCuw/+cWwPgXh2Xh3xfoKsyhUi3ULPF/h4vn0u62G829Uz+xC4PCK2oI5isIsDJgzKvA65utqgYDxPfz9WXug6AV0ojcs3Sy89SXpWepe0vPtr/Q2C9cjid9P622qdisZMYCm5ZmpERVWIywXConH0uS2ITNHc0Z8QtWoF3TpTP6oNc9iJBdgQe9QYmekcqaxrSjOeZnWjApT77cBjRXMu9V0ni29TjQoZsuWjusUMSEYJvMs/nuflf9A2OGPB8bI01fbFaRGn7QktaVmg1jjlOrp16l/XAQ99442RlOE1IAYUOvobxBAr+s5Uo2ODM1L9DEycozNKNdOF3u1wh4xb0kTTvGNaw3bJjmZNr X-OriginatorOrg: bu.edu X-MS-Exchange-CrossTenant-Network-Message-Id: cfd13061-48b2-4736-6de7-08d96d3eb2b8 X-MS-Exchange-CrossTenant-AuthSource: SN6PR03MB3871.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Sep 2021 11:50:30.5385 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: d57d32cc-c121-488f-b07b-dfe705680c71 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: MGoRk8v08A7NeOHRN1fESuebTDIrKMWuijfscQxG6Vcgm7CwITnpPXibNUamMJ2k X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR03MB4224 Received-SPF: pass client-ip=40.107.92.134; envelope-from=alxndr@bu.edu; helo=NAM10-BN7-obe.outbound.protection.outlook.com X-Spam_score_int: -8 X-Spam_score: -0.9 X-Spam_bar: / X-Spam_report: (-0.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HK_RANDOM_ENVFROM=0.238, HK_RANDOM_FROM=0.999, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action 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: bonzini@redhat.com, peter.maydell@linaro.org, Darren Kenny , Alexander Bulekov Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Using ITIMER_VIRTUAL is a bad idea, if the fuzzer hits a blocking syscall - e.g. ppoll with a NULL timespec. This causes timeout issues while fuzzing some block-device code. Fix that by using wall-clock time. This might cause inputs to timeout sometimes due to scheduling effects/ambient load, but it is better than bringing the entire fuzzing process to a halt. Based-on: <20210713150037.9297-1-alxndr@bu.edu> Signed-off-by: Alexander Bulekov Reviewed-by: Darren Kenny --- tests/qtest/fuzz/generic_fuzz.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/qtest/fuzz/generic_fuzz.c b/tests/qtest/fuzz/generic_fuzz.c index 3e8ce29227..de427a3727 100644 --- a/tests/qtest/fuzz/generic_fuzz.c +++ b/tests/qtest/fuzz/generic_fuzz.c @@ -695,7 +695,7 @@ static void generic_fuzz(QTestState *s, const unsigned char *Data, size_t Size) while (cmd && Size) { /* Reset the timeout, each time we run a new command */ if (timeout) { - setitimer(ITIMER_VIRTUAL, &timer, NULL); + setitimer(ITIMER_REAL, &timer, NULL); } /* Get the length until the next command or end of input */ From patchwork Wed Sep 1 11:50:02 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Bulekov X-Patchwork-Id: 12469297 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=-17.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,HK_RANDOM_FROM, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham 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 92BB7C432BE for ; Wed, 1 Sep 2021 12:05:46 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 38D696109E for ; Wed, 1 Sep 2021 12:05:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 38D696109E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=bu.edu Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=nongnu.org Received: from localhost ([::1]:37524 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mLOzx-0004La-Ds for qemu-devel@archiver.kernel.org; Wed, 01 Sep 2021 08:05:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55272) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mLOlT-0007Dq-Kh for qemu-devel@nongnu.org; Wed, 01 Sep 2021 07:50:47 -0400 Received: from mail-bn7nam10on2134.outbound.protection.outlook.com ([40.107.92.134]:37985 helo=NAM10-BN7-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mLOlR-0002UE-Un for qemu-devel@nongnu.org; Wed, 01 Sep 2021 07:50:47 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kmGNhk5x0JeJC9C4shrWaiyo7Mw0ezMiRUv1L6IYrG4IXOWhPDgGK0lqTpA3oW/ldaovGZXMGlC8TPlUjI8lw0/m3hLjkrae17NWeewyPE4H+XiaAzREmHNowrenzCrL7Dm0+AQnqXO53daBFWlJEYeLy5uKvI8CBd3o4l9OpwIPsfD+ecuZYsg+mJIZGL9RtTXM6VSehxv9q4219mNwyQ570ssi+1IBd+/dwYVygo/kdC4RiaXGzB18AkJ1MXTuVE6BTOZdk8TmM2xNdu2mylpYwfAw8JDgN6iXtbjfFT0vHQ4JgtluPEzjSAz0DAkGX53yFtnlbl+hoX0c7h53wQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ViKyFqWQnUNATUV6hbSOgD+ZMIhOJoUIKxxvWtS8oG4=; b=iOPzn1oASqUMXmdkhjXbxfEwEchMEnn7/XzP+piA+ebbuXIUtGg5iktBVaTngOrAsq6KJpPxvQfiGQkIXBKyoJjXJZ7U4nOlDcxMRkoHvNKEBF3Au7vvAfhpXd9tF854GCntYvoZO3ppAYbgBFj951xBPngy8xEhb5oIW5PxnoOKhpDLFMg7CvPvOnA1zoZ0wTQWarlsfM44EvbDOKLr/3NqZonDJG7UdsAMarvSwv4EjsR3LoGBi1lWKl/0TnlAckEcUv4n+9UvLg1H4crQnCk5L6Abgg74OBfc8l63XiAhHr7CJZXYuc9aHiG+8kVV099sCDoeHzQBzIit1xII2w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=bu.edu; dmarc=pass action=none header.from=bu.edu; dkim=pass header.d=bu.edu; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bu.edu; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ViKyFqWQnUNATUV6hbSOgD+ZMIhOJoUIKxxvWtS8oG4=; b=CYJpy7kzTF6+Q1KasAb5+YrW2yuC5+d/bvzofnxVTB233DkMBAF9j+BiAnaH3ZZChLcQnRjmDQHnA7ie/gjUE2JpvZCd7KGmecavJsMao4pZk93tGfoc0ADocP9FIwur7Nm2Qp49qgADR/D4gTngCNu381cnPAFSXjHwCHuYMYATGqxmNL9oRzkL1EKdaGBlAe/iekwuw8787RnwkYIbjzzQT/4wpvBysyDOXYHpDvEnqh/wioJvbjDe6CkB4OBziT5OuhhBXR85ikG2Br94N1Uw01lTimkBvExP39J+wUptOi2CYmyKDutaoVn35UV7ocLQrdd4UK1IfdNCGiuqjg== Authentication-Results: nongnu.org; dkim=none (message not signed) header.d=none;nongnu.org; dmarc=none action=none header.from=bu.edu; Received: from SN6PR03MB3871.namprd03.prod.outlook.com (2603:10b6:805:6d::32) by SN6PR03MB4224.namprd03.prod.outlook.com (2603:10b6:805:ba::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4457.23; Wed, 1 Sep 2021 11:50:31 +0000 Received: from SN6PR03MB3871.namprd03.prod.outlook.com ([fe80::f6:2ec0:d576:8139]) by SN6PR03MB3871.namprd03.prod.outlook.com ([fe80::f6:2ec0:d576:8139%7]) with mapi id 15.20.4457.024; Wed, 1 Sep 2021 11:50:31 +0000 From: Alexander Bulekov To: qemu-devel@nongnu.org Subject: [PULL v3 6/8] fuzz: unblock SIGALRM so the timeout works Date: Wed, 1 Sep 2021 07:50:02 -0400 Message-Id: <20210901115004.34768-7-alxndr@bu.edu> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210901115004.34768-1-alxndr@bu.edu> References: <20210901115004.34768-1-alxndr@bu.edu> X-ClientProxiedBy: BL1PR13CA0328.namprd13.prod.outlook.com (2603:10b6:208:2c1::33) To SN6PR03MB3871.namprd03.prod.outlook.com (2603:10b6:805:6d::32) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from stormtrooper.vrmnet (72.74.210.193) by BL1PR13CA0328.namprd13.prod.outlook.com (2603:10b6:208:2c1::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4478.8 via Frontend Transport; Wed, 1 Sep 2021 11:50:30 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6a7bd2c3-c933-4565-3e56-08d96d3eb336 X-MS-TrafficTypeDiagnostic: SN6PR03MB4224: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2733; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: QyBjngZZXj2Wv9ae8pOlHBKNga/CKcJ06bNqJpVEemsCFxgfvXN4x8qCDnaVbJ07req+TZjNstKTvrUyAJub8fqcgbMV3voQraw6+j4HXvX64wm4Bqf3D6VXNgHl+CuufuYaCk3l2wi6OrKDqUbARtOomOliacLKHhOejPD0bq5L8iHpPvQOu0Ha3vCH2YLYV/7RFQnFd7UmhmTMnM4m/BxGgK2GWYwGv8zXkCGelgpCnbcemyIRaoYm2JeDsUp8l7lQve5PsHs2K3QmMX9K2DJ2WvVKcJ5sS1jAfu8RAq3p1crR3WywAL262PBTdBNIWyjmTASDRZnVU65VD9B7cltqfuIK+YoLmcluKi31CdaW++tWBidl7XYLT4myYYceiGnxlocY/jeHBZ6MslCsEgCDE4RevIbkQWUKQqE3rnVflA4tdQbWhgr3Ku32haMCZmEXjpqeKhu20NfbEEm+xoHQ+I0l+bM/bX2OwXgFFDTETpTYgvDVvURh4GEumuEVef3fANNgRDAWDlCDVqVEBSlx0ChOei/yKb3BFsrV7t5b/4QuWiZJH5JB9lfvvUg9K131iUVT8ELpiiUiDVwuLpkLzR3lTzt7ZqxctVA8tTmBqnnKqNW8kvemWJ9nV4yowtDUzKf/XUWrZLOZk7MBulNIcRR2BqolMlI8C37PbWkDNiXbp3zTjTJva8Kr62LpPbrKxP29B38sCTB3LFwwpg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN6PR03MB3871.namprd03.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(346002)(396003)(136003)(376002)(366004)(39860400002)(75432002)(8936002)(38100700002)(38350700002)(6486002)(4326008)(52116002)(5660300002)(86362001)(36756003)(956004)(2616005)(2906002)(66476007)(66556008)(54906003)(1076003)(83380400001)(186003)(316002)(6916009)(66946007)(6512007)(6506007)(8676002)(26005)(478600001)(6666004); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 5snUul9KTFlonAV0WRpPYrLtje2Ips94sgC3Ma6eXvjfaNURZUFhlzJGVdFRu4VIFp2LNKAh7CUf5BuOnowl2zJCqGQq2lsMosp3ywSmI8p3TI5jkuPqhz+74eP5J7WftrK/VEdh8UFxMPPdezr8gK27wplZHGtuEwa1wDFhmoEQYwA1EEjBiAG9G6SZ/Xz1EEgAP20r2Gwmqwo6xmm+LKMTCbT1Bcw3pEmM8TSoMPPrAPVehU/SWBdVL0l845LLndPoLB8TxFSifp3fZBF/su6FTmR6nSkkLdSpufDPbAvKp74FYRziM/YKp4/oGqJJwQCi5oMmz0d/UdzgO11cmYkfq4MthV8l+iEZi4WMHKOj+MEAjIJvpbplAhuM8RF6xXSBndI1PLg3gW2QfSMZWreAHIzLbK6g0GzANG1BUHugedotA3JMhbGGB2HOHZD6qqvONQYW6QQ1EhU3hajzXw2WOjR3A3a9tIECfU/H7KX5DiI56Ne88uItiJrQt/S0DFONuZS2rURdeIsfKJLkGphthWV5mQjmPvEczNv7faNoRQhTiNnrKdxrLWbrGVHqQdoFqeoSQxuch3rjgm/5SudlaUKYcfe3VdrHp0z27+xPxSzeTizziflyi3745FuRS56+Mn5rSy4j0oYsZNp7JBZBCw7PAOFSgAt4eoP9VRlWTVE2WvIYZrhKJa0zIhFluQjlA80zZbMbfHuq6ymFx8gTWcCSJz1JdWB5QFFikJMacRJOQaTpF6D+F3/GBrapMV+gHCryWE3AuMlDIm0+ZLachYM0ONsSCTkUJNn8kWTnBqZ3YWipdNAk1vwP8hcxp37MKD5wjRB8AkjPCBC7m3YEFEsREke3LRMCz4rxrRlXp7EIx5L32fDwmhNhwgEW0+AdOavY2sx/9/mpE4VLdq8X+LN/yRJ6XPyWq2P0kvL1t6UrbuNgxGbACjEOEgdpPSEKK3Y7v3GPaZ4OwMo6ZttjmNyHQ5i1UZfVcXdnGLRdgbxNrPLaXzSYwp+P5rwA/MNt2l3pSzPe4ehmKYfrFOAgrSPg+UuMH/stb1BR8ZtFlmHcHok/i1hTpU+fV16GHfT4X2rAZBqpMuhyHS9Q33f4PLAK3XrOdJWtti/Emp8hkwM48cVARewc6PEaFm6+2gzBnUR+IUjk1w/tlfts3TM85TlLZzG6cMdt+pGUqniLCaCG3nFzyJa0Kbpu9O7q0Kmp3ALj32MUnkn4eBGi8bBTRDKTlCW4I27/4tFN7esk339AiH9AxM5YvZRbXVwMUxtv/6e9gXYtrMLpAaVHPlINKzKFsk9Zo9m1vMjUWXj9+0guP+PqbSGS9HMt4z2V X-OriginatorOrg: bu.edu X-MS-Exchange-CrossTenant-Network-Message-Id: 6a7bd2c3-c933-4565-3e56-08d96d3eb336 X-MS-Exchange-CrossTenant-AuthSource: SN6PR03MB3871.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Sep 2021 11:50:31.3011 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: d57d32cc-c121-488f-b07b-dfe705680c71 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: AU6ic2vbqhcVnlZLgiZqvB8TVXIgMIz8QAdF3ojdiL/IQfS7LJ+PyU9QMWM0nG86 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR03MB4224 Received-SPF: pass client-ip=40.107.92.134; envelope-from=alxndr@bu.edu; helo=NAM10-BN7-obe.outbound.protection.outlook.com X-Spam_score_int: -8 X-Spam_score: -0.9 X-Spam_bar: / X-Spam_report: (-0.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HK_RANDOM_ENVFROM=0.238, HK_RANDOM_FROM=0.999, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action 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: bonzini@redhat.com, peter.maydell@linaro.org, Darren Kenny , Alexander Bulekov Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" The timeout mechanism won't work if SIGALRM is blocked. This changes unmasks SIGALRM when the timer is installed. This doesn't completely solve the problem, as the fuzzer could trigger some device activity that re-masks SIGALRM. However, there are currently no inputs on OSS-Fuzz that re-mask SIGALRM and timeout. If that turns out to be a real issue, we could try to hook sigmask-type calls, or use a separate timer thread. Based-on: <20210713150037.9297-1-alxndr@bu.edu> Signed-off-by: Alexander Bulekov Reviewed-by: Darren Kenny --- tests/qtest/fuzz/generic_fuzz.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/qtest/fuzz/generic_fuzz.c b/tests/qtest/fuzz/generic_fuzz.c index de427a3727..dd7e25851c 100644 --- a/tests/qtest/fuzz/generic_fuzz.c +++ b/tests/qtest/fuzz/generic_fuzz.c @@ -670,6 +670,7 @@ static void generic_fuzz(QTestState *s, const unsigned char *Data, size_t Size) if (fork() == 0) { struct sigaction sact; struct itimerval timer; + sigset_t set; /* * Sometimes the fuzzer will find inputs that take quite a long time to * process. Often times, these inputs do not result in new coverage. @@ -684,6 +685,10 @@ static void generic_fuzz(QTestState *s, const unsigned char *Data, size_t Size) sact.sa_handler = handle_timeout; sigaction(SIGALRM, &sact, NULL); + sigemptyset(&set); + sigaddset(&set, SIGALRM); + pthread_sigmask(SIG_UNBLOCK, &set, NULL); + memset(&timer, 0, sizeof(timer)); timer.it_value.tv_sec = timeout / USEC_IN_SEC; timer.it_value.tv_usec = timeout % USEC_IN_SEC; From patchwork Wed Sep 1 11:50:03 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Alexander Bulekov X-Patchwork-Id: 12469269 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=-17.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,HK_RANDOM_FROM, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham 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 3B176C4320A for ; Wed, 1 Sep 2021 11:56:14 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9F5FC60F6F for ; Wed, 1 Sep 2021 11:56:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 9F5FC60F6F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=bu.edu Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=nongnu.org Received: from localhost ([::1]:45682 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mLOqi-0006xf-Pi for qemu-devel@archiver.kernel.org; Wed, 01 Sep 2021 07:56:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55182) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mLOlJ-00071v-Cv for qemu-devel@nongnu.org; Wed, 01 Sep 2021 07:50:38 -0400 Received: from mail-dm6nam10on2092.outbound.protection.outlook.com ([40.107.93.92]:59136 helo=NAM10-DM6-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mLOlH-0002U7-EG for qemu-devel@nongnu.org; Wed, 01 Sep 2021 07:50:36 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LaOrR721klfR/sY9bmJrunVUuOpZhTU+VKAnIKiM9hGEjfv11W8G9NIAFcMcOLBQRjWgH9j6DN7ya0Sfqitfx9dEe4eP5tzbLMqWndSNbLCbSiLFbpc/upDNFPnwIK7iYpkR1iK9a3Gj3f5EzyPAhR9iCw9B08WtnIVidoUHU339gMaSI0FcTN/LdmfWsAL/2Zc+p4jPMQQkHf3XmcJMsyUsRJzutxy0DuZhA30p7aXmP5SGqthhZ+lITN8Bye4KtEgeH4e4bLsF+Is5bZ5p9ghOMs0cT2mVvIJA/aOvSUrZv4qWuvfpntS21gGCrRzpdRJmV4YglP6s2wpXt5zG4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=A8D8LxN617mqIUJYx3IJYatJk9LPcKg3RqTpSeu0hpc=; b=MYHpi2S/p9Q/eoAfrdGtVpDwBBKKsGoJmuloTpp2oY09UYSRnStYqnHXaC1dYzsI7tsuwIPbTUR/fcdnBq6Xuqha24DASeJN5JNoNSF+Oawtae+3e60XiX8mQoJfMfYz/ThhJIwysOKX4gxl8yr0A7HphrIBlHj6XY92oIt8hQhAeTxQ0DL6rAAY4h2KQwU6PpzabiEp5DohC5fXje86bBDordurNEfl9d2Xk7OyWUSOc/XvwQxG1V8r0wn80AFuDC83WI8E6PvlIN2laBIHOw8JYRKJDc9Hl+BuYBkNP346+rugqdfBV+J56UWit1nJkXJr0pHrNKr5N0EVgr2YBg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=bu.edu; dmarc=pass action=none header.from=bu.edu; dkim=pass header.d=bu.edu; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bu.edu; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=A8D8LxN617mqIUJYx3IJYatJk9LPcKg3RqTpSeu0hpc=; b=Fr0HbiuaP0PUZbIDHTZ5FTmGN2rXgaLOVlxWVnvHkpDGIHqeUUiTAmE+nK0HV43Ky8z+1ojFqzK6NqAdggTYpecbRSmZLFtTF3d4F4LqPF/sCRVmtsf4XtWRWhK1lFgcG/JV084sCyBiCn07MMhCBo3a0x1D9DUa1jx7/WNSl9KGYA9IioHDFCVOIQ5QcIu/HXPUcccYvoqpn0ESPA6BHHCXMSwsJXqNfq0JVPf3O5Ei/Omz3i79HL4NUebLVrbkGL6XA4O1s3F8Sxw5ega1WQYuJvHR3UVqgHWi59THEjo1AR2JqsEESAzsZ0nsKDFYc80Sk6+4QyBA3p6VLGesmg== Authentication-Results: nongnu.org; dkim=none (message not signed) header.d=none;nongnu.org; dmarc=none action=none header.from=bu.edu; Received: from SN6PR03MB3871.namprd03.prod.outlook.com (2603:10b6:805:6d::32) by SN2PR03MB2286.namprd03.prod.outlook.com (2603:10b6:804:b::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4478.19; Wed, 1 Sep 2021 11:50:31 +0000 Received: from SN6PR03MB3871.namprd03.prod.outlook.com ([fe80::f6:2ec0:d576:8139]) by SN6PR03MB3871.namprd03.prod.outlook.com ([fe80::f6:2ec0:d576:8139%7]) with mapi id 15.20.4457.024; Wed, 1 Sep 2021 11:50:32 +0000 From: Alexander Bulekov To: qemu-devel@nongnu.org Subject: [PULL v3 7/8] MAINTAINERS: Add myself as a reviewer for Device Fuzzing Date: Wed, 1 Sep 2021 07:50:03 -0400 Message-Id: <20210901115004.34768-8-alxndr@bu.edu> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210901115004.34768-1-alxndr@bu.edu> References: <20210901115004.34768-1-alxndr@bu.edu> X-ClientProxiedBy: BL1PR13CA0328.namprd13.prod.outlook.com (2603:10b6:208:2c1::33) To SN6PR03MB3871.namprd03.prod.outlook.com (2603:10b6:805:6d::32) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from stormtrooper.vrmnet (72.74.210.193) by BL1PR13CA0328.namprd13.prod.outlook.com (2603:10b6:208:2c1::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4478.8 via Frontend Transport; Wed, 1 Sep 2021 11:50:31 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 7e45751d-ed8a-4e46-6652-08d96d3eb3a7 X-MS-TrafficTypeDiagnostic: SN2PR03MB2286: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2887; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: JaPyXf61/9xypJmPKVX6B4Y5f8S74bCmwvo2KMqZmsB1Q4xLHdLTPuDxb4fELWfFqxJUCnt42giYVxZgz8kUBV9Jeavtfo8QazZbeAbNDgrVuWgYTBzcfKms74QKHaAzK3NUVVJWOVP+KRRsvc4IMMqK0jk3Re1FAjNE0jwq+/1Xeah6ktKJkM33mwhI38moCnaTtkzirxVJfL22QMuTclJy0wM0uuciSTL21AZmudQrWmR3zqY7LToa1rYw4LUQqwdi/OaHR7s6e4HjNj5/mOk1mCqzNCTMePSMlhNs+pxZDL+9V8GjKo5HG2TVhn1NGjJHv6AOkN20ki7WCRayCfb2zj89U0/08aYdXMGmGtgWOeBHAr+IobaOJuhGd/o9QuAznDjGld8jzBYcEXg0RQ3hb1gy0WszVZk0i2BYMQt22kh+72VqdGbNJhb7mvdnZ6uQzt3Ff8f47wSCiz5+0QWrpmb/ggxu3p82zAbGj+F9Ysq09RVKe/wkfiHB90Hb7+Iv3bf21zR3H8+0uDKDuGTRQvzar4jgzVnLozoQkgmt/SV9SqYBqPYg+9A+xi506OEXVhEChwR4+RnInneytCbdssl9Gv5lgMkoLbPD/jnZ7eILFnoKlzodpuuPEIuO49xi2xyP5wn5yYYFlFH4dmnLO6jP87y82mCFn8yTlLni708Q9VU8aMZB01Zd3lO1VGdHN4g/aQ9YJXPX++CZRw== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN6PR03MB3871.namprd03.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(376002)(366004)(346002)(39860400002)(396003)(136003)(6486002)(5660300002)(66476007)(66556008)(6916009)(66946007)(6512007)(8676002)(8936002)(4744005)(36756003)(478600001)(2906002)(4326008)(86362001)(75432002)(54906003)(1076003)(2616005)(956004)(6666004)(316002)(38100700002)(38350700002)(6506007)(52116002)(186003)(26005); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?s8GHsmLvPXp+pSL1bskZOWBe0npZ?= =?utf-8?q?EXxYhnMMjeRimSvZqkJ9ZI7alGGMBHqehd/CHUZn6fq3qhcvj2ONOAk8WuBLd57OU?= =?utf-8?q?/OWB/ng59ytgWtk6uvWJARxwF4A/egPDpCLxnI0exZcmOl7MANIfstYaXvwKN+uL1?= =?utf-8?q?hiEXhnTt9cb3OlFV09R4D8eXU+AhudbUPpXQ6oeNCxdl+UEgAvQ0fQ48Ds6f7KDDc?= =?utf-8?q?Vr8q54JlzEPGCBsOg+kLkX7jLNQxcYb+nrON8z8krTjHX5KuOCaSE6R21NmFtHsAo?= =?utf-8?q?XeZZYvFIBdCPhpOCPBp0whblN4ggvcQ3KQr3PTT63cshB7sXPoWqIT9Ej+e/ybdmM?= =?utf-8?q?pP8253EkUp/Tmo6AS3DwdnJpOmMw0Pq8OMydBB22bhtVl6dpQlrUZKyIl9PrBwQT1?= =?utf-8?q?Vbeocz9J+BWX9JsJwQBKyFplQbmtNoWpyKQ9O6sgS4WNNvDPMHqy41WO7pALOjSmj?= =?utf-8?q?gyHHM/ozXHm2Sg+4o/YKOIoMEZEn2sA1Y8kxFOPCx2HBg7Uajv3oa/BuUjDXmMPAE?= =?utf-8?q?kWKaDqqNFPJDkHGVoH9gPJWhvSQQfvdmmHbQMWN9De0vD8eGDLw4TRBdlLRIL81tF?= =?utf-8?q?FFwBL8fXQ/9c9BdTq0+pJ9LfDgAF60Py+SXes6vVS0tja5+NhDehfpU8GmPFCqku7?= =?utf-8?q?6RvZFO0oJ1yK+8+0OjaN2tBCgMFh6sdyYGyByd5HJvzo42WqGNXXegfJpBkyQfRiy?= =?utf-8?q?0w0kMz6cAvMHzn49QkcTijLUsFjdObtWuB1yxEijo5zaeQKVEkApOlhBcqOrP0zoW?= =?utf-8?q?vuMfRoZdv/jXpoRtgipbH+gvrgvmSf/l/wwuA+JVYrBfCSJlXQSu7inKl5fXB9tPe?= =?utf-8?q?ldtw9zLJeeb/SMwThUTX1T2keUIp6LuH3apHRhKJMC7vqcITdPzQkTrEze8StkFvV?= =?utf-8?q?aDgNwws4On6+06Jklpr3T8vE7JfUMPn9ZzImZ2k4lMOYqnB2rGTjHCP0jfbaMhR/4?= =?utf-8?q?zYkFB4EojAdA29/9ADGvLNmS2UV7zZ4P25ZzPNITcHa7bCQqxk1bpmB0h9tneWJ7R?= =?utf-8?q?LsPJ9pznpyXESWT2wUnHJfgWZknVxrYscFKMOxcNI0gjlVCjjlLEdZiGHB26oiVr2?= =?utf-8?q?Ollpk5Ct+5vaF1r2kDebikwCKQLCx6ACcksbLtLcvQQX3Bn9x5/vMf6FfgNlauplE?= =?utf-8?q?YxDWSQ1MzNf5TdAKKsNhp6W/wbWVqLv9mDqnZS3J8CuO1n+buIHcOII+tDMbUqOg9?= =?utf-8?q?ac3svwLi728tlBQY59obs6DW1c1+fHOwc4YXas/BoNytGQGM8ObXEe9dIHsE49RZM?= =?utf-8?q?39qmi/r/wgTO9ITX?= X-OriginatorOrg: bu.edu X-MS-Exchange-CrossTenant-Network-Message-Id: 7e45751d-ed8a-4e46-6652-08d96d3eb3a7 X-MS-Exchange-CrossTenant-AuthSource: SN6PR03MB3871.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Sep 2021 11:50:32.0777 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: d57d32cc-c121-488f-b07b-dfe705680c71 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: o48/YIbmoiOAI6OwOrzwsVuOzjeSsyWDu5lzgalia3l7f1fH3lQaGZIRAvyiaKtt X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN2PR03MB2286 Received-SPF: pass client-ip=40.107.93.92; envelope-from=alxndr@bu.edu; helo=NAM10-DM6-obe.outbound.protection.outlook.com X-Spam_score_int: -8 X-Spam_score: -0.9 X-Spam_bar: / X-Spam_report: (-0.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HK_RANDOM_ENVFROM=0.238, HK_RANDOM_FROM=0.999, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action 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: bonzini@redhat.com, peter.maydell@linaro.org, =?utf-8?q?Philippe_Mathieu?= =?utf-8?q?-Daud=C3=A9?= , Alexander Bulekov , Darren Kenny Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" From: Darren Kenny Should have done this much sooner given the amount of reviewing I'm already doing in this area. Signed-off-by: Darren Kenny Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Alexander Bulekov --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index dffcb651f4..8b725091d4 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2711,6 +2711,7 @@ R: Paolo Bonzini R: Bandan Das R: Stefan Hajnoczi R: Thomas Huth +R: Darren Kenny S: Maintained F: tests/qtest/fuzz/ F: tests/qtest/fuzz-*test.c From patchwork Wed Sep 1 11:50:04 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Alexander Bulekov X-Patchwork-Id: 12469291 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=-17.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,HK_RANDOM_FROM, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham 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 6D651C4320A for ; Wed, 1 Sep 2021 11:58:18 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 143DD60F6C for ; Wed, 1 Sep 2021 11:58:18 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 143DD60F6C Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=bu.edu Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=nongnu.org Received: from localhost ([::1]:52480 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mLOsj-000333-8f for qemu-devel@archiver.kernel.org; Wed, 01 Sep 2021 07:58:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55202) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mLOlK-00072o-Vq for qemu-devel@nongnu.org; Wed, 01 Sep 2021 07:50:39 -0400 Received: from mail-dm6nam10on2092.outbound.protection.outlook.com ([40.107.93.92]:59136 helo=NAM10-DM6-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mLOlJ-0002U7-9i for qemu-devel@nongnu.org; Wed, 01 Sep 2021 07:50:38 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EYm8rQN1p83VNSjj76gMtGPLWr4YQ+nyvYL+4WdYcH1Foz6oKrDb+GfljZzRm3u5ct6XC1JUmSW4/BkUUN1cnjjFjYq4/XX0vi9pZwiqjc0d8afV4fl6r3jGzGpJEQSzzZdRN3s8d5jc8gqnNZGPdhvY0w4il/DUOdOK0VsDHHNXk6O/cqlvEEMj8mrGfDmRm/Asr+86K8/gj7g6OFTufqW7Yr7O/hgDJnG6amKoPEZLX2If/sF7BsIJNHCBS2fIR/xZhySspAGGDTgMANMZr9yVeg62Xu71KpTy5EurXH0oYfFoCcFh8Lz2URHbSL0B5A/XCVJL/Z/47xZPL/53bQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=RS5VNGxeUN9kFBnmZPTDmWeQfEk9w3XcHErJGQjs6+Y=; b=cCdfhpCcQX4LoeGLZSEfB2EY/JrF16BUzMwJHMNhPgu6K/QUYTYgyz7EBpZA5UlqWfenN2hA60tJWFPBPf+mhLwsmGadrgKRa95+wSFLoWb0blP2lGZCjmbe3pR1/RdEvP5uqy5N/LuqNg0koEpinI5un5eIGTMzzwfhLbflr0/IOZZeKi0EVkVlLDsoeYuJjB0mq73Osv7vUzrhP2URMK187OwINO8IGMf5h1MUF8g9L9WQtAzWJnRwKqO+/10A0NFssES1DYJBW/QpK8kJJstIiVdSJtPbCaIJ+GQV3DoMRjuQTl20v/R6CpMNANFVd0vn5D7WOjyP5hwf1/V8YQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=bu.edu; dmarc=pass action=none header.from=bu.edu; dkim=pass header.d=bu.edu; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bu.edu; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=RS5VNGxeUN9kFBnmZPTDmWeQfEk9w3XcHErJGQjs6+Y=; b=pPJiGza4Q5DtY8KBpj2DpnruqutRkIv/NAH5Fl0a5RZWczFN0yk7FN5GsAiZQp1oP5xSt1HHPAcYfBPKLosPguNqSIgPFZ0dq1EIzc8vDur+2NVlHccFFUiKKRxgLTCwUP7jkJAZxKtLjJzg+ngmMoRx/bPzkSnOnqygZ46JA6Pm8g992uvg0/z56yvRRW9qiyLahYjhy6sBUclBTVOkhnjEsulHBpMGXQU/EDrJKTqsaOx7C8mtgxrteBnI2tigG1OqpxL3Yx7X9SNZczRuMR8So2fkQwumLu4sRLXoR+PCkNu4cOvWcwAJO0evPZjJYvpS4ejdulkQgYbynNC7/g== Authentication-Results: nongnu.org; dkim=none (message not signed) header.d=none;nongnu.org; dmarc=none action=none header.from=bu.edu; Received: from SN6PR03MB3871.namprd03.prod.outlook.com (2603:10b6:805:6d::32) by SN2PR03MB2286.namprd03.prod.outlook.com (2603:10b6:804:b::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4478.19; Wed, 1 Sep 2021 11:50:33 +0000 Received: from SN6PR03MB3871.namprd03.prod.outlook.com ([fe80::f6:2ec0:d576:8139]) by SN6PR03MB3871.namprd03.prod.outlook.com ([fe80::f6:2ec0:d576:8139%7]) with mapi id 15.20.4457.024; Wed, 1 Sep 2021 11:50:33 +0000 From: Alexander Bulekov To: qemu-devel@nongnu.org Subject: [PULL v3 8/8] MAINTAINERS: add fuzzing reviewer Date: Wed, 1 Sep 2021 07:50:04 -0400 Message-Id: <20210901115004.34768-9-alxndr@bu.edu> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210901115004.34768-1-alxndr@bu.edu> References: <20210901115004.34768-1-alxndr@bu.edu> X-ClientProxiedBy: BL1PR13CA0328.namprd13.prod.outlook.com (2603:10b6:208:2c1::33) To SN6PR03MB3871.namprd03.prod.outlook.com (2603:10b6:805:6d::32) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from stormtrooper.vrmnet (72.74.210.193) by BL1PR13CA0328.namprd13.prod.outlook.com (2603:10b6:208:2c1::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4478.8 via Frontend Transport; Wed, 1 Sep 2021 11:50:32 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a779370b-2a02-40ec-99ef-08d96d3eb42d X-MS-TrafficTypeDiagnostic: SN2PR03MB2286: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:254; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: sktnHTqpMoeCCbeLTi2etnstsrR61q4BLnu9/GQrXXa6m1Ri/hKgm3ANvGmGmaMH5EfagtWVbj5dIpCrgkRkLPJFzKEf1yxD3e1Z3f0FdEIDRr5Z9C3ASm2m3J43kJtWBSNfVQHyO6zzmfQI6Jj+BGIuznj1EJxQiUhUmd1d/k1ZYFeiAoCoFZxW+KnwYv4zpuHB1/2PIjo69dFIhlCiVKl5WsZjdJVJagug2v9rZu4hHP6/kBTECuRIPcP1skBTU567Hgm0LNzzLNfHwQ0GxXiqTFaOA9t72NAjYaWCV8pMuiMPkl4l4YWixPyTJ5NoJnBrJcgklGXKx662Wso03wGXjJPW7bgqYY4Q88hYespuBOw334gFCWJJ07fLNBhkHwq+XWVYgG1p+fEw7BQzUlez+lWAaX54KvbpCkAf23HPKKcdwDK0jGIkduyDeP8GCDstClZ/vW5omdI8kjxxar0tIDRYM8X54/u7Y5J+FfDpxsR1Vpo95JphC8VwmCBbvcyrzsBZdcIanBfYOQoPXXMKO3EW/ycKTbdfnBMIRcpavub/bBPBKWdssy21GJis/SBeMpliGQlewqtuaB0s3wSEeFSiHwIjHDeU7HeRRzymc/xZtMfXGqIJie1crAdAOElUP1TVxoUPT73pH26tuag+RsSDK8LX6g628pRlJzy6KyYGeNqeQlftIlV5n9UkrsGTRehqbaVm4wdgUWG2p7aXeOqduNzXbK9Qmn4rVzFensDnWNIC2/GYUJ8EaRfv91GjMqMQz00RwGPWjHJHHv3nhuE/q+OzT/B2WY3AY88= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN6PR03MB3871.namprd03.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(376002)(366004)(346002)(39860400002)(396003)(136003)(6486002)(5660300002)(66476007)(66556008)(6916009)(66946007)(6512007)(8676002)(8936002)(4744005)(36756003)(478600001)(45080400002)(2906002)(4326008)(86362001)(966005)(75432002)(54906003)(1076003)(2616005)(956004)(6666004)(316002)(38100700002)(38350700002)(6506007)(52116002)(186003)(26005); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?MHWpsfCrN1WFvtoVLsZ7RepFSj5k?= =?utf-8?q?TnOEN/bqG2JoW7F4Cz0VaQFBJYnGRPIYfEsN28Vi1j9FeR7/naHmPycQv0sYQUR0E?= =?utf-8?q?Ha4ry5oMvteaw5psTaIaa06v9V9byX+0DvaIghrcyEIN4t5SUhvoVslKT9TztFzRx?= =?utf-8?q?FZ4Nie1H/7DDUHQmQLjppP3pW6xXRh48OtVJpb+Dkg9FQXEd/mvyuxhLDxnFzbK7d?= =?utf-8?q?z893qBOyLzo23kTpHN8fG6aAtGUL2YRbWMhe+gxzH5Rwg6iWF5z6nMujfluFBILGq?= =?utf-8?q?s+kJ0qfYLKqv7m6f/eVqxmts2nMGSaORaO2jIDydVF/E213K9AFb/XuoFfJnJ/XAz?= =?utf-8?q?AByvkr4MuF1wHmAZ/cV18UjnfiPw4QyjXL522cvoo30CWnuEIZA/2DnyBpC9pg/KE?= =?utf-8?q?rHZRi9eMj6g+mZHm1a8FHLTA0WF8WsdoXL8yQD0ZNHCb7nwIi9PbxPpNJF5EY3Fyw?= =?utf-8?q?1TfAjv+OYpQltHjUhYrSS/OQnoDTEq7ULlPn4tpuMjo2RU1TgesGXa9HdVAwVN0qZ?= =?utf-8?q?7944Ru2SewrIOIiQkXKDb/1rLKbJYhEB/XGGCDywZizEHcudOz3H40c64x+YmZ/MY?= =?utf-8?q?tmAWkqe+ndce66x43EKhMFiDV+UHKHkjEUrlPTqyMjjdo52F0B9dGv5V4oIjGalh/?= =?utf-8?q?kJTC7l6SzJu9CCvPbunPDXfuA3Qp7blw9+TSa2Ck206Xgz8pzVBr3ENXUBZZ8dq8x?= =?utf-8?q?x16Pl52cEo61qjgbS8weeZpY02XILI86ENlyfcPymISnNon/fDMLWnwTUy4GGTHDD?= =?utf-8?q?3srVapLZbJm6lfLDf18aa1p9BZaO6T9oyhHVaRV6x4gu6m2gI/ISuGuPYWmUVeoeI?= =?utf-8?q?KaevKqdb4pD6SHaGbgD1LQslFp4VnpJxiA/bVmfLRbfXcBYgER4FurxCB59c779Z+?= =?utf-8?q?Er0gy/o4uWzzJxN7HdTS4qIxPplO71nJCU1xnUrYeXVoX5LSPb0RFLWBEANTG6uY7?= =?utf-8?q?yV4qIyVEFLtX9L1e+j9EssZ1BKhKhShbG6onS9VCN9t+Kd41Rx3YXmkZqSUsP9ne0?= =?utf-8?q?0lFXg5bwVwiMV/Ypq+zZqHr/3Oj6+Uf/AP4/6jx0Bz+TAogzXEQoE7Qiqt3YzIJTM?= =?utf-8?q?7qEr7wOOXT1Up662YJrCvN03msbV/tiZbfk/PwLfvoHlEVDFhbiQUCXf8FKJ7A1bE?= =?utf-8?q?H7nFOsI/dG0Gg1A59Kx9i2otazrDafkuHEwfy6yn5Q0G+GhOc6hwrKsNl38Yv8lbm?= =?utf-8?q?lt+Oj/+yKnVDn+c1LJb/GDN8NfcR8URk3fGF62kclz71X3Ei8c2xgWNA80VIwF2jr?= =?utf-8?q?8u+fDWLclDS2OIdQ?= X-OriginatorOrg: bu.edu X-MS-Exchange-CrossTenant-Network-Message-Id: a779370b-2a02-40ec-99ef-08d96d3eb42d X-MS-Exchange-CrossTenant-AuthSource: SN6PR03MB3871.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Sep 2021 11:50:33.1301 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: d57d32cc-c121-488f-b07b-dfe705680c71 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: y8AYqCeWusF0QyytPV0kTqMTkR6jCp2OhIxHwwfw4I9tWWh0CcjN7DTw+3Nz9+NJ X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN2PR03MB2286 Received-SPF: pass client-ip=40.107.93.92; envelope-from=alxndr@bu.edu; helo=NAM10-DM6-obe.outbound.protection.outlook.com X-Spam_score_int: -8 X-Spam_score: -0.9 X-Spam_bar: / X-Spam_report: (-0.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HK_RANDOM_ENVFROM=0.238, HK_RANDOM_FROM=0.999, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action 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: peter.maydell@linaro.org, Alexander Bulekov , bonzini@redhat.com, Qiuhao Li , Darren Kenny , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?q?=C3=A9?= Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" From: Qiuhao Li To keep me cc-ed when something changes. Suggested by Alexander. https://lists.gnu.org/archive/html/qemu-devel/2021-08/msg03631.html Signed-off-by: Qiuhao Li Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Alexander Bulekov Reviewed-by: Darren Kenny --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 8b725091d4..590e1bc492 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2712,6 +2712,7 @@ R: Bandan Das R: Stefan Hajnoczi R: Thomas Huth R: Darren Kenny +R: Qiuhao Li S: Maintained F: tests/qtest/fuzz/ F: tests/qtest/fuzz-*test.c