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 A000DC4332F for ; Wed, 12 Jan 2022 00:20:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235152AbiALAUk (ORCPT ); Tue, 11 Jan 2022 19:20:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54234 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230147AbiALAUj (ORCPT ); Tue, 11 Jan 2022 19:20:39 -0500 Received: from mail-pl1-x630.google.com (mail-pl1-x630.google.com [IPv6:2607:f8b0:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F6DEC06173F; Tue, 11 Jan 2022 16:20:39 -0800 (PST) Received: by mail-pl1-x630.google.com with SMTP id l15so1426720pls.7; Tue, 11 Jan 2022 16:20:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=OLIwB5BHLC3yAD2ZzXqCsAZKNHH6hfK1FSSG8NbarnE=; b=VxpKJF/YSyWacV7Rg5PK/7SjOxS0/V85OJKrODkd1WxXxjGZJk0xznqcbmTVccQFka v9GgsYzJRZ9Ma146A+oCV7VgOhvu3TaJWQGdR+Q5CVZQg4u5ioDXUmHNjhnI0vnUJaVw LnOncS7ILpiX45fg3coj8QxdLh3CterH8ejY5besGQC4dpn6cAGTKmjfn+XO5cB7nii6 OD1+trOyy2Z+85tgc5EC1fZjKmWWHxE/syuRJmHoGCAJpOuepDs13D7rY+kfsmKLVE6+ WgKeI/21jJsSTXWVoTjs67NASWspnbKkXTBgdp+VZuORZxvx5cQLKn8oyoTP5JI731VN wmzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=OLIwB5BHLC3yAD2ZzXqCsAZKNHH6hfK1FSSG8NbarnE=; b=TWrjX5Fu8ut6bTeoBoRt/Ya5rEQWALnT+OALdLjr5ZT6fDbrNDu0QSoEoQp1Wt1gYM RA80qCV0DBAGwSfcse/vshPBRyv/rX9Y76N3WPnDyVu0gPDZtwlL0cSmClwvJn7uL25y 7K3KKVqE8pmPc0Qhf9C9NkSZal43CTecsRFEYQV7E+GRqrD0zndeFnvLeJp4jNTxzIYK AN4C+2Nr9X4xp3dVaFng+DIMZUIO5YMRPH13+67ItTOQUI6EZsHTFZwpV1gqWRiHbj6k MWfyyf3QB75zcbVk45WBucSPves3zz3yBQWN6oloJCSMnhhj8hxBIg+MMI5xyLge/x2i yd0w== X-Gm-Message-State: AOAM530zkpwWWw2wVensI5UEM+A98PSjLXZRD4/AlRu8DU20dfkjLQIy qwPclEM/jcjYG1FkwPfU8eo= X-Google-Smtp-Source: ABdhPJwWIHZ5gvsxZEoBrIRUqAVZ7nbupSccTZkUnmCtOdQFIb0LoZWqT+fwN6FxcnxNZJSIRv2ofw== X-Received: by 2002:a17:90b:3a89:: with SMTP id om9mr5906345pjb.120.1641946839187; Tue, 11 Jan 2022 16:20:39 -0800 (PST) Received: from [10.1.1.24] (222-155-5-102-adsl.sparkbb.co.nz. [222.155.5.102]) by smtp.gmail.com with ESMTPSA id p37sm12805225pfh.97.2022.01.11.16.20.33 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 11 Jan 2022 16:20:38 -0800 (PST) Subject: Re: [PATCH 08/17] ptrace/m68k: Stop open coding ptrace_report_syscall To: Finn Thain References: <87r19opkx1.fsf_-_@email.froward.int.ebiederm.org> <20220103213312.9144-8-ebiederm@xmission.com> Cc: Geert Uytterhoeven , Al Viro , "Eric W. Biederman" , Linux Kernel Mailing List , Linux-Arch , Linus Torvalds , Oleg Nesterov , Kees Cook , Linux API , linux-m68k From: Michael Schmitz Message-ID: <6060f799-d0c5-e4c2-a81c-2bd872ce3d5a@gmail.com> Date: Wed, 12 Jan 2022 13:20:31 +1300 User-Agent: Mozilla/5.0 (X11; Linux ppc; rv:45.0) Gecko/20100101 Icedove/45.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Finn, Am 12.01.2022 um 11:42 schrieb Finn Thain: > On Tue, 11 Jan 2022, Michael Schmitz wrote: >>> In fact Michael did so in "[PATCH v7 1/2] m68k/kernel - wire up >>> syscall_trace_enter/leave for m68k"[1], but that's still stuck... >>> >>> [1] >>> https://lore.kernel.org/r/1624924520-17567-2-git-send-email-schmitzmic@gmail.com/ >> >> That patch (for reasons I never found out) did interact badly with >> Christoph Hellwig's 'remove set_fs' patches (and Al's signal fixes which >> Christoph's patches are based upon). Caused format errors under memory >> stress tests quite reliably, on my 030 hardware. >> > > Those patches have since been merged, BTW. Yes, that's why I advised caution with mine. > >> Probably needs a fresh look - the signal return path got changed by Al's >> patches IIRC, and I might have relied on offsets to data on the stack >> that are no longer correct with these patches. Or there's a race between >> the syscall trap and signal handling when returning from interrupt >> context ... >> >> Still school hols over here so I won't have much peace and quiet until >> February. >> > > So the patch works okay with Aranym 68040 but not Motorola 68030? Since Correct - I seem to recall we also tested those on your 040 and there was no regression there, but I may be misremembering that. > there is at least one known issue affecting both Motorola 68030 and Hatari > 68030, perhaps this patch is not the problem. In anycase, Al's suggestion I hadn't ever made that connection, but it might be another explanation, yes. > to split the patch into two may help in that testing two smaller patches > might narrow down the root cause. That's certainly true. What's the other reason these patches are still stuck, Geert? Did we ever settle the dispute about what return code ought to abort a syscall (in the seccomp context)? Cheers, Michael