Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2709913pxb; Tue, 21 Sep 2021 06:08:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyXDYHyljKSAtM1XkZ6V9HehxXMtrseeJM1qY85LpB3Q9njDCdk83lqpEh1GKW595u24PAu X-Received: by 2002:a05:6000:168b:: with SMTP id y11mr30397083wrd.350.1632229685981; Tue, 21 Sep 2021 06:08:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632229685; cv=none; d=google.com; s=arc-20160816; b=Xtouf9ky0/YedQJp1shtgppCASrw674+FQ7Nap4slKgRqU4+jXVX3GgrR+wfxVdwdy 3JAtYN+Rj65XIHdOcNndT1cgHmQXNlJHsXyCB0PACpGZnRmElGcWwYeyjN0VQGCmVv6P ANUTeooYn78aBqmzJKPWEghip0RCSqHBa5R19RusjUOw5EskbWXYR1yg9OxO/JLmNdvp eDD9+DRzKbPsb7rFsDSJWhyHvyn+JvinxtawPblmj5Wqpqo7aP1bsVKojVKGerQ7aKaN 8cX/PnOSVSAvcgwk6+3f+IOJtECxU+yAjMx3Aqq90+G86Gsqj3CTItflsVlO3tATfhsO GzRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=hl/MOmvXomLoOTDJpYFB1eX0OKjWBWw5KeY0f7BZBk8=; b=ekhEHKEq80GyHvphygsjIrJQE+oZY01fSAsuhvsu+1VvEHkicA+q1O2W2kfd4J16ix oJdjEBJt+8PFcN8TMLD8ysumnVkE0q/9f3gafUzqgvPvw8QzBGhS1FS7cKHWiZom0UC+ WnSTQ4/pDF+lQpi0VNGZZY1UzQ+xGZXGeAmbV56ceO/23B0SIzC83X4CvJN8sC3LUy0p FY7wrICfiEinmIAq8YiIm0zkTIL2y1+TzAiAfM4neHrBKpVJ/sl5JW5uxJrwcFQS23r6 PiXKgo2U9DMonC1CrLP7dzTHDhJs6AQQtesDgmI755lG/TFKH7u4dzcIOtihRTbWnLpE KQLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=DDAn3qOj; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z5si13297720ejl.639.2021.09.21.06.07.32; Tue, 21 Sep 2021 06:08:05 -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=@suse.com header.s=susede1 header.b=DDAn3qOj; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232858AbhIUNGK (ORCPT + 99 others); Tue, 21 Sep 2021 09:06:10 -0400 Received: from smtp-out2.suse.de ([195.135.220.29]:53386 "EHLO smtp-out2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232842AbhIUNGK (ORCPT ); Tue, 21 Sep 2021 09:06:10 -0400 Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id D69021FED6; Tue, 21 Sep 2021 13:04:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1632229480; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=hl/MOmvXomLoOTDJpYFB1eX0OKjWBWw5KeY0f7BZBk8=; b=DDAn3qOj3hI0wsKV+6nC7kwpEoKuHTKIVo5QpbT/czkSEyqcAejn81xt4A/suCV0oxFEmo Cn0pouydQemRsd5QaLfWJwxS7TpPEqOzRGwkOr1NxIRaR9LnAwtCDmsgS/XIUHI0U0t4Mu X++nb53QCf8CzcKprEebYeluK4pye/4= Received: from g78.suse.de (unknown [10.163.24.38]) by relay2.suse.de (Postfix) with ESMTP id BE194A3B85; Tue, 21 Sep 2021 13:04:39 +0000 (UTC) From: Richard Palethorpe To: linux-fsdevel@vger.kernel.org Cc: Richard Palethorpe , linux-api@vger.kernel.org, linux-aio@kvack.org, y2038@lists.linaro.org, Andy Lutomirski , Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86@kernel.org, "H. Peter Anvin" , Arnd Bergmann , Deepa Dinamani , linux-kernel@vger.kernel.org, ltp@lists.linux.it Subject: [PATCH] aio: Wire up compat_sys_io_pgetevents_time64 for x86 Date: Tue, 21 Sep 2021 14:01:27 +0100 Message-Id: <20210921130127.24131-1-rpalethorpe@suse.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The LTP test io_pgetevents02 fails in 32bit compat mode because an nr_max of -1 appears to be treated as a large positive integer. This causes pgetevents_time64 to return an event. The test expects the call to fail and errno to be set to EINVAL. Using the compat syscall fixes the issue. Fixes: 7a35397f8c06 ("io_pgetevents: use __kernel_timespec") Signed-off-by: Richard Palethorpe --- arch/x86/entry/syscalls/syscall_32.tbl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/entry/syscalls/syscall_32.tbl b/arch/x86/entry/syscalls/syscall_32.tbl index 960a021d543e..0985d8333368 100644 --- a/arch/x86/entry/syscalls/syscall_32.tbl +++ b/arch/x86/entry/syscalls/syscall_32.tbl @@ -420,7 +420,7 @@ 412 i386 utimensat_time64 sys_utimensat 413 i386 pselect6_time64 sys_pselect6 compat_sys_pselect6_time64 414 i386 ppoll_time64 sys_ppoll compat_sys_ppoll_time64 -416 i386 io_pgetevents_time64 sys_io_pgetevents +416 i386 io_pgetevents_time64 sys_io_pgetevents compat_sys_io_pgetevents_time64 417 i386 recvmmsg_time64 sys_recvmmsg compat_sys_recvmmsg_time64 418 i386 mq_timedsend_time64 sys_mq_timedsend 419 i386 mq_timedreceive_time64 sys_mq_timedreceive -- 2.31.1