From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751457AbaIJH0t (ORCPT ); Wed, 10 Sep 2014 03:26:49 -0400 Received: from mail.kernel.org ([198.145.19.201]:45627 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751038AbaIJH0r (ORCPT ); Wed, 10 Sep 2014 03:26:47 -0400 Date: Wed, 10 Sep 2014 00:26:44 -0700 From: Jaegeuk Kim To: Tommi Rantala Cc: linux-f2fs-devel@lists.sourceforge.net, Changman Lee , LKML , trinity@vger.kernel.org, Dave Jones Subject: Re: f2fs get_dnode_of_data oops Message-ID: <20140910072644.GA12261@jaegeuk-mac02.hsd1.ca.comcast.net> References: <20140908042056.GA13863@jaegeuk-mac02.hsd1.ca.comcast.net> <20140909044157.GA24581@jaegeuk-mac02.hsd1.ca.comcast.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Tue, Sep 09, 2014 at 09:24:18PM +0300, Tommi Rantala wrote: > 2014-09-09 7:41 GMT+03:00 Jaegeuk Kim : > > Hi Tommi, > > > > This patch should resolve this bug. > > Thanks a lot. :) > > > > From ee24677b9917583f50f16b6f59771439f91b890c Mon Sep 17 00:00:00 2001 > > From: Jaegeuk Kim > > Date: Mon, 8 Sep 2014 10:59:43 -0700 > > Subject: [PATCH] f2fs: fix negative value for lseek offset > > > > Thanks, with this patch applied, I could not reproduce the lseek oops, > but now I hit the following: Hmm. Could you share a little bit more information? Is it reproducible? What are the page->index and nid_of_node(page)? Thanks, > > > [ 720.673788] ------------[ cut here ]------------ > [ 720.674011] kernel BUG at fs/f2fs/node.c:1229! > [ 720.674011] invalid opcode: 0000 [#1] SMP DEBUG_PAGEALLOC > [ 720.674011] CPU: 0 PID: 5298 Comm: trinity-c15 Not tainted 3.17.0-rc4+ #38 > [ 720.674011] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 > [ 720.674011] task: ffff88002c468000 ti: ffff88002c470000 task.ti: > ffff88002c470000 > [ 720.674011] RIP: 0010:[] [] > f2fs_write_node_page+0x171/0x290 > [ 720.674011] RSP: 0018:ffff88002c473cb0 EFLAGS: 00010206 > [ 720.674011] RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffea00006173c0 > [ 720.674011] RDX: 0000000000000001 RSI: 0000000000000001 RDI: ffffea00006173c0 > [ 720.674011] RBP: ffff88002c473cf8 R08: 0000000000000000 R09: 0000000000000000 > [ 720.674011] R10: 0000000000000001 R11: ffff8800185cf000 R12: ffffea00006173c0 > [ 720.674011] R13: ffff8800399d4520 R14: ffff88002c473e68 R15: ffff8800185cf000 > [ 720.674011] FS: 00007fb4b61d4700(0000) GS:ffff88003fa00000(0000) > knlGS:0000000000000000 > [ 720.674011] CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b > [ 720.674011] CR2: 0000000000000008 CR3: 000000002c450000 CR4: 00000000000006f0 > [ 720.674011] DR0: 0000000001ee3000 DR1: 00000000019d3000 DR2: 0000000000000000 > [ 720.674011] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600 > [ 720.674011] Stack: > [ 720.674011] ffffffff81189e75 0000041100000001 ffff880037cb10a8 > ffff88002c473cd8 > [ 720.674011] ffff880000000000 0000160000000000 ffff88002c473d58 > 0000000000000000 > [ 720.674011] 0000000000000001 ffff88002c473df0 ffffffff81778745 > 0000000000000000 > [ 720.674011] Call Trace: > [ 720.674011] [] ? trace_hardirqs_on_caller+0x185/0x220 > [ 720.674011] [] sync_node_pages+0x415/0x5f0 > [ 720.674011] [] ? SyS_tee+0x390/0x390 > [ 720.674011] [] write_checkpoint+0x21d/0xeb0 > [ 720.674011] [] ? mark_held_locks+0x90/0xa0 > [ 720.674011] [] ? mutex_lock_nested+0x435/0x4b0 > [ 720.674011] [] ? trace_hardirqs_on_caller+0x185/0x220 > [ 720.674011] [] ? SyS_tee+0x390/0x390 > [ 720.674011] [] f2fs_sync_fs+0x100/0x180 > [ 720.674011] [] sync_fs_one_sb+0x1b/0x20 > [ 720.674011] [] iterate_supers+0x7f/0xe0 > [ 720.674011] [] sys_sync+0x50/0x90 > [ 720.674011] [] system_call_fastpath+0x16/0x1b > [ 720.674011] Code: 63 00 00 48 b8 00 00 00 00 00 16 00 00 4c 01 e0 > 48 c1 f8 06 48 c1 e0 0c 49 01 c7 41 8b 9f e8 0f 00 00 89 d8 49 39 44 > 24 10 74 07 <0f> 0b 0f 1f 44 00 00 48 8d 55 c8 89 de 4c 89 ef e8 3a fb > ff ff > [ 720.674011] RIP [] f2fs_write_node_page+0x171/0x290 > [ 720.674011] RSP > [ 720.674011] ------------[ cut here ]------------ > [ 720.674011] kernel BUG at arch/x86/mm/pageattr.c:216! > [ 720.674011] invalid opcode: 0000 [#2] SMP DEBUG_PAGEALLOC > [ 720.674011] CPU: 0 PID: 5298 Comm: trinity-c15 Not tainted 3.17.0-rc4+ #38 > [ 720.674011] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 > [ 720.674011] task: ffff88002c468000 ti: ffff88002c470000 task.ti: > ffff88002c470000 > [ 720.674011] RIP: 0010:[] [] > change_page_attr_set_clr+0x250/0x430 > [ 720.674011] RSP: 0018:ffff88002c4730b8 EFLAGS: 00010046 > [ 720.674011] RAX: 0000000000000046 RBX: 0000000000000000 RCX: 0000000000000010 > [ 720.674011] RDX: 0000000000004600 RSI: 0000000000000000 RDI: 0000000080000000 > [ 720.674011] RBP: ffff88002c473148 R08: 0000000000000001 R09: ffff880000000000 > [ 720.674011] R10: ffff880034780738 R11: ffff88000e526610 R12: 0000000000000000 > [ 720.674011] R13: 0000000000000010 R14: 0000000000000004 R15: 0000000000000005 > [ 720.674011] FS: 00007fb4b61d4700(0000) GS:ffff88003fa00000(0000) > knlGS:0000000000000000 > [ 720.674011] CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b > [ 720.674011] CR2: 0000000000000008 CR3: 000000002c450000 CR4: 00000000000006f0 > [ 720.674011] DR0: 0000000001ee3000 DR1: 00000000019d3000 DR2: 0000000000000000 > [ 720.674011] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600 > [ 720.674011] Stack: > [ 720.674011] 0000000000000000 0000000000000000 0000000000000000 > ffffffff00000200 > [ 720.674011] ffff880000000001 0000000000000000 0000000000000000 > 0000000000000010 > [ 720.674011] 0000000000000000 0000000500000001 0000000000005d4d > 0000020000000000 > [ 720.674011] Call Trace: > [ 720.674011] [] _set_pages_array+0x86/0x130 > [ 720.674011] [] set_pages_array_wc+0xe/0x10 > [ 720.674011] [] ttm_set_pages_caching+0x47/0x70 > [ 720.674011] [] ttm_alloc_new_pages.isra.4+0xf3/0x190 > [ 720.674011] [] ttm_pool_populate+0x1b5/0x490 > [ 720.674011] [] cirrus_ttm_tt_populate+0x9/0x10 > [ 720.674011] [] ttm_bo_move_memcpy+0x183/0x640 > [ 720.674011] [] cirrus_bo_move+0x13/0x20 > [ 720.674011] [] ttm_bo_handle_move_mem+0x251/0x590 > [ 720.674011] [] ? ttm_bo_mem_space+0xbc/0x310 > [ 720.674011] [] ttm_bo_validate+0x1bd/0x2c0 > [ 720.674011] [] cirrus_bo_push_sysram+0x8c/0xd0 > [ 720.674011] [] > cirrus_crtc_do_set_base.isra.7.constprop.9+0x89/0x3e0 > [ 720.674011] [] cirrus_crtc_mode_set+0x481/0x4b0 > [ 720.674011] [] drm_crtc_helper_set_mode+0x299/0x530 > [ 720.674011] [] drm_crtc_helper_set_config+0x71b/0xa60 > [ 720.674011] [] drm_mode_set_config_internal+0x3d/0x100 > [ 720.674011] [] drm_fb_helper_pan_display+0x93/0xe0 > [ 720.674011] [] fb_pan_display+0x104/0x170 > [ 720.674011] [] bit_update_start+0x1b/0x50 > [ 720.674011] [] fbcon_switch+0x50a/0x530 > [ 720.674011] [] redraw_screen+0x129/0x250 > [ 720.674011] [] ? fb_blank+0x66/0xa0 > [ 720.674011] [] fbcon_blank+0x20f/0x2d0 > [ 720.674011] [] ? _raw_spin_lock_irqsave+0x7d/0x90 > [ 720.674011] [] ? trace_hardirqs_off_caller+0x1f/0xd0 > [ 720.674011] [] ? trace_hardirqs_off+0xd/0x10 > [ 720.674011] [] ? _raw_spin_unlock_irqrestore+0x3b/0x60 > [ 720.674011] [] ? mod_timer+0x221/0x2a0 > [ 720.674011] [] do_unblank_screen+0x108/0x1e0 > [ 720.674011] [] unblank_screen+0xb/0x10 > [ 720.674011] [] bust_spinlocks+0x19/0x30 > [ 720.674011] [] oops_end+0x37/0x150 > [ 720.674011] [] die+0x55/0x60 > [ 720.674011] [] do_trap+0x63/0x150 > [ 720.674011] [] do_error_trap+0xd3/0xf0 > [ 720.674011] [] ? f2fs_write_node_page+0x171/0x290 > [ 720.674011] [] ? trace_hardirqs_off_thunk+0x3a/0x3c > [ 720.674011] [] do_invalid_op+0x1b/0x20 > [ 720.674011] [] invalid_op+0x1e/0x30 > [ 720.674011] [] ? f2fs_write_node_page+0x171/0x290 > [ 720.674011] [] ? trace_hardirqs_on_caller+0x185/0x220 > [ 720.674011] [] sync_node_pages+0x415/0x5f0 > [ 720.674011] [] ? SyS_tee+0x390/0x390 > [ 720.674011] [] write_checkpoint+0x21d/0xeb0 > [ 720.674011] [] ? mark_held_locks+0x90/0xa0 > [ 720.674011] [] ? mutex_lock_nested+0x435/0x4b0 > [ 720.674011] [] ? trace_hardirqs_on_caller+0x185/0x220 > [ 720.674011] [] ? SyS_tee+0x390/0x390 > [ 720.674011] [] f2fs_sync_fs+0x100/0x180 > [ 720.674011] [] sync_fs_one_sb+0x1b/0x20 > [ 720.674011] [] iterate_supers+0x7f/0xe0 > [ 720.674011] [] sys_sync+0x50/0x90 > [ 720.674011] [] system_call_fastpath+0x16/0x1b > [ 720.674011] Code: e6 06 0f 84 f3 00 00 00 85 c9 41 0f 95 c4 81 7d > 88 ff 03 00 00 0f 9f c0 41 21 c4 41 0f b6 f4 9c 58 0f 1f 44 00 00 f6 > c4 02 75 08 <0f> 0b 66 0f 1f 44 00 00 ba 01 00 00 00 48 c7 c7 d0 f2 0a > 81 89 > [ 720.674011] RIP [] change_page_attr_set_clr+0x250/0x430 > [ 720.674011] RSP > [ 720.674011] ---[ end trace 7dd145ad962d6c6d ]---