Received: by 2002:a05:7412:a9a8:b0:f9:92ae:e617 with SMTP id o40csp47942rdh; Wed, 20 Dec 2023 15:40:28 -0800 (PST) X-Google-Smtp-Source: AGHT+IG+ODjpiDPe7OXvMf9NlHgLk89POPp30EZLIMyTkQwRYvuXPm8hE27WLjHigSLE/x0x93Ph X-Received: by 2002:a05:6e02:1a2a:b0:35f:ae92:4997 with SMTP id g10-20020a056e021a2a00b0035fae924997mr8680632ile.37.1703115628179; Wed, 20 Dec 2023 15:40:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703115628; cv=none; d=google.com; s=arc-20160816; b=zNsxLZu8kXoDxNr5NGTaICejs2zOEVWgdwsskY5GYEreLlVAb8DdxU/oz2krwWE7eT SJa2qX2MjaD7k1qzwl5VnVI/VZuX3kgBujzb3N8we9RToMNb9nvq96aF56rRs5hYNypC M7CaWr2tJzT+0cdOjtpVqgK3HGzM3c+AU6u0pGE1CfOL3d6M3kvfSmpAiwxd5X77tMvh dQg5q5Z/g907O60AS4qBaxYSmzwrB39I+4L4nv+D3gGQN2gOoK9lr9Fs4C3ISlAo7/iG AVoACsTeik7+M41wefaAwYlDrNO0x/NdHJCiolRu3zfNUqE6u1x88zwknecm8z+um/qz JWbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=UT9ddCwESgsBoC0klthrCGoZVKiU2GhW3IYmRpWSVN4=; fh=h01zKirJyM/PYxbGej6fvJbvPUugFbpUx/iCIAU92rw=; b=fiSgfxC8rjCzB364OYeXlAxK1RJRIr1OSdaIw8D3M2RzB0fOK5JXz3Z6yh5IKOvXS2 l5mpcrfU44/z3xGVo+cVoawmlJkoDfr1KrEowYrm26+TeoQyMSHOlkpDH7vvgXBhKQRY r+EqUlQCEfYqbXpuus8INmTEkRtTZWNnN6lrJPcW6PplCy43xfvwgFidkBH/4xGr8IbH yhxAYMNPZrle9H0cS2CuzHPE8fG3vxm6dECzJrkT8qNOyfkkCo1ol7CoQmg0Va4ZYnsB y0EZ2A47x89NNQ2oY9bxe9fB0rMIIk/Lr6QEkcG1lGb0qTAxktTLNeH1uNnQcBoUjUWU qs3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=hakddRLq; spf=pass (google.com: domain of linux-kernel+bounces-7642-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-7642-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id z11-20020a1709028f8b00b001d0b9edced7si409366plo.581.2023.12.20.15.40.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 15:40:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-7642-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=hakddRLq; spf=pass (google.com: domain of linux-kernel+bounces-7642-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-7642-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id CCB81281CC7 for ; Wed, 20 Dec 2023 23:40:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5E7354AF79; Wed, 20 Dec 2023 23:40:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="hakddRLq" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ot1-f41.google.com (mail-ot1-f41.google.com [209.85.210.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3C57145C09 for ; Wed, 20 Dec 2023 23:40:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-ot1-f41.google.com with SMTP id 46e09a7af769-6d9f4eed60eso124261a34.1 for ; Wed, 20 Dec 2023 15:40:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1703115618; x=1703720418; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=UT9ddCwESgsBoC0klthrCGoZVKiU2GhW3IYmRpWSVN4=; b=hakddRLqIxBqscujWUaIheFFI1t5+YhWYJr9fd2/1GNQEpsHdHPQjqkgYHYLy25pIQ U6x3mDdOdvwSLBgFVTnREr8yUNL8j254i+Cv0B8UmIAVRJb/Qeel3DfMr0zUVc+aqjhy llq6gjyQzvtbr8uxhl8oMcCcUQSQPB4e4thuLZIhh9ftRw3BCOSIZsGmTbruQkgOUk+n Mhk9z+9En4uxzyy2NCplegfJuGvMlEc4F0YVjq9y+/krTTEeLGJOl7yxhU7QgcGP5ogr Lpqz/TzAPvsN/IzDQhHxr/wgxfBRC8dzFUr8p73ggEaBrgLy0grcKSW6Jnj6GNmDlGX6 qtVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703115618; x=1703720418; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=UT9ddCwESgsBoC0klthrCGoZVKiU2GhW3IYmRpWSVN4=; b=Q7H0oZkM+WRXKB88nTSZWC2smXIOeiltBXlQBnhdEE7O8QG2GL3QGnF7Ub+/oiOMQL CkeMB/mgek0Rs0NeqrXr8Mbc/rwxJPM7YyOhfanKfCTzrqlxFoIUoAOaJVkjzh7fAHPh U9qn6CWbClIQYfObQ+USwzr2s1Te4fylKhzqdixHNUXykeBWw7Y8RlqAgo8rJhAMXUh0 X6qXuLD9ahJrNfrohyQpI8XTkgZJ5H7kMmyH9xhvowho3QuzvS9A2jR/V9AqDN0kSQS8 K8r3Iv6a0irbFv84CflIHtCkoWv3NAAHK2C4FfUM8MuvUGCQxdzU39pcFkyXDkCk3iru cARw== X-Gm-Message-State: AOJu0YxnBmoAdYeMJnwk5UKFl7oRqUZH1teW5FeN/l4qumgDHuAZ1+JL czzu21jT+FMGCu5TKv4NGuHhswT4fHmXd3kkdvFtPOecJb/U6hrUvc4= X-Received: by 2002:a05:6830:18c2:b0:6d9:f031:4e76 with SMTP id v2-20020a05683018c200b006d9f0314e76mr20116594ote.69.1703115618088; Wed, 20 Dec 2023 15:40:18 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <202312191507.348721d2-oliver.sang@intel.com> <20231219095821.GAZYFpPUSKexZAcl05@fat_crate.local> <87013f74-5828-4bef-848b-ffedde8e86f5@citrix.com> In-Reply-To: From: Sami Tolvanen Date: Wed, 20 Dec 2023 15:39:40 -0800 Message-ID: Subject: Re: [linus:master] [x86/entry] be5341eb0d: WARNING:CPU:#PID:#at_int80_emulation To: Linus Torvalds Cc: Andrew Cooper , Borislav Petkov , kernel test robot , Thomas Gleixner , oe-lkp@lists.linux.dev, lkp@intel.com, linux-kernel@vger.kernel.org, Dave Hansen , "Kirill A. Shutemov" , xen-devel@lists.xenproject.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Dec 19, 2023 at 3:15=E2=80=AFPM Linus Torvalds wrote: > > On Tue, 19 Dec 2023 at 12:17, Linus Torvalds > wrote: > > > > That said, I still think that just getting rid of this horrid special > > case for posix timers is the right thing, and we should just remove > > that SYS_NI() alias thing entirely. > > IOW, something like the attached patch. > > It's not extensively tested, but hey, the diffstat looks nice: > > arch/arm64/include/asm/syscall_wrapper.h | 4 --- > arch/riscv/include/asm/syscall_wrapper.h | 5 ---- > arch/s390/include/asm/syscall_wrapper.h | 13 +-------- > arch/x86/include/asm/syscall_wrapper.h | 34 +++--------------------- > kernel/sys_ni.c | 14 ++++++++++ > kernel/time/posix-stubs.c | 45 -------------------------= ------- > 6 files changed, 19 insertions(+), 96 deletions(-) > > and it builds in at least a *couple* of configurations, including with > CONFIG_POSIX_TIMERS disabled. > > I did *not* check whether it might fix the warning, since I doubt my > user space would even boot without that posix timer support (actually, > honestly, because I'm just lazy and "it _looks_ fine to me" was the > main real thing). I tested the patch with the 0-day bot reproducer and it does fix the warning. My usual arm64 and riscv configs also seem to build and boot just fine. > But that SYS_NI() thing really does deserve to die, as it was purely > used as a hack for some random timer system calls. > > Comments? Removing the SYS_NI bits is definitely a cleaner solution. Looks good to me= . Reviewed-by: Sami Tolvanen Tested-by: Sami Tolvanen Sami