From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 780B1CA0FEC for ; Fri, 1 Sep 2023 18:49:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350650AbjIAStP (ORCPT ); Fri, 1 Sep 2023 14:49:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53348 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231699AbjIAStO (ORCPT ); Fri, 1 Sep 2023 14:49:14 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F33EE1BF for ; Fri, 1 Sep 2023 11:49:11 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1693594150; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=BuZ88b0upaT2I5pkWKqpzQVcxAV2S3QI2s0I0+Y7JVo=; b=IdFq9AWjhoCp7EbwCZWx80qmSmEcIKQ13qyxQafSAqgSD7fSo5limZ7otbrzXPN272oHiX GTxwEYjbHiK0nhYR7UU5PDXkKxadzY7dAEvh3gqWT7Fs1jJ3Qw+nTJO5qzN44ydUOm2xLR bYbmII+I74vHtEz3O8MecTG2DPxovR9Goiaisyq/CSJatGKkAYVJMueI7Rd0TwQwl4MLa9 4Dy8zLyNhjXGnqrThy7MRduEr79+FQ4xDVeYCtR4jupOhZFW9L2SGe+tcsatVYMj1uWgDh t+bfJW2fhB2jJUanCCtr1jpAyEeAPc3mZPZllQrWJH5o7eOC3DI4S/8GDDpgng== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1693594150; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=BuZ88b0upaT2I5pkWKqpzQVcxAV2S3QI2s0I0+Y7JVo=; b=gEko4mqtYErLM69T7ED5NKfZHvfiEKkBUF8bjCWxOtGzUSc4Rl9ug2la9tBMtjnnBSfw4x ah7G7cTzXZT808Cw== To: Joshua Hudson , Ammar Faizi Cc: Linux Kernel Mailing List , x86-ml Subject: Re: System Call trashing registers In-Reply-To: References: Date: Fri, 01 Sep 2023 20:49:09 +0200 Message-ID: <87a5u54tlm.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 01 2023 at 10:38, Joshua Hudson wrote: > On Fri, Sep 1, 2023 at 9:24=E2=80=AFAM Ammar Faizi wrote: > > Correction: it's been fixed again. Sorry about that. When exactly was it broken? Which kernel version? The save/restore mechanism is not changing every other day. > I know the asmutils tools have been broken for a decade, but they're > working now. > > What would happen is system calls that take arguments in ecx and edx woul= d find > ecx and edx trashed, but only a few calls actually did this, the > primary offender > being open(). The best regression test seems to be hexdump from > asmutils because the > corruption would reliably crash the binary. sched_yeild was never an > affected syscall. It does absolutely not matter which syscall is used. The save/restore mechanism is identical for all syscalls. Thanks, tglx