Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp4037190imm; Mon, 25 Jun 2018 08:41:57 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJUVRwljbF6wDCRAusWPUwUkDSYqO9KD0W6NAxaEzfgzyTv4TkAGONxAe6M4a/zPYffDSp0 X-Received: by 2002:a17:902:6193:: with SMTP id u19-v6mr6346782plj.133.1529941317340; Mon, 25 Jun 2018 08:41:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529941317; cv=none; d=google.com; s=arc-20160816; b=Qtojil9fnaBWoraQU3m0GcRdwXh7zYUVnSQZy8Y2DU4qziSDUITLDQYiX7bSCL7Z6M djt8B36rgruw1xvHM9oQnIlWTgKpncRFl2ZZ/E+Nc1jOiweEY+TPCAq9Ao/ynwpHCcYH nJxEv0im/VeVtU/2LSB2JJfvzh6ituWmJcnRKd8iwVB5u0sg8c0JR5+Dc0baT0h0i+UJ QRkHqFdxU6YF34o4CP45jYVhccFoPef4diNsHQjsCVGB6uFosR+zrLzBlGw7E3I97fS7 bueFRmNMOYLGKV7hf7Gylg2oo0xoQSOdqgL3qWWM7vnsNkjtNdsGI6WBBO0H6l2++fpb rDMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature:arc-authentication-results; bh=UcLlChpCErom8NlLWrnq9IGYb10Ty8xv9wkraDUX+BA=; b=I1Pp9/+bvy1lcCFzQ8BwyThWy5a/Nex/8zp0taedXbmWx53aJUFVG8nIw2QetQ+STf 3CoOyq1p3QLpLfZ8LCDLuQMKU5ShFP88OQRlsMsAOcTj+9311lfKqT39wak6VmXQp7ff vuRacQHw9ckD1nj6H98REWrtbBOS5A6oSlCZCVLGt7kOf6TH4uRdvDpijfLyxZZ1+S3r D3S4Y6ZFnzc02bZCt4P6psP8FuA3B7ebnB9IV0RAqpWDzk9IY9WlA+qqYii1cSh4jV73 hvuVNhrmWox97KYV9HYkPe9AUZy046AjR2nClb0VKMnaNJRM0ItIFpk3+TA2AjY9v9e0 fCjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=elLp9Z2p; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k184-v6si1686954pge.209.2018.06.25.08.41.42; Mon, 25 Jun 2018 08:41:57 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=elLp9Z2p; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752263AbeFYPkx (ORCPT + 99 others); Mon, 25 Jun 2018 11:40:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:41444 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751965AbeFYPkw (ORCPT ); Mon, 25 Jun 2018 11:40:52 -0400 Received: from mail-wm0-f45.google.com (mail-wm0-f45.google.com [74.125.82.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 46D0A25D13 for ; Mon, 25 Jun 2018 15:40:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1529941251; bh=FMs8kLQkXW7qK74p1r0XR2juYvDJ+pFMaTUj4zPd2tY=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=elLp9Z2pKxcsbuir7acWfAJH9UNpAvoQxaXuI+1t62LZ99kxyk0j58u2mB1moqxLU dtGEAK58q79tgYNPhJ0/WWkw+glNGkBPEWBVs19ouCsdnoti2Pe91Yx40PtHMC4kKb nrzOgkI3ZKuhO0pqByvX7UNMcxYW8szQd6UX03HA= Received: by mail-wm0-f45.google.com with SMTP id w137-v6so4491025wmw.1 for ; Mon, 25 Jun 2018 08:40:51 -0700 (PDT) X-Gm-Message-State: APt69E07jgf1O4kHM+JQkd4f9RBCCTbNSg9ovN+Rpwyjdet1mfr2yjZw EgejBJ4Cfl82iwg4zGghQlnDpHNOEWD2vEaTqSJr2g== X-Received: by 2002:a1c:6c14:: with SMTP id h20-v6mr1355175wmc.144.1529941249709; Mon, 25 Jun 2018 08:40:49 -0700 (PDT) MIME-Version: 1.0 References: <0d78b5b4-710e-1b41-46e1-74003ca1381e@intel.com> In-Reply-To: <0d78b5b4-710e-1b41-46e1-74003ca1381e@intel.com> From: Andy Lutomirski Date: Mon, 25 Jun 2018 08:40:37 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: test_syscall_vdso_32 [FAIL] To: zhijianx.li@intel.com Cc: Andrew Lutomirski , Denys Vlasenko , LKML , "open list:KERNEL SELFTEST FRAMEWORK" , "Li, Philip" , kernel test robot Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 25, 2018 at 1:41 AM Li Zhijian wrote: > > Hi > > Intel 0Day noticed that test_syscall_vdso_32 failed since 8bb2610bc4967f1= 9672444a7b0407367f1540028(x86/entry/64/compat: Preserve r8-r11 in int $0x80= ) > > 2018-06-25 14:23:00 make run_tests -C x86 > make: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-8bb261= 0bc4967f19672444a7b0407367f1540028/tools/testing/selftests/x86' > gcc -m32 -o /usr/src/linux-selftests-x86_64-rhel-7.2-8bb2610bc4967f196724= 44a7b0407367f1540028/tools/testing/selftests/x86/test_syscall_vdso_32 -O2 -= g -std=3Dgnu99 -pthread -Wall -no-pie -DCAN_BUILD_32 -DCAN_BUILD_64 test_sy= scall_vdso.c thunks_32.S -lrt -ldl -lm > TAP version 13 > selftests: test_syscall_vdso_32 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > [RUN] Executing 6-argument 32-bit syscall via VDSO > [WARN] Flags before=3D0000000000200ed7 id 0 00 o d i s z 0 a 0 p 1 c > [WARN] Flags after=3D0000000000200606 id 0 00 d i 0 0 p 1 > [WARN] Flags change=3D00000000000008d1 0 00 o s z 0 a 0 0 c > [OK] Arguments are preserved across syscall > [NOTE] R11 has changed:0000000000200606 - assuming clobbered by SYSRET i= nsn > [OK] R8..R15 did not leak kernel data > [RUN] Executing 6-argument 32-bit syscall via INT 80 > [OK] Arguments are preserved across syscall > [FAIL] R8 has changed:0000000000000000 > [FAIL] R9 has changed:0000000000000000 > [FAIL] R10 has changed:0000000000000000 > [FAIL] R11 has changed:0000000000000000 > [RUN] Executing 6-argument 32-bit syscall via VDSO > [WARN] Flags before=3D0000000000200ed7 id 0 00 o d i s z 0 a 0 p 1 c > [WARN] Flags after=3D0000000000200606 id 0 00 d i 0 0 p 1 > [WARN] Flags change=3D00000000000008d1 0 00 o s z 0 a 0 0 c > [OK] Arguments are preserved across syscall > [NOTE] R11 has changed:0000000000200606 - assuming clobbered by SYSRET i= nsn > [OK] R8..R15 did not leak kernel data > [RUN] Executing 6-argument 32-bit syscall via INT 80 > [OK] Arguments are preserved across syscall > [FAIL] R8 has changed:0000000000000000 > [FAIL] R9 has changed:0000000000000000 > [FAIL] R10 has changed:0000000000000000 > [FAIL] R11 has changed:0000000000000000 > [RUN] Running tests under ptrace > not ok 1..1 selftests: test_syscall_vdso_32 [FAIL] > make: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-8bb2610= bc4967f19672444a7b0407367f1540028/tools/testing/selftests/x86' > > This commit changed the testcase expected behavior, but looks it doesn't = work as expected. > so want to consult whether 0Day missed something(special configurations) = to this case ? > > if more details are needed, please let me know. Can you double-check that you're running the tests on an updated kernel? The error you're getting makes it look like you've applied the patch to selftests but not to the kernel.