Received: by 2002:a05:7412:d008:b0:f9:6acb:47ec with SMTP id bd8csp158776rdb; Tue, 19 Dec 2023 12:18:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IHZfwqPuedaYNpQ3OA6vemXtyRYNaRoG8F9h9mxPKFONwsi2CbWaMagHB1J9gUsx17pFwjl X-Received: by 2002:a05:6358:591f:b0:170:ca20:6fd with SMTP id g31-20020a056358591f00b00170ca2006fdmr21860889rwf.62.1703017094131; Tue, 19 Dec 2023 12:18:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703017094; cv=none; d=google.com; s=arc-20160816; b=egtH7kVeGT55LxLsBHHnFDXkXtetfwpwe8KoMp4iGh9YQYUWNgn2efXUiNMHlA89CM PqrCgandmCrSFulCfeVCu1NSqExI95Hb1XRX6oE6FzuI/IZjWVtY9mf43Q7xRAt2fJa2 rzh7JU6BubIk8caBlziPeyL4oemvz5UdwbTyBEJqAXVfcAsUu8a4rcSZCHjIzeb4aLKC a7sNzLLMM6ezSak16N6VAxfGdEKaR/Fy1GfxQWpABIr+mUG3gyhkyPSewSYfFR2V4CH0 UxVRmrLwM++zMFP7KzVAXKBFxSWIrsQ9mPJgMZKPvJ0yv6uxopN4j3jxxVcs2UYXHcsv il7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=2YQISh9f/hMVihywyg7rkbccdS6kJ5BjuKERfau1fMo=; fh=GNxwfKeN6Bn/zBdVoFIeLCvLOJFs1hOaiAp+kyWC2vw=; b=oCk5sD96OVIUSyWlSyPFS6/Z2ZhzW/YzUrV9YPaCD8bpvn0AkWt/DPMGixud2s572B E2TM+Jiz1qYNwLBOf0vryFJdhmS9S3Q8rizfo0wnZD3lSiKKe6OiZvroJmscSIx2nVlf Bma1VTadvOOqWg9nq3xyP3FqY+jrV8M3xOyNoKwQuqaD9vAly+me9E5NR6Ie6dijGnCa Cu4sTmJ/AL3eHKCqLLJ7L0QSoZLzXD0Iy0BCPfZIk6ExjKRsoqewzV1QJIYPZ1vtjZT8 FHG6e98qlIuOaXqqSeJu9v6pLy2dIXVwwQbcmc1Fy8ZDqMWMNRXZx3h+cL4L1bzUUlaH D0og== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=BINQLL0Z; spf=pass (google.com: domain of linux-kernel+bounces-5899-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5899-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id bw16-20020a056a02049000b005c1cc9caf0asi3213008pgb.899.2023.12.19.12.18.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 12:18:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-5899-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=BINQLL0Z; spf=pass (google.com: domain of linux-kernel+bounces-5899-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5899-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org 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 380F7287FB6 for ; Tue, 19 Dec 2023 20:18:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BB16A39AC8; Tue, 19 Dec 2023 20:18:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="BINQLL0Z" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ed1-f54.google.com (mail-ed1-f54.google.com [209.85.208.54]) (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 D256C39AD2 for ; Tue, 19 Dec 2023 20:18:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linuxfoundation.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linuxfoundation.org Received: by mail-ed1-f54.google.com with SMTP id 4fb4d7f45d1cf-55372c1338bso2923727a12.2 for ; Tue, 19 Dec 2023 12:18:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; t=1703017079; x=1703621879; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=2YQISh9f/hMVihywyg7rkbccdS6kJ5BjuKERfau1fMo=; b=BINQLL0ZCytOwwUk4TikD+1YZY+GffE85dzn99BGsE1oa0Kd8jEhgC4tRWjwFIOUKA GdzqFpj/hmH98FrC96QUk+7VndK/U5NfHAs4+o+DcMc7scfRIt6CLK26CMSaB4H5bPJJ 9aiZDyWNuRg88OY2uMQmp5FV5dpV0m/z4Hu6A= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703017079; x=1703621879; h=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=2YQISh9f/hMVihywyg7rkbccdS6kJ5BjuKERfau1fMo=; b=QVHD0908MVDG51ngnv6pCjOfvYnxUUf7kk6BXf2UK45wsmJUWQYE8i7rgwnKS6vvKk H6PJe0FWF6+d/eHSq/1T+7yJxzFarorJrDTvYamapsw4XC7qWV8HLlzLklTG06eblyu0 pWkMk8NONoV8hRClxd/COcOaWRusV45yDwmsIko7XVDa6ZgsldncXbanc3OTBkMNDsMn rjD5Bubtlee42Ze8tgTUrbJI38DlaQ5kknxt179kS38zmhKyVNKrUeMjzunxwOQZnWOE apYaFkvMaEoDHXCc8a9Zc5Ni8MNmvkF4YqbkwWUm3NoTBWmD7bIWq1Ftikmac5s/dRt4 TFdQ== X-Gm-Message-State: AOJu0YyTLqMiQ+X3Dnp7yFVdXdn2ti6vJebn/CwC+jLvqwfGjaH++5cN 2bqFZRmqZk2s8eC4F7EZAWEroWXMP8zFSAA7dHsyTpIB X-Received: by 2002:a17:906:4c58:b0:a24:8deb:351e with SMTP id d24-20020a1709064c5800b00a248deb351emr728806ejw.83.1703017079002; Tue, 19 Dec 2023 12:17:59 -0800 (PST) Received: from mail-ej1-f44.google.com (mail-ej1-f44.google.com. [209.85.218.44]) by smtp.gmail.com with ESMTPSA id l18-20020a1709065a9200b00a250c28ef83sm987229ejq.75.2023.12.19.12.17.58 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 19 Dec 2023 12:17:58 -0800 (PST) Received: by mail-ej1-f44.google.com with SMTP id a640c23a62f3a-9fa45e75ed9so561256466b.1 for ; Tue, 19 Dec 2023 12:17:58 -0800 (PST) X-Received: by 2002:a17:906:aed8:b0:a23:7576:3551 with SMTP id me24-20020a170906aed800b00a2375763551mr696466ejb.109.1703017078207; Tue, 19 Dec 2023 12:17:58 -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: <87013f74-5828-4bef-848b-ffedde8e86f5@citrix.com> From: Linus Torvalds Date: Tue, 19 Dec 2023 12:17:40 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [linus:master] [x86/entry] be5341eb0d: WARNING:CPU:#PID:#at_int80_emulation To: Andrew Cooper Cc: 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" On Tue, 19 Dec 2023 at 11:15, Andrew Cooper wrote: > > -asmlinkage long sys_ni_posix_timers(void); > +asmlinkage long sys_ni_posix_timers(const struct pt_regs *regs); I don't think it should be asmlinkage. That means "use legacy asm calling conventions", and for x86-32 that means pass on stack. Which I don't think these actually are. I think it's an old artefect, and it doesn't matter for something that doesn't take any arguments, but when you add an argument it's actively wrong. Of course, that argument isn't _used_, so it still doesn't matter, but if the point is to use the right prototype, I think we should just make it be long sys_ni_posix_timers(const struct pt_regs *regs); although I think Sami's suggestion is probably nicer. 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. Linus