From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752765Ab2GTOH5 (ORCPT ); Fri, 20 Jul 2012 10:07:57 -0400 Received: from mx1.redhat.com ([209.132.183.28]:43017 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751583Ab2GTOHz (ORCPT ); Fri, 20 Jul 2012 10:07:55 -0400 From: Jeff Moyer To: Eric Sandeen Cc: kernel list Subject: Re: Stack overrun in 3.5.0-rc7 w/ cfq References: <5008C388.2020803@redhat.com> X-PGP-KeyID: 1F78E1B4 X-PGP-CertKey: F6FE 280D 8293 F72C 65FD 5A58 1FF8 A7CA 1F78 E1B4 X-PCLoadLetter: What the f**k does that mean? Date: Fri, 20 Jul 2012 10:07:54 -0400 In-Reply-To: <5008C388.2020803@redhat.com> (Eric Sandeen's message of "Thu, 19 Jul 2012 21:33:44 -0500") Message-ID: User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Eric Sandeen writes: > I got this oops & stack overrun warning while running mkfs.ext4 on a sparse 4T file hosted on xfs. > > Should CFQ be issuing IO here? Yes. The on-stack plugging gets flushed when a process is scheduled out. Seriously, Eric, all of that xfs stuff in the stack trace, and you want to pick on cfq!?! For shame! Am I reading that wrong, or is there no separate IRQ stack? Or did taking the IRQ cause the stack overrun? Cheers, Jeff > > -Eric > > [10821.639839] BUG: unable to handle kernel paging request at fffffffb900148a0 > [10821.640820] IP: [] cpuacct_charge+0xb4/0x210 > [10821.640820] PGD 1c0d067 PUD 0 > [10821.640820] Thread overran stack, or stack corrupted > [10821.640820] Oops: 0000 [#1] SMP > [10821.640820] CPU 1 > [10821.640820] Modules linked in:[10821.640820] xfs sunrpc ip6table_filter ip6_tables binfmt_misc vhost_net macvtap macvlan tun iTCO_wdt iTCO_vendor_support dcdbas microcode i2c_i801 lpc_ich mfd_core tg3 shpchp i3000_edac edac_core ext3 jbd mbcache ata_generic pata_acpi pata_sil680 radeon ttm drm_kms_helper drm i2c_algo_bit i2c_core [last unloaded: scsi_wait_scan] > > [10821.640820] Pid: 2914, comm: flush-8:16 Not tainted 3.5.0-rc7+ #65 Dell Computer Corporation PowerEdge 860/0RH817 > [10821.640820] RIP: 0010:[] [] cpuacct_charge+0xb4/0x210 > [10821.640820] RSP: 0018:ffff88007d003d58 EFLAGS: 00010082 > [10821.640820] RAX: 00000000001d6fe8 RBX: 00000000000b67c5 RCX: 0000000000000003 > [10821.640820] RDX: 0000000000000001 RSI: ffffffff81c2fae0 RDI: 0000000000000046 > [10821.640820] RBP: ffff88007d003d88 R08: 0000000000000003 R09: 0000000000000001 > [10821.640820] R10: 0000000000000001 R11: 0000000000000004 R12: ffff88007b8d0000 > [10821.640820] R13: ffffffff81c60ee0 R14: ffffffff820f7d40 R15: 00000153b050614b > [10821.640820] FS: 0000000000000000(0000) GS:ffff88007d000000(0000) knlGS:0000000000000000 > [10821.640820] CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b > [10821.640820] CR2: fffffffb900148a0 CR3: 000000007a3ab000 CR4: 00000000000007e0 > [10821.640820] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 > [10821.640820] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 > [10821.640820] Process flush-8:16 (pid: 2914, threadinfo ffff88007981a000, task ffff88007b8d0000) > [10821.640820] Stack: > [10821.640820] ffffffff810a0978 000000001dcd6500 ffff88007d1d42b8 00000000000b67c5 > [10821.640820] ffff88007b8d0048 ffff88007b8d0000 ffff88007d003dc8 ffffffff810a82ef > [10821.640820] ffffffff81810920 ffff88007d1d42b8 ffff88007b8d0048 0000000000000000 > [10821.640820] Call Trace: > [10821.640820] > [10821.640820] [] ? cpuacct_charge+0x28/0x210 > [10821.640820] [] update_curr+0x13f/0x220 > [10821.640820] [] task_tick_fair+0xbd/0x140 > [10821.640820] [] scheduler_tick+0xde/0x150 > [10821.640820] [] update_process_times+0x6e/0x90 > [10821.640820] [] tick_sched_timer+0x66/0xc0 > [10821.640820] [] __run_hrtimer+0x83/0x320 > [10821.640820] [] ? tick_nohz_handler+0x100/0x100 > [10821.640820] [] hrtimer_interrupt+0x106/0x280 > [10821.640820] [] ? sched_clock_local+0x25/0x90 > [10821.640820] [] smp_apic_timer_interrupt+0x69/0x99 > [10821.640820] [] apic_timer_interrupt+0x6f/0x80 > [10821.640820] > [10821.640820] [] ? _raw_spin_unlock_irq+0x34/0x50 > [10821.640820] [] scsi_request_fn+0xc8/0x5b0 > [10821.640820] [] __blk_run_queue+0x1e/0x20 > [10821.640820] [] cfq_insert_request+0x398/0x720 > [10821.640820] [] ? cfq_insert_request+0x4c/0x720 > [10821.640820] [] ? attempt_merge+0x21/0x520 > [10821.640820] [] ? ftrace_call+0x5/0x2b > [10821.640820] [] __elv_add_request+0x220/0x2e0 > [10821.640820] [] blk_flush_plug_list+0x1a4/0x260 > [10821.640820] [] schedule+0x50/0x70 > [10821.640820] [] schedule_timeout+0x315/0x410 > [10821.640820] [] ? mark_held_locks+0x8d/0x140 > [10821.640820] [] ? _raw_spin_unlock_irq+0x30/0x50 > [10821.640820] [] ? trace_hardirqs_on_caller+0x105/0x190 > [10821.640820] [] wait_for_common+0x12b/0x180 > [10821.640820] [] ? try_to_wake_up+0x2e0/0x2e0 > [10821.640820] [] ? ftrace_call+0x5/0x2b > [10821.640820] [] ? _xfs_buf_read+0x41/0x50 [xfs] > [10821.640820] [] ? xfs_trans_read_buf+0x325/0x610 [xfs] > [10821.640820] [] wait_for_completion+0x1d/0x20 > [10821.640820] [] xfs_buf_iowait+0xc5/0x1b0 [xfs] > [10821.640820] [] _xfs_buf_read+0x41/0x50 [xfs] > [10821.640820] [] xfs_buf_read+0x113/0x170 [xfs] > [10821.640820] [] xfs_trans_read_buf+0x325/0x610 [xfs] > [10821.640820] [] xfs_btree_read_buf_block+0x5e/0xd0 [xfs] > [10821.640820] [] ? ftrace_call+0x5/0x2b > [10821.640820] [] xfs_btree_lookup_get_block+0x81/0xf0 [xfs] > [10821.640820] [] ? xfs_btree_ptr_offset+0x4c/0x90 [xfs] > [10821.640820] [] xfs_btree_lookup+0xbf/0x470 [xfs] > [10821.640820] [] ? ftrace_call+0x5/0x2b > [10821.640820] [] xfs_alloc_lookup_eq+0x19/0x20 [xfs] > [10821.640820] [] xfs_alloc_fixup_trees+0x269/0x340 [xfs] > [10821.640820] [] xfs_alloc_ag_vextent_near+0x852/0xe10 [xfs] > [10821.640820] [] xfs_alloc_ag_vextent+0xd5/0x100 [xfs] > [10821.640820] [] __xfs_alloc_vextent+0x57a/0x7b0 [xfs] > [10821.640820] [] ? lockdep_init_map+0x59/0x150 > [10821.640820] [] xfs_alloc_vextent+0x198/0x1a0 [xfs] > [10821.640820] [] xfs_bmbt_alloc_block+0xdb/0x210 [xfs] > [10821.640820] [] xfs_btree_split+0xbd/0x710 [xfs] > [10821.640820] [] ? ftrace_call+0x5/0x2b > [10821.640820] [] xfs_btree_make_block_unfull+0x12d/0x190 [xfs] > [10821.640820] [] xfs_btree_insrec+0x3ef/0x5a0 [xfs] > [10821.640820] [] ? ftrace_call+0x5/0x2b > [10821.640820] [] xfs_btree_insert+0x6d/0x190 [xfs] > [10821.640820] [] xfs_bmap_add_extent_delay_real+0x72b/0x1cf0 [xfs] > [10821.640820] [] ? kmem_cache_alloc+0x113/0x220 > [10821.640820] [] xfs_bmapi_allocate+0x238/0x2d0 [xfs] > [10821.640820] [] ? ftrace_call+0x5/0x2b > [10821.640820] [] xfs_bmapi_write+0x521/0x790 [xfs] > [10821.640820] [] xfs_iomap_write_allocate+0x13d/0x370 [xfs] > [10821.640820] [] xfs_map_blocks+0x299/0x310 [xfs] > [10821.640820] [] xfs_vm_writepage+0x197/0x5c0 [xfs] > [10821.640820] [] __writepage+0x1a/0x50 > [10821.640820] [] write_cache_pages+0x206/0x5f0 > [10821.640820] [] ? bdi_position_ratio+0x130/0x130 > [10821.640820] [] generic_writepages+0x54/0x80 > [10821.640820] [] xfs_vm_writepages+0x5c/0x80 [xfs] > [10821.640820] [] do_writepages+0x23/0x40 > [10821.640820] [] __writeback_single_inode+0x46/0x1e0 > [10821.640820] [] writeback_sb_inodes+0x27d/0x500 > [10821.640820] [] ? _raw_spin_unlock+0x2b/0x50 > [10821.640820] [] __writeback_inodes_wb+0x9e/0xd0 > [10821.640820] [] wb_writeback+0x2db/0x5c0 > [10821.640820] [] ? ftrace_call+0x5/0x2b > [10821.640820] [] wb_do_writeback+0x130/0x300 > [10821.640820] [] bdi_writeback_thread+0xc3/0x410 > [10821.640820] [] ? wb_do_writeback+0x300/0x300 > [10821.640820] [] ? wb_do_writeback+0x300/0x300 > [10821.640820] [] kthread+0xc6/0xd0 > [10821.640820] [] kernel_thread_helper+0x4/0x10 > [10821.640820] [] ? retint_restore_args+0x13/0x13 > [10821.640820] [] ? __init_kthread_worker+0x70/0x70 > [10821.640820] [] ? gs_change+0x13/0x13 > -- > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > Please read the FAQ at http://www.tux.org/lkml/