Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp707366pxf; Thu, 1 Apr 2021 11:23:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy1IUqo2rv+F9Mm0z682XlMj2gPlYwAiRzzG20/ZbwCngfx0o9vMqvCsr2LLbvhe6FJXZIQ X-Received: by 2002:a92:c784:: with SMTP id c4mr3791646ilk.212.1617301438343; Thu, 01 Apr 2021 11:23:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617301438; cv=none; d=google.com; s=arc-20160816; b=prVn8juBOPfsyX99GLgV4JffCukVfCKm4i/FZ5DObUIqIhU4BMaxPNb+6SVbicgyze HzUV9UGfoW09NyPrebAQs+SJ8dbdHDsHfnWXbPB1rsttr+rGgZrh4i0i2NCOkjA0AeTM cwSWNRgU/4ZSYQ5Xr2B9ROoSYyX/3HDpRurabRouysKm2J0xs7a4Fbzm5xL9VQGVvLC/ 9DbgDKmNq+DpJGdkgKTA94E5eTug/InFovERbUuUK7DMHDKfxSOodW3lNctwfuUBpRt0 hPNY8zA0/aW4NOXVvpIr8UnRvceFs6t/VC/izwOgvwQS0DqDmWfjTbtY8fDKzF/usiRM Vmrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=zqCMOBypWMQrFbhLJ32mebAruTX9rIeMsT/rUeGN8s4=; b=v6xfvblgBWhcvyDE1rV7CWUI0EFwLRSkYFkFq9nu7hrZgw6rEdlVEDfQkIU75C/NQ/ 6BvaJqTtOWbA6InPLjykDOR1kxU4D0M6YNOkiqdDXQ+P9DLlPofHO76zkEZfUwynbN2F iRNuY74Funyh2Pfev+xcOtInala6197RAqyaIkj1ZuVU5J83b3QgKCvTjGL9jef7byVv 2PV+3gByBYkDeEs5qi3hJ22tJ9zMojGGfBu3qwK6gotjqzXF5i1WgiB5DSq0FfYhLoHJ 7rqeWoCEYlU8oy/IR/F7x4PATRvucRQcd36BSTR2J5QMZ26Xt7xP99TahrbBWjq0tLTw qdFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=MJa57M9n; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z6si6189154ilb.46.2021.04.01.11.23.44; Thu, 01 Apr 2021 11:23:58 -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=@linux-foundation.org header.s=google header.b=MJa57M9n; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235767AbhDASXV (ORCPT + 99 others); Thu, 1 Apr 2021 14:23:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34002 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237160AbhDASDi (ORCPT ); Thu, 1 Apr 2021 14:03:38 -0400 Received: from mail-lj1-x22d.google.com (mail-lj1-x22d.google.com [IPv6:2a00:1450:4864:20::22d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1041C02FEB3 for ; Thu, 1 Apr 2021 09:25:16 -0700 (PDT) Received: by mail-lj1-x22d.google.com with SMTP id r20so2896205ljk.4 for ; Thu, 01 Apr 2021 09:25:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=zqCMOBypWMQrFbhLJ32mebAruTX9rIeMsT/rUeGN8s4=; b=MJa57M9nPQRBm1aVYcjskVj7GsuwnBIkQ2OKLCY1TaQbheJTjtHLCiiLXpyBtHdYnG GYn1R3QF5JvAJ5heSIw+Xkj46s7bdiCDIIabYjiWbgc3bwnaKSuzjz32xAyKWQwckGQR o+BzYcd/n0S6QJ/6MepO2U9OBI0Wt1MFV7qT8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=zqCMOBypWMQrFbhLJ32mebAruTX9rIeMsT/rUeGN8s4=; b=rpFQ8+nIvBFqPI5sklYRtWJpbjfCoQ7fKDEsKgAujElyLeSqV8dwsvLXVGrhzhHEyv wAbR+0vDU3UThHQaCsEsAOG6IC+M1x3xcrVWhCzGMdUKL4klFlol31SHkLYwM9YVnv0d KTdH8HqThRDaVvPyt2Z6ZP4S1zAboAN/TFgz13cX6hSH+3JIRpGepvCOSirKJbUFC0Sz 5Ufd0S/yYiUyGkhFkVy3qefobdonfRsV6dgg9mOoJdRi8aY3CXLhhvpD64YA1UPCLUM7 i/OCZ7t9rxICPHvZCmf0zP8Y6atvK4Y1VEx4aXMoCCNpz8+yytRg++6ScSJqrH9W92Xl 4CdQ== X-Gm-Message-State: AOAM531uKlJ7KbUVIwOoRsGHxK9/HDtKaOJZZsgzoRoGAMfuXLs8JYvH iRl4hjUaXtTb/8UeH9D2uawxDi5nwUW/rikK X-Received: by 2002:a2e:3010:: with SMTP id w16mr5736861ljw.118.1617294313994; Thu, 01 Apr 2021 09:25:13 -0700 (PDT) Received: from mail-lf1-f54.google.com (mail-lf1-f54.google.com. [209.85.167.54]) by smtp.gmail.com with ESMTPSA id v80sm586273lfa.229.2021.04.01.09.25.13 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 01 Apr 2021 09:25:13 -0700 (PDT) Received: by mail-lf1-f54.google.com with SMTP id n138so3721083lfa.3 for ; Thu, 01 Apr 2021 09:25:13 -0700 (PDT) X-Received: by 2002:a05:6512:3ba9:: with SMTP id g41mr5782359lfv.421.1617294313081; Thu, 01 Apr 2021 09:25:13 -0700 (PDT) MIME-Version: 1.0 References: <20210326003928.978750-1-axboe@kernel.dk> <8efd9977-003b-be65-8ae2-4b04d8dd1224@samba.org> <358c5225-c23f-de08-65cb-ca3349793c0e@samba.org> <5bb47c3a-2990-e4c4-69c6-1b5d1749a241@samba.org> <2d8a73ef-2f18-6872-bad1-a34deb20f641@samba.org> In-Reply-To: <2d8a73ef-2f18-6872-bad1-a34deb20f641@samba.org> From: Linus Torvalds Date: Thu, 1 Apr 2021 09:24:57 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 0/6] Allow signals for IO threads To: Stefan Metzmacher Cc: Jens Axboe , io-uring , "Eric W. Biederman" , Oleg Nesterov , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 1, 2021 at 9:00 AM Stefan Metzmacher wrote: > > I haven't tried it, but it seems gdb tries to use PTRACE_PEEKUSR > against the last thread tid listed under /proc//tasks/ in order to > get the architecture for the userspace application Christ, what an odd hack. Why wouldn't it just do it on the initial thread you actually attached to? Are you sure it's not simply because your test-case was to attach to the io_uring thread? Because the io_uring thread might as well be considered to be 64-bit. > so my naive assumption > would be that it wouldn't allow the detection of a 32-bit application > using a 64-bit kernel. I'm not entirely convinced we want to care about a confused gdb implementation and somebody debugging a case that I don't believe happens in practice. 32-bit user space is legacy. And legacy isn't io_uring. If somebody insists on doing odd things, they can live with the odd results. Linus