From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dave Chinner Subject: [oops, 4.4-rc8] warn + oops during generic/204 Date: Thu, 21 Jan 2016 08:31:02 +1100 Message-ID: <20160120213102.GF20456@dastard> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from sog-mx-4.v43.ch3.sourceforge.com ([172.29.43.194] helo=mx.sourceforge.net) by sfs-ml-3.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1aM0Mt-000187-55 for linux-f2fs-devel@lists.sourceforge.net; Wed, 20 Jan 2016 21:32:43 +0000 Received: from ipmail04.adl6.internode.on.net ([150.101.137.141]) by sog-mx-4.v43.ch3.sourceforge.com with esmtp (Exim 4.76) id 1aM0Mr-000664-5m for linux-f2fs-devel@lists.sourceforge.net; Wed, 20 Jan 2016 21:32:43 +0000 Received: from dave by dastard with local (Exim 4.80) (envelope-from ) id 1aM0LG-0001On-7F for linux-f2fs-devel@lists.sourceforge.net; Thu, 21 Jan 2016 08:31:02 +1100 Content-Disposition: inline List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net To: linux-f2fs-devel@lists.sourceforge.net Hi f2fs folks, I just ran xfstests on f2fs using defaults and a pair of 4GB ram disks for the test and scratch devices, and it hard locked the machine with this failure in generic/204: [ 125.141471] run fstests generic/204 at 2016-01-21 08:24:22 [ 127.582183] ------------[ cut here ]------------ [ 127.583225] WARNING: CPU: 10 PID: 1224 at fs/f2fs/segment.c:916 new_curseg+0x296/0x380() [ 127.584904] Modules linked in: [ 127.585558] CPU: 10 PID: 1224 Comm: kworker/u32:3 Not tainted 4.4.0-rc8-dgc+ #631 [ 127.587057] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Debian-1.8.2-1 04/01/2014 [ 127.589329] Workqueue: writeback wb_workfn (flush-1:1) [ 127.590966] ffffffff82251760 ffff88042a163888 ffffffff817a25b9 0000000000000000 [ 127.593762] ffff88042a1638c0 ffffffff810aa006 0000000000000002 0000000000000001 [ 127.596839] ffff8804260e1800 000000000000002d ffff880429e4a800 ffff88042a1638d0 [ 127.599825] Call Trace: [ 127.600832] [] dump_stack+0x4b/0x72 [ 127.602821] [] warn_slowpath_common+0x86/0xc0 [ 127.605184] [] warn_slowpath_null+0x1a/0x20 [ 127.607337] [] new_curseg+0x296/0x380 [ 127.608980] [] allocate_segment_by_default+0x1dd/0x1e0 [ 127.611439] [] allocate_data_block+0x15d/0x2e0 [ 127.613590] [] do_write_page+0x1bd/0x280 [ 127.615503] [] write_node_page+0x23/0x30 [ 127.617443] [] f2fs_write_node_page+0x125/0x240 [ 127.619483] [] sync_node_pages+0x401/0x600 [ 127.621388] [] f2fs_write_node_pages+0x108/0x130 [ 127.623451] [] do_writepages+0x21/0x30 [ 127.625205] [] __writeback_single_inode+0x45/0x330 [ 127.627304] [] writeback_sb_inodes+0x25b/0x4d0 [ 127.629214] [] wb_writeback+0xf8/0x2d0 [ 127.630862] [] wb_workfn+0xfe/0x3b0 [ 127.632464] [] ? _raw_spin_unlock_irq+0xe/0x30 [ 127.634289] [] ? finish_task_switch+0x8b/0x220 [ 127.636069] [] process_one_work+0x14e/0x410 [ 127.637877] [] worker_thread+0x4e/0x460 [ 127.639569] [] ? rescuer_thread+0x300/0x300 [ 127.641284] [] ? rescuer_thread+0x300/0x300 [ 127.642925] [] kthread+0xe6/0x100 [ 127.644325] [] ? kthread_create_on_node+0x190/0x190 [ 127.646032] [] ret_from_fork+0x3f/0x70 [ 127.647504] [] ? kthread_create_on_node+0x190/0x190 [ 127.649285] ---[ end trace 2107b831b703fa3a ]--- [ 127.650532] ------------[ cut here ]------------ [ 127.651780] WARNING: CPU: 10 PID: 1224 at fs/f2fs/segment.c:955 new_curseg+0x358/0x380() [ 127.653918] Modules linked in: [ 127.654752] CPU: 10 PID: 1224 Comm: kworker/u32:3 Tainted: G W 4.4.0-rc8-dgc+ #631 [ 127.657046] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Debian-1.8.2-1 04/01/2014 [ 127.659372] Workqueue: writeback wb_workfn (flush-1:1) [ 127.660791] ffffffff82251760 ffff88042a163888 ffffffff817a25b9 0000000000000000 [ 127.662825] ffff88042a1638c0 ffffffff810aa006 000000000000002d 0000000000000001 [ 127.664791] ffff8804260e1800 ffff880429e4a800 ffff8804260e1800 ffff88042a1638d0 [ 127.666679] Call Trace: [ 127.667287] [] dump_stack+0x4b/0x72 [ 127.668562] [] warn_slowpath_common+0x86/0xc0 [ 127.670025] [] warn_slowpath_null+0x1a/0x20 [ 127.671455] [] new_curseg+0x358/0x380 [ 127.672761] [] allocate_segment_by_default+0x1dd/0x1e0 [ 127.674397] [] allocate_data_block+0x15d/0x2e0 [ 127.675918] [] do_write_page+0x1bd/0x280 [ 127.677254] [] write_node_page+0x23/0x30 [ 127.678510] [] f2fs_write_node_page+0x125/0x240 [ 127.679930] [] sync_node_pages+0x401/0x600 [ 127.681264] [] f2fs_write_node_pages+0x108/0x130 [ 127.682729] [] do_writepages+0x21/0x30 [ 127.684009] [] __writeback_single_inode+0x45/0x330 [ 127.685532] [] writeback_sb_inodes+0x25b/0x4d0 [ 127.686913] [] wb_writeback+0xf8/0x2d0 [ 127.688223] [] wb_workfn+0xfe/0x3b0 [ 127.689370] [] ? _raw_spin_unlock_irq+0xe/0x30 [ 127.690696] [] ? finish_task_switch+0x8b/0x220 [ 127.692054] [] process_one_work+0x14e/0x410 [ 127.693361] [] worker_thread+0x4e/0x460 [ 127.694569] [] ? rescuer_thread+0x300/0x300 [ 127.695905] [] ? rescuer_thread+0x300/0x300 [ 127.697110] [] kthread+0xe6/0x100 [ 127.698083] [] ? kthread_create_on_node+0x190/0x190 [ 127.699388] [] ret_from_fork+0x3f/0x70 [ 127.700484] [] ? kthread_create_on_node+0x190/0x190 [ 127.701743] ---[ end trace 2107b831b703fa3b ]--- [ 127.702644] BUG: unable to handle kernel NULL pointer dereference at (null) [ 127.704234] IP: [] update_sit_entry+0xe8/0x270 [ 127.705434] PGD 0 [ 127.705859] Oops: 0000 [#1] PREEMPT SMP [ 127.706687] Modules linked in: [ 127.707323] CPU: 10 PID: 1224 Comm: kworker/u32:3 Tainted: G W 4.4.0-rc8-dgc+ #631 [ 127.709037] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Debian-1.8.2-1 04/01/2014 [ 127.710743] Workqueue: writeback wb_workfn (flush-1:1) [ 127.711798] task: ffff88042a144580 ti: ffff88042a160000 task.ti: ffff88042a160000 [ 127.713260] RIP: 0010:[] [] update_sit_entry+0xe8/0x270 [ 127.714921] RSP: 0018:ffff88042a163908 EFLAGS: 00010202 [ 127.715952] RAX: 0000000000000000 RBX: ffff8804260e1800 RCX: 0000000000000007 [ 127.717389] RDX: ffff8800ba868540 RSI: 0000000000000000 RDI: 0000000000000001 [ 127.718768] RBP: ffff88042a163948 R08: ffff88042a163a19 R09: ffff880429e4a800 [ 127.720157] R10: 0000000000000000 R11: ffff8800ba8680c0 R12: ffff8800bb1849d8 [ 127.721530] R13: 0000000000000080 R14: 0000000000000001 R15: 000000000000002d [ 127.722902] FS: 0000000000000000(0000) GS:ffff88043fd40000(0000) knlGS:0000000000000000 [ 127.724469] CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b [ 127.725579] CR2: 0000000000000000 CR3: 0000000002371000 CR4: 00000000000006e0 [ 127.726961] Stack: [ 127.727376] 0000002dbb00f980 ffff8800ba868540 0000000000000000 ffff8804260e1800 [ 127.728892] 0000000000006a00 0000000000003e40 ffff8800bb00f980 0000000000000004 [ 127.730411] ffff88042a163970 ffffffff816edd94 0000000000000180 ffff8804260e1800 [ 127.731918] Call Trace: [ 127.732403] [] refresh_sit_entry+0x24/0xc0 [ 127.733539] [] allocate_data_block+0x16e/0x2e0 [ 127.734724] [] do_write_page+0x1bd/0x280 [ 127.735810] [] write_node_page+0x23/0x30 [ 127.736898] [] f2fs_write_node_page+0x125/0x240 [ 127.738103] [] sync_node_pages+0x401/0x600 [ 127.739241] [] f2fs_write_node_pages+0x108/0x130 [ 127.740462] [] do_writepages+0x21/0x30 [ 127.741520] [] __writeback_single_inode+0x45/0x330 [ 127.742787] [] writeback_sb_inodes+0x25b/0x4d0 [ 127.743977] [] wb_writeback+0xf8/0x2d0 [ 127.745063] [] wb_workfn+0xfe/0x3b0 [ 127.746070] [] ? _raw_spin_unlock_irq+0xe/0x30 [ 127.747245] [] ? finish_task_switch+0x8b/0x220 [ 127.748469] [] process_one_work+0x14e/0x410 [ 127.749472] [] worker_thread+0x4e/0x460 [ 127.750419] [] ? rescuer_thread+0x300/0x300 [ 127.751429] [] ? rescuer_thread+0x300/0x300 [ 127.752464] [] kthread+0xe6/0x100 [ 127.753324] [] ? kthread_create_on_node+0x190/0x190 [ 127.754449] [] ret_from_fork+0x3f/0x70 [ 127.755384] [] ? kthread_create_on_node+0x190/0x190 [ 127.756513] Code: 44 24 30 48 8b 53 38 48 8b 12 48 89 82 a8 00 00 00 44 89 e8 41 bd 01 00 00 00 c1 e8 03 41 d3 e5 48 89 c6 49 03 74 24 08 45 85 f6 <0f> be 16 0f 8e [ 127.760859] RIP [] update_sit_entry+0xe8/0x270 [ 127.761929] RSP [ 127.762537] CR2: 0000000000000000 [ 127.763118] ---[ end trace 2107b831b703fa3c ]--- It's completely repeatable. Cheers, Dave. -- Dave Chinner david@fromorbit.com ------------------------------------------------------------------------------ Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140