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=-2.3 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 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 F2FAAC3A589 for ; Sun, 18 Aug 2019 16:04:04 +0000 (UTC) Received: from lists.sourceforge.net (lists.sourceforge.net [216.105.38.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id BD5EE20851; Sun, 18 Aug 2019 16:04:04 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=sourceforge.net header.i=@sourceforge.net header.b="D/QbP0Qo"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=sf.net header.i=@sf.net header.b="fNUHZU7T"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="sH3/lX/n" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BD5EE20851 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linux-f2fs-devel-bounces@lists.sourceforge.net Received: from [127.0.0.1] (helo=sfs-ml-4.v29.lw.sourceforge.com) by sfs-ml-4.v29.lw.sourceforge.com with esmtp (Exim 4.90_1) (envelope-from ) id 1hzNf2-0004dW-Ba; Sun, 18 Aug 2019 16:04:04 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-4.v29.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1hzNf0-0004dO-Ph for linux-f2fs-devel@lists.sourceforge.net; Sun, 18 Aug 2019 16:04:02 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=In-Reply-To:Content-Type:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=C7tZl9+nhSuSa4z9ArEEJivfqRlYbwbr50AdcugCFYY=; b=D/QbP0QoPrXe7e5/IoFBcMIua/ WswNndcPTvQldfOM5Tk6u+y5GFiZ6k+dPGGhcX1a46oJ6mMBYhl2SqgOsLdIsZ3LXfUctMi4WszmB lt1l9tAojNAb3Qsn2PvMwvBd4QWx7mmvhBEej9smlfIEaFibg/3axZ5St+ALLCHuVMbM=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To :From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=C7tZl9+nhSuSa4z9ArEEJivfqRlYbwbr50AdcugCFYY=; b=fNUHZU7Teb6IuTNHERJ280P2ju t5PVlrHlpBWXjjb04n+nsbz8XfIEKumgzci9HUBEJkkLz7OMvCDjwXj0O/YC12k9yUP9+PeVzSpq9 JRReERXKnCqSsd1dIr51IJyb0BkhmkVfWXIOx9DhFG06CqZZUDI309+c9/1aNziHtBVg=; Received: from mail.kernel.org ([198.145.29.99]) by sfi-mx-4.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) id 1hzNez-007Qhk-AL for linux-f2fs-devel@lists.sourceforge.net; Sun, 18 Aug 2019 16:04:02 +0000 Received: from sol.localdomain (c-24-5-143-220.hsd1.ca.comcast.net [24.5.143.220]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id CFA0020851; Sun, 18 Aug 2019 16:03:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566144234; bh=f9uQyOvfD5eYRMQQNrGjE27Yz/F4dSgXL3luGcZJiDY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=sH3/lX/nOpHcvdajTeMaO1jU5wT9LIX/whf6A3R8JxYBij4eBmk/0OY7dZ335H2lT MRuT3yt+xkchBqZWThrDjFmfK9wuz+/EHivHitWoVBG+tSlj3t+hATSP75usjiNXY5 0fKpnGKgxoTey65ZR1zB4rP1A4kBPqaUeZIGUEi8= Date: Sun, 18 Aug 2019 09:03:53 -0700 From: Eric Biggers To: Chao Yu Message-ID: <20190818160353.GD1118@sol.localdomain> Mail-Followup-To: Chao Yu , linux-f2fs-devel@lists.sourceforge.net References: <20190729174140.GA169027@gmail.com> <13d9a0eb-2c5f-25c8-9ebb-16815a178d8f@huawei.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <13d9a0eb-2c5f-25c8-9ebb-16815a178d8f@huawei.com> User-Agent: Mutt/1.12.1 (2019-06-15) X-Headers-End: 1hzNez-007Qhk-AL Subject: Re: [f2fs-dev] kernel BUG at fs/f2fs/segment.c:2391 during xfstest generic/204 X-BeenThere: linux-f2fs-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-f2fs-devel@lists.sourceforge.net Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net On Fri, Aug 16, 2019 at 04:37:35PM +0800, Chao Yu wrote: > Hi Eric, > > Sorry for late reply... > > I only hit ENOSPC error: > > QA output created by 204 > line 82: echo: write error: No space left on device > > What is your mkfs/mount option? > It's: MKFS_OPTIONS -- /dev/vdc MOUNT_OPTIONS -- -o acl,user_xattr /dev/vdc /vdc Here's the output from 'kvm-xfstests -c f2fs/default generic/204': KERNEL: kernel 5.3.0-rc4-xfstests-00142-g8fde2832bd0b #1 SMP Sun Aug 18 08:57:34 PDT 2019 x86_64 FSTESTVER: blktests 0ee7eba (Wed, 17 Apr 2019 14:41:39 -0700) FSTESTVER: fio fio-3.2 (Fri, 3 Nov 2017 15:23:49 -0600) FSTESTVER: fsverity 2151209 (Fri, 28 Jun 2019 14:34:41 -0700) FSTESTVER: quota 59b280e (Mon, 5 Feb 2018 16:48:22 +0100) FSTESTVER: xfsprogs v5.2.0-rc0-13-g189981e6 (Mon, 12 Aug 2019 10:34:57 -0700) FSTESTVER: xfstests v1.1.0-2641-g43d96649 (Mon, 12 Aug 2019 09:34:21 -0700) FSTESTVER: xfstests-bld b9e2900 (Mon, 29 Jul 2019 00:01:44 -0400) FSTESTCFG: "f2fs/default" FSTESTSET: "generic/204" FSTESTEXC: "" FSTESTOPT: "aex" MNTOPTS: "" CPUS: "2" MEM: "1970.49" total used free shared buff/cache available Mem: 1970 57 1828 8 84 1872 Swap: 0 0 0 [ 3.504915] blk_update_request: operation not supported error, dev vdd, sector 8388606 op 0x3:(DISCARD) flags 0x0 phys_seg 2 prio class 0 [ 4.149867] NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory [ 4.151515] NFSD: Using legacy client tracking operations. [ 4.248498] blk_update_request: operation not supported error, dev vdc, sector 8388606 op 0x3:(DISCARD) flags 0x0 phys_seg 2 prio class 0 BEGIN TEST default (1 test): f2fs Sun Aug 18 09:00:05 PDT 2019 DEVICE: /dev/vdd MKFS_OPTIONS: F2FS_MOUNT_OPTIONS: FSTYP -- f2fs PLATFORM -- Linux/x86_64 kvm-xfstests 5.3.0-rc4-xfstests-00142-g8fde2832bd0b #1 SMP Sun Aug 18 08:57:34 PDT 2019 MKFS_OPTIONS -- /dev/vdc MOUNT_OPTIONS -- -o acl,user_xattr /dev/vdc /vdc [ 5.044711] blk_update_request: operation not supported error, dev vdc, sector 8388606 op 0x3:(DISCARD) flags 0x0 phys_seg 2 prio class 0 generic/204 [09:00:06][ 5.400706] run fstests generic/204 at 2019-08-18 09:00:06 [ 5.710696] blk_update_request: operation not supported error, dev vdc, sector 8388606 op 0x3:(DISCARD) flags 0x0 phys_seg 2 prio class 0 [ 7.122703] ------------[ cut here ]------------ [ 7.123209] kernel BUG at fs/f2fs/segment.c:2391! [ 7.124232] invalid opcode: 0000 [#1] SMP NOPTI [ 7.124675] CPU: 0 PID: 155 Comm: kworker/u4:2 Not tainted 5.3.0-rc4-xfstests-00142-g8fde2832bd0b #1 [ 7.125548] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-20181126_142135-anatol 04/01/2014 [ 7.126565] Workqueue: writeback wb_workfn (flush-254:32) [ 7.127092] RIP: 0010:get_new_segment+0x275/0x280 [ 7.127545] Code: 0b 49 8b 7c 24 58 8d 6b 01 89 ca 0f af f5 e8 42 07 09 00 41 0f af af 68 0d 00 00 89 c7 39 c5 0f 86 20 fe ff ff e9 fc fe ff ff <0f> 0b 0f 0b 0f 1f 80 00 00 00 00 0f 1f 44 00 00 41 57 41 56 41 89 [ 7.129349] RSP: 0018:ffffae77401e35c0 EFLAGS: 00010246 [ 7.129850] RAX: 0000000000000031 RBX: 0000000000000000 RCX: 0000000000000031 [ 7.130534] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff942f740a76c0 [ 7.131216] RBP: 0000000000000001 R08: 00000000d4def660 R09: 0000000000000000 [ 7.131935] R10: 0000000000000001 R11: 0000000000000000 R12: ffff942f77a1ca80 [ 7.132614] R13: 0000000000000000 R14: 0000000000000000 R15: ffff942f7788a000 [ 7.133299] FS: 0000000000000000(0000) GS:ffff942f7d800000(0000) knlGS:0000000000000000 [ 7.134100] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 7.134651] CR2: 00005653dde81238 CR3: 00000000745f4000 CR4: 00000000003406f0 [ 7.135335] Call Trace: [ 7.135580] new_curseg+0xdc/0x160 [ 7.135917] allocate_segment_by_default+0x9a/0x100 [ 7.136357] f2fs_allocate_data_block+0x1ff/0x600 [ 7.136821] ? __write_node_page+0x4c1/0x5d0 [ 7.137239] do_write_page+0x6a/0x120 [ 7.137595] f2fs_do_write_node_page+0x3a/0xb0 [ 7.138026] __write_node_page+0x279/0x5d0 [ 7.138390] f2fs_sync_node_pages+0x614/0x6a0 [ 7.138773] ? __lock_acquire+0x447/0x7c0 [ 7.139144] block_operations+0x260/0x380 [ 7.139562] ? f2fs_write_checkpoint+0xa7/0x540 [ 7.140005] f2fs_write_checkpoint+0x101/0x540 [ 7.140434] f2fs_sync_fs+0xc8/0x1c0 [ 7.140782] f2fs_balance_fs_bg+0x18d/0x2d0 [ 7.141192] ? __lock_acquire+0x447/0x7c0 [ 7.141584] f2fs_write_node_pages+0x54/0x2f0 [ 7.142114] do_writepages+0x41/0xe0 [ 7.142580] __writeback_single_inode+0x54/0x5f0 [ 7.143159] writeback_sb_inodes+0x1fe/0x4c0 [ 7.143671] wb_writeback+0x112/0x470 [ 7.144053] wb_workfn+0xf3/0x5d0 [ 7.144425] ? process_one_work+0x1b0/0x560 [ 7.144827] process_one_work+0x233/0x560 [ 7.145220] worker_thread+0x50/0x3b0 [ 7.145573] kthread+0x108/0x140 [ 7.145890] ? process_one_work+0x560/0x560 [ 7.146290] ? __kthread_create_on_node+0x1a0/0x1a0 [ 7.146772] ret_from_fork+0x27/0x50 [ 7.147851] ---[ end trace c53970fd3fcc6658 ]--- [ 7.148321] RIP: 0010:get_new_segment+0x275/0x280 [ 7.148776] Code: 0b 49 8b 7c 24 58 8d 6b 01 89 ca 0f af f5 e8 42 07 09 00 41 0f af af 68 0d 00 00 89 c7 39 c5 0f 86 20 fe ff ff e9 fc fe ff ff <0f> 0b 0f 0b 0f 1f 80 00 00 00 00 0f 1f 44 00 00 41 57 41 56 41 89 [ 7.150587] RSP: 0018:ffffae77401e35c0 EFLAGS: 00010246 [ 7.151096] RAX: 0000000000000031 RBX: 0000000000000000 RCX: 0000000000000031 [ 7.151791] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff942f740a76c0 [ 7.152531] RBP: 0000000000000001 R08: 00000000d4def660 R09: 0000000000000000 [ 7.153218] R10: 0000000000000001 R11: 0000000000000000 R12: ffff942f77a1ca80 [ 7.153900] R13: 0000000000000000 R14: 0000000000000000 R15: ffff942f7788a000 [ 7.154578] FS: 0000000000000000(0000) GS:ffff942f7d800000(0000) knlGS:0000000000000000 [ 7.155400] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 7.155961] CR2: 00005653dde81238 CR3: 00000000745f4000 CR4: 00000000003406f0 [ 7.156623] ------------[ cut here ]------------ [ 7.157066] WARNING: CPU: 0 PID: 155 at kernel/exit.c:785 do_exit.cold+0x62/0xb9 [ 7.157802] CPU: 0 PID: 155 Comm: kworker/u4:2 Tainted: G D 5.3.0-rc4-xfstests-00142-g8fde2832bd0b #1 [ 7.158802] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-20181126_142135-anatol 04/01/2014 [ 7.159772] Workqueue: writeback wb_workfn (flush-254:32) [ 7.160330] RIP: 0010:do_exit.cold+0x62/0xb9 [ 7.160742] Code: 44 24 10 48 8b 44 24 10 e8 87 b0 a2 00 e9 81 f3 ff ff 48 c7 c7 10 41 27 a5 e8 1e 9d ff ff 48 c7 c7 50 21 26 a5 e8 81 7c 06 00 <0f> 0b e9 0b f3 ff ff 65 48 8b 04 25 c0 5d 01 00 8b 90 b0 03 00 00 [ 7.162517] RSP: 0018:ffffae77401e3ee8 EFLAGS: 00010246 [ 7.163054] RAX: 0000000000000024 RBX: ffff942f778600c0 RCX: 0000000000000006 [ 7.163734] RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffff942f7d9d6600 [ 7.164416] RBP: 000000000000000b R08: 0000000000000000 R09: 0000000000000000 [ 7.165115] R10: 0000000000000000 R11: ffffae77401e3da5 R12: 000000000000000b [ 7.165875] R13: 0000000000000006 R14: ffff942f778600c0 R15: ffffffffa46d2ef5 [ 7.166560] FS: 0000000000000000(0000) GS:ffff942f7d800000(0000) knlGS:0000000000000000 [ 7.167333] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 7.167888] CR2: 00005653dde81238 CR3: 00000000745f4000 CR4: 00000000003406f0 [ 7.168592] Call Trace: [ 7.168836] ? kthread+0x108/0x140 [ 7.169172] ? get_new_segment+0x275/0x280 [ 7.169567] rewind_stack_do_exit+0x17/0x20 [ 7.169982] irq event stamp: 221765 [ 7.170322] hardirqs last enabled at (221765): [] trace_hardirqs_on_thunk+0x1a/0x20 [ 7.171232] hardirqs last disabled at (221763): [] __do_softirq+0x2a7/0x423 [ 7.172042] softirqs last enabled at (221764): [] __do_softirq+0x321/0x423 [ 7.172857] softirqs last disabled at (217645): [] irq_exit+0x8f/0xc0 [ 7.173673] ---[ end trace c53970fd3fcc6659 ]--- [ 7.174154] BUG: sleeping function called from invalid context at include/linux/percpu-rwsem.h:38 [ 7.175010] in_atomic(): 1, irqs_disabled(): 0, pid: 155, name: kworker/u4:2 [ 7.175679] INFO: lockdep is turned off. [ 7.176106] CPU: 0 PID: 155 Comm: kworker/u4:2 Tainted: G D W 5.3.0-rc4-xfstests-00142-g8fde2832bd0b #1 [ 7.177106] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-20181126_142135-anatol 04/01/2014 [ 7.178071] Workqueue: writeback wb_workfn (flush-254:32) [ 7.178590] Call Trace: [ 7.178841] dump_stack+0x67/0x90 [ 7.179169] ___might_sleep.cold+0x9f/0xaf [ 7.179563] exit_signals+0x1c/0x300 [ 7.179911] do_exit+0xb7/0x7b0 [ 7.180217] ? kthread+0x108/0x140 [ 7.180546] ? get_new_segment+0x275/0x280 [ 7.180945] rewind_stack_do_exit+0x17/0x20 [ 7.181365] note: kworker/u4:2[155] exited with preempt_count 1 _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel