From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=BAYES_00,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D0818C433E0 for ; Tue, 11 Aug 2020 01:07:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9EC5E20734 for ; Tue, 11 Aug 2020 01:07:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727066AbgHKBHN convert rfc822-to-8bit (ORCPT ); Mon, 10 Aug 2020 21:07:13 -0400 Received: from mail.kernel.org ([198.145.29.99]:43030 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727002AbgHKBHM (ORCPT ); Mon, 10 Aug 2020 21:07:12 -0400 From: bugzilla-daemon@bugzilla.kernel.org To: linux-xfs@vger.kernel.org Subject: [Bug 208827] [fio io_uring] io_uring write data crc32c verify failed Date: Tue, 11 Aug 2020 01:07:11 +0000 X-Bugzilla-Reason: None X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: AssignedTo filesystem_xfs@kernel-bugs.kernel.org X-Bugzilla-Product: File System X-Bugzilla-Component: XFS X-Bugzilla-Version: 2.5 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: axboe@kernel.dk X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: filesystem_xfs@kernel-bugs.kernel.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Bugzilla-URL: https://bugzilla.kernel.org/ Auto-Submitted: auto-generated MIME-Version: 1.0 Sender: linux-xfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-xfs@vger.kernel.org https://bugzilla.kernel.org/show_bug.cgi?id=208827 --- Comment #6 from Jens Axboe (axboe@kernel.dk) --- On 8/10/20 1:08 AM, Dave Chinner wrote: > [cc Jens] > > [Jens, data corruption w/ io_uring and simple fio reproducer. see > the bz link below.] > > On Mon, Aug 10, 2020 at 01:56:05PM +1000, Dave Chinner wrote: >> On Mon, Aug 10, 2020 at 10:09:32AM +1000, Dave Chinner wrote: >>> On Fri, Aug 07, 2020 at 03:12:03AM +0000, >>> bugzilla-daemon@bugzilla.kernel.org wrote: >>>> --- Comment #1 from Dave Chinner (david@fromorbit.com) --- >>>> On Thu, Aug 06, 2020 at 04:57:58AM +0000, >>>> bugzilla-daemon@bugzilla.kernel.org >>>> wrote: >>>>> https://bugzilla.kernel.org/show_bug.cgi?id=208827 >>>>> >>>>> Bug ID: 208827 >>>>> Summary: [fio io_uring] io_uring write data crc32c verify >>>>> failed >>>>> Product: File System >>>>> Version: 2.5 >>>>> Kernel Version: xfs-linux xfs-5.9-merge-7 + v5.8-rc4 >>> >>> FWIW, I can reproduce this with a vanilla 5.8 release kernel, >>> so this isn't related to contents of the XFS dev tree at all... >>> >>> In fact, this bug isn't a recent regression. AFAICT, it was >>> introduced between in 5.4 and 5.5 - 5.4 did not reproduce, 5.5 did >>> reproduce. More info once I've finished bisecting it.... >> >> f67676d160c6ee2ed82917fadfed6d29cab8237c is the first bad commit >> commit f67676d160c6ee2ed82917fadfed6d29cab8237c >> Author: Jens Axboe >> Date: Mon Dec 2 11:03:47 2019 -0700 >> >> io_uring: ensure async punted read/write requests copy iovec I don't think this commit is related to the issue at all, but I think we're probably on the same page with that. It's probably just changing things slightly enough to avoid the race. > Ok, I went back to vanilla 5.8 to continue debugging and adding > tracepoints, and it's proving strangely difficult to reproduce now. > > However, I did just hit this: > > [ 4980.136032] ------------[ cut here ]------------ > [ 4980.137665] do not call blocking ops when !TASK_RUNNING; state=1 set at > [<00000000ef911b51>] prepare_to_wait_exclusive+0x3d/0xd0 > [ 4980.141403] WARNING: CPU: 13 PID: 6800 at kernel/sched/core.c:6888 > __might_sleep+0x74/0x80 > [ 4980.143940] CPU: 13 PID: 6800 Comm: fio Not tainted 5.8.0-dgc+ #2549 > [ 4980.146147] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS > 1.13.0-1 04/01/2014 > [ 4980.148774] RIP: 0010:__might_sleep+0x74/0x80 > [ 4980.150455] Code: ff 41 5c 41 5d 41 5e 5d c3 48 8b 90 30 22 00 00 48 c7 c7 > a8 b9 50 82 c6 05 38 e4 9a 01 01 48 8b 70 10 48 89 d1 e8 fa 5c fc ff <0f> 0b > eb c5 0f 1f 84 00 00 00 002 > [ 4980.156255] RSP: 0018:ffffc90005383c58 EFLAGS: 00010282 > [ 4980.158299] RAX: 0000000000000000 RBX: 0000561a18122000 RCX: > 0000000000000000 > [ 4980.160817] RDX: ffff88883eca7de0 RSI: ffff88883ec97a80 RDI: > ffff88883ec97a80 > [ 4980.163162] RBP: ffffc90005383c70 R08: ffff88883ec97a80 R09: > ffff8888070f3000 > [ 4980.165635] R10: ffff8888070f3434 R11: ffff8888070f3434 R12: > ffffffff8251f46e > [ 4980.168115] R13: 00000000000001ba R14: 0000000000000000 R15: > ffff888235647740 > [ 4980.170714] FS: 00007f80de7af700(0000) GS:ffff88883ec80000(0000) > knlGS:0000000000000000 > [ 4980.173442] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > [ 4980.175371] CR2: 00007f80d4005008 CR3: 00000005eb01c004 CR4: > 0000000000060ee0 > [ 4980.177607] Call Trace: > [ 4980.178583] change_protection+0x827/0x9e0 > [ 4980.180063] ? kvm_clock_read+0x18/0x30 > [ 4980.181654] ? kvm_sched_clock_read+0x9/0x20 > [ 4980.183426] ? sysvec_apic_timer_interrupt+0x46/0x90 > [ 4980.185160] change_prot_numa+0x19/0x30 > [ 4980.186607] task_numa_work+0x1c7/0x2e0 > [ 4980.188003] task_work_run+0x64/0xb0 > [ 4980.189488] io_cqring_wait+0x118/0x290 I'll get this one: commit 4c6e277c4cc4a6b3b2b9c66a7b014787ae757cc1 Author: Jens Axboe Date: Wed Jul 1 11:29:10 2020 -0600 io_uring: abstract out task work running queued up for stable. Should not be related to this at all, current -git shouldn't run into this. -- You are receiving this mail because: You are watching the assignee of the bug.