Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp1982464pxa; Sat, 29 Aug 2020 09:52:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyZYA6Uoh/Y38JFOHfvhNd6qGJaOp6i4QTxQZp69vzoiMjp3ADiTJ1ogU1NHAUfVkrMwmfg X-Received: by 2002:a17:906:e0c2:: with SMTP id gl2mr4243516ejb.160.1598719961353; Sat, 29 Aug 2020 09:52:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598719961; cv=none; d=google.com; s=arc-20160816; b=AxJ0JcduBUwSDmI9sbI1JSL+QMYoapeV9u/k0OjmWln3y3rKQL3UTXK62FCG4vqJmY uArnz05iUCdvQekbcih7FBOaVKTfHNv8zMUR9aq8CT2tJ7NPePm9Ne3rKbqLx3Go0VxU 4W1VfDb34uNXqvuBkrS49k1fRgFHfqXyEsYSz0oasmHKQngKGDtLWQ31TdfXo8J8gkP9 0+nbATOW/5e2fIrzq7a7/QiEP+yP+huD0tdRHunGCzSySY81+RlH/u/y18kPR+ZH4rdt vFsRz6bk5lY3rPbUzJQURZi2RmJX1DXfGh4jAv3PEwVlwHlgvJx/l2VMUAxOffyFCZUh aQxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:subject:message-id:date:from :mime-version:dkim-signature; bh=ZyV3rhOZmPTc8ftULajDiq9Ysct7aCvz3J2aOGnG4GY=; b=yqQPxObpCsF2Jl7jxLeShuAgdmvm2oAzza47MLuWK9ZOiUt3WeBs5U+ews00GrH14K 5zYcnV3YMKPJO7ez1u+uIeL6faohbVuYROPqRZjSi9y4KnZuLfCXYlOKSjd8C8PMZMFR cRUWLOzG26ClW6lvaWMVnBGnqfBAk0FbpZvlhrzEE+aJjnBWz8LA2W3Ga+jbQW4Y6x6v bWE6zNkHyKByWzrtQ+0drB7ZQPCSL2k0j2zxsFjzQuBSlR1VMBFhgj1CaY6boV9lsABb Y/5yWF382zhQL4ZsZRtMw/dLOfA/IwjnWxv0L5iWR65r2l2n0H5G4YU531qLnmwMRzyu 6ayA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=gjj2VOKg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id e5si2169496ejq.390.2020.08.29.09.52.18; Sat, 29 Aug 2020 09:52:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=gjj2VOKg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1728480AbgH2Qsz (ORCPT + 99 others); Sat, 29 Aug 2020 12:48:55 -0400 Received: from mail.kernel.org ([198.145.29.99]:47662 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728374AbgH2Qsu (ORCPT ); Sat, 29 Aug 2020 12:48:50 -0400 Received: from mail-wm1-f49.google.com (mail-wm1-f49.google.com [209.85.128.49]) (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 327CA2098B for ; Sat, 29 Aug 2020 16:48:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1598719730; bh=nX+JQR9DpT/+z2PqkacX5gzHhZ3MRE2mzN0FA/mMxYM=; h=From:Date:Subject:To:From; b=gjj2VOKgmlou8/oRMJraCUn0ECUW/RD46ePvRU5zoT0HzzdRwMcuuNOw4diRamBCW /FcVsnaoAGdh2ydjqEAL6nBmf0w5YpQe+J+CY9Eb6wa3u8Da9nQnxO6ChAMl6tQbZQ RNKOiXOOnzFshtVGLqIxDJh2ggXHwvSAEdF1CbXU= Received: by mail-wm1-f49.google.com with SMTP id w2so1853155wmi.1 for ; Sat, 29 Aug 2020 09:48:50 -0700 (PDT) X-Gm-Message-State: AOAM530ZcLreIKx+1Zlo5lvIJlkri3WbVrsXKsJxAij0998SDP/fQt5v QuF+089sMxm7mwhfMne3PVUpe1yju1VdfVlP7eKRfg== X-Received: by 2002:a05:600c:2183:: with SMTP id e3mr4015900wme.49.1598719728834; Sat, 29 Aug 2020 09:48:48 -0700 (PDT) MIME-Version: 1.0 From: Andy Lutomirski Date: Sat, 29 Aug 2020 09:48:37 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: ptrace_syscall_32 is failing To: Thomas Gleixner , X86 ML , LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Seems to be a recent regression, maybe related to entry/exit work changes. # ./tools/testing/selftests/x86/ptrace_syscall_32 [RUN] Check int80 return regs [OK] getpid() preserves regs [OK] kill(getpid(), SIGUSR1) preserves regs [RUN] Check AT_SYSINFO return regs [OK] getpid() preserves regs [OK] kill(getpid(), SIGUSR1) preserves regs [RUN] ptrace-induced syscall restart Child will make one syscall [RUN] SYSEMU [FAIL] Initial args are wrong (nr=224, args=10 11 12 13 14 4289172732) [RUN] Restart the syscall (ip = 0xf7f3b549) [OK] Restarted nr and args are correct [RUN] Change nr and args and restart the syscall (ip = 0xf7f3b549) [OK] Replacement nr and args are correct [OK] Child exited cleanly [RUN] kernel syscall restart under ptrace Child will take a nap until signaled [RUN] SYSCALL [FAIL] Initial args are wrong (nr=29, args=0 0 0 0 0 4289172732) [RUN] SYSCALL [OK] Args after SIGUSR1 are correct (ax = -514) [OK] Child got SIGUSR1 [RUN] Step again [OK] pause(2) restarted correctly