From patchwork Tue Feb 28 01:31:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hans-Peter Nilsson X-Patchwork-Id: 62227 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp2747056wrd; Mon, 27 Feb 2023 17:32:24 -0800 (PST) X-Google-Smtp-Source: AK7set/Yf/F9wrl3QbaKPIXc3aAvy3wrGi/QAQFefqwtajWU9kter6fWlJp+miO9ZlwIR6dV8tqd X-Received: by 2002:a17:906:688a:b0:8b1:7e1f:91c5 with SMTP id n10-20020a170906688a00b008b17e1f91c5mr605030ejr.35.1677547944401; Mon, 27 Feb 2023 17:32:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677547944; cv=none; d=google.com; s=arc-20160816; b=OJfnv7PPhtlpPZ45dPYU/kStkunEXcD71Dn0IU5lV6+MmWvu8FExyOo32B7v85YKUQ z5QUqImtWXouVWgJmCrd2iju8VffXWjuOtLzGgRM5Rs+rEft6/swYkMrnI3K60RpptSN qEiofYPpI4k3VXSSBVzAg+NhZyvwFZhCMiTNBrm02jXI5AP78xokbQ49aXiAcREpeX7z 2oWh6LYDJ/icFHff7LTbQmJUaQM9NNquafbUQor8GOAiED2RIKdaCsdyUfDHHRglFMlZ EVTv5UP6kI9WdXVxPYsNbg16tKi5mTfF01oiV0bT0NHDCzQ+2dgs79fhJNXsm2ugPJLQ eCKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence:date:message-id :content-transfer-encoding:mime-version:subject:to:dmarc-filter :delivered-to:dkim-signature:dkim-filter; bh=QS+wSq5x5cyPUg2tdAZKcCTjLu0IBXLJ1Qey6ybUs/o=; b=ohcyGq5dMnlSBixT918F0Ctep6OeskCW7u/w8I3zjCig3QMqwIoUbbBbkf0i+Awx3Q 2IszrPe6/VyQW4eVmIpms3zX/QI6BVkHd07AFe6Nm0AmHBHxBt5sLxsq6RVZYMlPrvSs MGG6Elh5FpKB4SlgpvM6NGWjSgnev6chnmiGgHpW0oi/aNalEO919htFxu6JlUjO9deF PlDVqW5SX/H4omxA2QCETpxQk5ZxIeWZbuWPDJsKdsKApvspCj0afyJG3meDxIrjGKcn pEF0LEZhs3ck/ezmNafD8WahefxAvkULPhOnaom0rpv+fTmWfeyNz/z9cHOEYBAHRCkg rzqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=v16gLbZM; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id h21-20020a170906585500b008db44ebf302si1358729ejs.133.2023.02.27.17.32.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Feb 2023 17:32:24 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=v16gLbZM; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 38F3A3858426 for ; Tue, 28 Feb 2023 01:32:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 38F3A3858426 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1677547943; bh=QS+wSq5x5cyPUg2tdAZKcCTjLu0IBXLJ1Qey6ybUs/o=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=v16gLbZMNfZmGbeXhagf2Y0hHtNHyWPw8v0oFH4c0Xv5BOTMdt+lH0MlGH27USE20 2gmiN/HZybE9DcNoi51E5mGxw9sjOPGqEKAvQpmb9FctHpcCOh1VL52+t8AM6z8AZc mKKhhYQxSvni/R1cSyzhSQRduxMwezZ6P35idbkU= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtp2.axis.com (smtp2.axis.com [195.60.68.18]) by sourceware.org (Postfix) with ESMTPS id 9A1283858D32 for ; Tue, 28 Feb 2023 01:31:38 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9A1283858D32 To: Subject: [COMMITTED] testsuite: No xfail infoleak-vfio_iommu_type1.c bogus for default_packed MIME-Version: 1.0 Message-ID: <20230228013137.4A8D02042E@pchp3.se.axis.com> Date: Tue, 28 Feb 2023 02:31:37 +0100 X-Spam-Status: No, score=-11.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Hans-Peter Nilsson via Gcc-patches From: Hans-Peter Nilsson Reply-To: Hans-Peter Nilsson Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759036513124339485?= X-GMAIL-MSGID: =?utf-8?q?1759036513124339485?= Committed as obvious after sanity-checking cris-elf and native x86_64-linux. -- >8 -- There are no messages about padding for targets that don't pad, i.e. default_packed. Noticed for cris-elf, verified for pru-elf at gcc-testresults@. testsuite: * gcc.dg/plugin/infoleak-vfio_iommu_type1.c: Don't xfail bogus message for "default_packed" targets. --- gcc/testsuite/gcc.dg/plugin/infoleak-vfio_iommu_type1.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gcc/testsuite/gcc.dg/plugin/infoleak-vfio_iommu_type1.c b/gcc/testsuite/gcc.dg/plugin/infoleak-vfio_iommu_type1.c index 51ad5db2bab2..af320b6b17ee 100644 --- a/gcc/testsuite/gcc.dg/plugin/infoleak-vfio_iommu_type1.c +++ b/gcc/testsuite/gcc.dg/plugin/infoleak-vfio_iommu_type1.c @@ -37,8 +37,8 @@ int vfio_iommu_type1_get_info(unsigned long arg) info.cap_offset = 0; } - /* The padding bytes (20-23) are uninitialized, but can't be written - back, since minsz is either 16 or 20. */ - return copy_to_user((void *)arg, &info, minsz) ? -14 : 0; /* { dg-bogus "exposure" "" { xfail *-*-* } } */ + /* The padding bytes (20-23, but applicable just for targets with padding) are + uninitialized, but can't be written back, since minsz is either 16 or 20. */ + return copy_to_user((void *)arg, &info, minsz) ? -14 : 0; /* { dg-bogus "exposure" "" { xfail { ! default_packed } } } */ // TODO: false +ve due to not handling minsz being either 16 or 20 }