mmotm 2010-11-09-15-31 uploaded
Subsystems (2)
[email protected]
maintainerThe mm-of-the-moment snapshot 2010-11-09-15-31 has been uploaded to
http://userweb.kernel.org/~akpm/mmotm/
and will soon be available at
git://zen-kernel.org/kernel/mmotm.git
It contains the following patches against 2.6.37-rc1:
origin.patch
hpet-factor-timer-allocate-from-open.patch
um-fix-ptrace-build-error.patch
include-linux-fsh-needs-typesh.patch drivers-macintosh-adb-iopc-flags-should-be-unsigned-long.patch rapidio-use-resource_size.patch scripts-kernel-doc-escape-special-characters-for-xml-struct-output.patch include-linux-resourceh-needs-typesh.patch
atomic-add-atomic_inc_not_zero_hint.patch atomic-add-atomic_inc_not_zero_hint-checkpatch-fixes.patch
linux-next.patch
next-remove-localversion.patch arch-x86-kernel-entry_64s-fix-build-with-gas-2161.patch arch-x86-kernel-entry_32s-i386-too.patch
i-need-old-gcc.patch
arch-alpha-kernel-systblss-remove-debug-check.patch drivers-misc-isl29020c-fix-signedness-bug.patch drivers-misc-isl29020c-dont-ignore-the-i2c_smbus_read_byte_data-return-value.patch drivers-misc-apds9802alsc-fix-signedness-bug.patch memcg-null-dereference-on-allocation-failure.patch drivers-misc-bh1770glcc-error-handling-in-bh1770_power_state_store.patch fuse-clear-attribute-cache-for-openo_trunc.patch kernel-range-fix-clean_sort_range-for-the-case-of-full-array.patch mm-vfs-revalidate-page-mapping-in-do_generic_file_read.patch latencytop-fix-per-task-accumulator.patch
mm-vmap-area-cache.patch arch-arm-plat-omap-iovmmc-fix-end-address-of-vm-area-comparation-in-alloc_iovm_area.patch backlight-fix-88pm860x_bl-macro-collision.patch cciss-fix-botched-tag-masking-for-scsi-tape-commands.patch ibm_rtl-fix-printk-format-warning.patch arch-x86-kernel-apic-io_apicc-fix-warning.patch fs-btrfs-inodec-eliminate-memory-leak.patch btrfs-dont-dereference-extent_mapping-if-null.patch cpufreq-fix-ondemand-governor-powersave_bias-execution-time-misuse.patch drivers-dma-use-the-ccflag-y-instead-of-extra_cflags.patch drivers-dma-ioat-use-the-ccflag-y-instead-of-extra_cflags.patch powerpc-enable-arch_dma_addr_t_64bit-with-arch_phys_addr_t_64bit.patch debugfs-remove-module_exit.patch
drivers-gpu-drm-radeon-atomc-fix-warning.patch drivers-media-video-gspca-cpia1c-fix-error-check.patch ecryptfs-fix-truncation-error-in-ecryptfs_read_update_atime.patch irq-use-per_cpu-kstat_irqs.patch
irq-use-per_cpu-kstat_irqs-checkpatch-fixes.patch leds-route-kbd-leds-through-the-generic-leds-layer.patch led-class-always-implement-blinking.patch leds-driver-for-national-semiconductor-lp5521-chip.patch leds-driver-for-national-semiconductors-lp5523-chip.patch leds-update-lp552x-support-kconfig-and-makefile.patch documentation-led-drivers-lp5521-and-lp5523.patch leds-add-led-trigger-for-input-subsystem-led-events.patch gpio-led-properly-initialize-return-value.patch mips-enable-arch_dma_addr_t_64bit-with-highmem-64bit_phys_addr-64bit.patch isdn-capi-unregister-capictr-notifier-after-init-failure.patch isdn-capi-make-kcapi-use-a-separate-workqueue.patch
net-avoid-limits-overflow.patch drivers-video-backlight-s6e63m0c-set-permissions-on-gamma_table-file-to-0444.patch backlight-fix-blanking-for-lms283gf05-lcd.patch backlight-fix-blanking-for-l4f00242t03-lcd.patch backlight-s6e63m0-unregister-backlight-device-and-remove-sysfs-attribute-file-in-s6e63m0_remove.patch backlight-s6e63m0-fix-section-mismatch.patch backlight-add-low-threshold-to-pwm-backlight.patch video-backlight-adp8860-fix-ambient-light-zone-overwrite-handling.patch drivers-video-backlight-adp8860_blc-check-strict_strtoul-return-value.patch btusb-patch-add_apple_macbookpro62.patch drivers-char-amiserialc-remove-unused-variable-icount.patch atmel_serial-fix-rts-high-after-initialization-in-rs485-mode.patch atmel_serial-fix-rts-high-after-initialization-in-rs485-mode-fix.patch drivers-message-fusion-mptsasc-fix-warning.patch hpsa-remove-incorrect-redefinition-of-pci_device_id_hp_cissf.patch drivers-block-makefile-replace-the-use-of-module-objs-with-module-y.patch drivers-block-aoe-makefile-replace-the-use-of-module-objs-with-module-y.patch vfs-remove-a-warning-on-open_fmode.patch
vfs-add-__fmode_exec.patch
n_hdlc-fix-read-and-write-locking.patch n_hdlc-fix-read-and-write-locking-update.patch
mm.patch
mm-smaps-export-mlock-information.patch mm-page-allocator-adjust-the-per-cpu-counter-threshold-when-memory-is-low.patch mm-vmstat-use-a-single-setter-function-and-callback-for-adjusting-percpu-thresholds.patch mm-vmstat-use-a-single-setter-function-and-callback-for-adjusting-percpu-thresholds-fix.patch mm-mempolicyc-add-rcu-read-lock-to-protect-pid-structure.patch mm-convert-sprintf_symbol-to-%ps.patch writeback-integrated-background-writeback-work.patch writeback-trace-wakeup-event-for-background-writeback.patch writeback-stop-background-kupdate-works-from-livelocking-other-works.patch writeback-avoid-livelocking-wb_sync_all-writeback.patch writeback-check-skipped-pages-on-wb_sync_all.patch sync_inode_metadata-fix-comment.patch
define-madv_hugepage.patch
frv-duplicate-output_buffer-of-e03.patch frv-duplicate-output_buffer-of-e03-checkpatch-fixes.patch add-the-common-dma_addr_t-typedef-to-include-linux-typesh.patch scripts-get_maintainerpl-make-rolestats-the-default.patch scripts-get_maintainerpl-use-git-fallback-more-often.patch maintainers-intel-gfx-is-a-subscribers-only-mailing-list.patch percpucounter-optimize-__percpu_counter_add-a-bit-through-the-use-of-this_cpu-operations.patch drivers-mmc-host-omapc-use-resource_size.patch drivers-mmc-host-omap_hsmmcc-use-resource_size.patch epoll-convert-max_user_watches-to-long.patch
binfmt_elf-cleanups.patch
rtc-add-real-time-clock-driver-for-nvidia-tegra.patch cyber2000fb-avoid-palette-corruption-at-higher-clocks.patch jbd-remove-dependency-on-__gfp_nofail.patch memcg-add-page_cgroup-flags-for-dirty-page-tracking.patch memcg-document-cgroup-dirty-memory-interfaces.patch memcg-document-cgroup-dirty-memory-interfaces-fix.patch memcg-create-extensible-page-stat-update-routines.patch memcg-add-lock-to-synchronize-page-accounting-and-migration.patch writeback-create-dirty_info-structure.patch memcg-add-dirty-page-accounting-infrastructure.patch memcg-add-kernel-calls-for-memcg-dirty-page-stats.patch memcg-add-dirty-limits-to-mem_cgroup.patch memcg-add-dirty-limits-to-mem_cgroup-use-native-word-to-represent-dirtyable-pages.patch memcg-add-dirty-limits-to-mem_cgroup-catch-negative-per-cpu-sums-in-dirty-info.patch memcg-add-dirty-limits-to-mem_cgroup-avoid-overflow-in-memcg_hierarchical_free_pages.patch memcg-add-dirty-limits-to-mem_cgroup-correct-memcg_hierarchical_free_pages-return-type.patch memcg-add-dirty-limits-to-mem_cgroup-avoid-free-overflow-in-memcg_hierarchical_free_pages.patch memcg-cpu-hotplug-lockdep-warning-fix.patch memcg-add-cgroupfs-interface-to-memcg-dirty-limits.patch memcg-break-out-event-counters-from-other-stats.patch memcg-check-memcg-dirty-limits-in-page-writeback.patch memcg-use-native-word-page-statistics-counters.patch memcg-use-native-word-page-statistics-counters-fix.patch memcg-add-mem_cgroup-parameter-to-mem_cgroup_page_stat.patch memcg-pass-mem_cgroup-to-mem_cgroup_dirty_info.patch memcg-make-throttle_vm_writeout-memcg-aware.patch memcg-make-throttle_vm_writeout-memcg-aware-fix.patch memcg-simplify-mem_cgroup_page_stat.patch
memcg-simplify-mem_cgroup_dirty_info.patch memcg-make-mem_cgroup_page_stat-return-value-unsigned.patch memcg-use-zalloc-rather-than-mallocmemset.patch fs-proc-basec-kernel-latencytopc-convert-sprintf_symbol-to-%ps.patch fs-proc-basec-kernel-latencytopc-convert-sprintf_symbol-to-%ps-checkpatch-fixes.patch drivers-char-nozomic-fix-unused-variable-compiler-warning.patch rapidio-use-common-destid-storage-for-endpoints-and-switches.patch rapidio-integrate-rio_switch-into-rio_dev.patch fs-execc-provide-the-correct-process-pid-to-the-pipe-helper.patch nfc-driver-for-nxp-semiconductors-pn544-nfc-chip.patch nfc-driver-for-nxp-semiconductors-pn544-nfc-chip-update.patch remove-dma64_addr_t.patch
pps-trivial-fixes.patch
pps-declare-variables-where-they-are-used-in-switch.patch pps-fix-race-in-pps_fetch-handler.patch
pps-unify-timestamp-gathering.patch
pps-access-pps-device-by-direct-pointer.patch
pps-convert-printk-pr_-to-dev_.patch
pps-move-idr-stuff-to-ppsc.patch
pps-add-async-pps-event-handler.patch
pps-add-async-pps-event-handler-fix.patch pps-dont-disable-interrupts-when-using-spin-locks.patch pps-use-bug_on-for-kernel-api-safety-checks.patch
pps-simplify-conditions-a-bit.patch
ntp-add-hardpps-implementation.patch pps-capture-monotonic_raw-timestamps-as-well.patch pps-add-kernel-consumer-support.patch
pps-add-parallel-port-pps-client.patch pps-add-parallel-port-pps-signal-generator.patch
memstick-a-few-changes-to-core.patch memstick-add-support-for-legacy-memorysticks.patch memstick-add-driver-for-ricoh-r5c592-card-reader.patch memstick-add-driver-for-ricoh-r5c592-card-reader-fix.patch memstick-core-fix-device_register-error-handling.patch w1-ds2423-counter-driver-and-documentation.patch make-sure-nobodys-leaking-resources.patch
journal_add_journal_head-debug.patch
releasing-resources-with-children.patch
make-frame_pointer-default=y.patch
mutex-subsystem-synchro-test-module.patch mutex-subsystem-synchro-test-module-add-missing-header-file.patch slab-leaks3-default-y.patch
put_bh-debug.patch
add-debugging-aid-for-memory-initialisation-problems.patch workaround-for-a-pci-restoring-bug.patch
prio_tree-debugging-patch.patch
single_open-seq_release-leak-diagnostics.patch
add-a-refcount-check-in-dput.patch
getblk-handle-2tb-devices.patch memblock-add-input-size-checking-to-memblock_find_region.patch memblock-add-input-size-checking-to-memblock_find_region-fix.patch
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom policy in Canada: sign http://dissolvethecrtc.ca/
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Re: mmotm 2010-11-09-15-31 uploaded (sound/soc/soc-core.c)
Quoted 9 lines · On Tue, 09 Nov 2010 15:31:15 -0800 [email protected] wrote:
The mm-of-the-moment snapshot 2010-11-09-15-31 has been uploaded to
http://userweb.kernel.org/~akpm/mmotm/
and will soon be available at
git://zen-kernel.org/kernel/mmotm.gitIt contains the following patches against 2.6.37-rc1:
sound/soc/soc-core.c:1689: error: implicit declaration of function 'soc_init_card_debugfs' sound/soc/soc-core.c:1718: error: implicit declaration of function 'soc_cleanup_card_debugfs'
kernel config file is attached.
---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***
mmotm 2010-11-09 - lockdep splat in ext4/quota code
In reply to [email protected]Quoted 3 lines · On Tue, 09 Nov 2010 15:31:15 PST, [email protected] said:
The mm-of-the-moment snapshot 2010-11-09-15-31 has been uploaded to
Still seeing this just after quotas get turned on ext4. First seen in 2.6.36-mmotm1022, but problem has apparently been there since 2.6.36-rc5-mmotm0922 (oldest kernel I have lying around).
The last few relevant commands from rc.sysinit:
/sbin/quotaon -aug
dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=512 <- this triggers the trace
[ 48.967833] =======================================================
[ 48.968162] [ INFO: possible circular locking dependency detected ]
[ 48.968411] 2.6.37-rc1-mmotm1109 #1
[ 48.968553] -------------------------------------------------------
[ 48.968592] dd/3253 is trying to acquire lock:
[ 48.968592] (&s->s_dquot.dqio_mutex){+.+...}, at: [<ffffffff81141b0a>] dquot_commit+0x26/0xda
[ 48.968592]
[ 48.968592] but task is already holding lock:
[ 48.968592] (&s->s_dquot.dqptr_sem){++++..}, at: [<ffffffff81143e70>] __dquot_free_space+0x66/0x16b
[ 48.968592]
[ 48.968592] which lock already depends on the new lock.
[ 48.968592]
[ 48.968592]
[ 48.968592] the existing dependency chain (in reverse order) is:
[ 48.968592]
[ 48.968592] -> #2 (&s->s_dquot.dqptr_sem){++++..}:
[ 48.968592] [<ffffffff8106b441>] lock_acquire+0x100/0x126
[ 48.968592] [<ffffffff81565615>] down_read+0x42/0x51
[ 48.968592] [<ffffffff81143e70>] __dquot_free_space+0x66/0x16b
[ 48.968592] [<ffffffff81199a70>] dquot_free_block+0x19/0x2a
[ 48.968592] [<ffffffff8119fc4f>] ext4_free_blocks+0x75b/0x810
[ 48.968592] [<ffffffff81196f0f>] ext4_ext_truncate+0x3af/0x853
[ 48.968592] [<ffffffff8117a02e>] ext4_truncate+0x98/0x51a
[ 48.968592] [<ffffffff810c46a4>] vmtruncate+0x3f/0x4b
[ 48.968592] [<ffffffff8117af55>] ext4_setattr+0x305/0x3a7
[ 48.968592] [<ffffffff8110c6d9>] notify_change+0x1a1/0x2a1
[ 48.968592] [<ffffffff810f49fa>] do_truncate+0x67/0x84
[ 48.968592] [<ffffffff811029f5>] do_last+0x4ce/0x5b2
[ 48.968592] [<ffffffff81102d21>] do_filp_open+0x248/0x64a
[ 48.968592] [<ffffffff810f5481>] do_sys_open+0x60/0xfb
[ 48.968592] [<ffffffff810f5537>] sys_open+0x1b/0x1d
[ 48.968592] [<ffffffff810027eb>] system_call_fastpath+0x16/0x1b
[ 48.968592]
[ 48.968592] -> #1 (&ei->i_data_sem){++++..}:
[ 48.968592] [<ffffffff8106b441>] lock_acquire+0x100/0x126
[ 48.968592] [<ffffffff81565615>] down_read+0x42/0x51
[ 48.968592] [<ffffffff81179383>] ext4_map_blocks+0x3e/0x20e
[ 48.968592] [<ffffffff81179e0b>] ext4_getblk+0x71/0x19b
[ 48.968592] [<ffffffff81179f46>] ext4_bread+0x11/0x61
[ 48.968592] [<ffffffff8118b297>] ext4_quota_read+0x86/0xf0
[ 48.968592] [<ffffffff81145131>] v2_read_header+0x1e/0x4f
[ 48.968592] [<ffffffff811455de>] v2_read_file_info+0x20/0x2ae
[ 48.968592] [<ffffffff81144423>] vfs_load_quota_inode+0x292/0x448
[ 48.968592] [<ffffffff8114480e>] dquot_quota_on_path+0x4c/0x55
[ 48.968592] [<ffffffff8118bc97>] ext4_quota_on+0x123/0x175
[ 48.968592] [<ffffffff81146cf2>] do_quotactl+0x1d1/0x465
[ 48.968592] [<ffffffff81147083>] sys_quotactl+0xfd/0x11a
[ 48.968592] [<ffffffff810027eb>] system_call_fastpath+0x16/0x1b
[ 48.968592]
[ 48.968592] -> #0 (&s->s_dquot.dqio_mutex){+.+...}:
[ 48.968592] [<ffffffff8106ac2d>] __lock_acquire+0xa4c/0xd4e
[ 48.968592] [<ffffffff8106b441>] lock_acquire+0x100/0x126
[ 48.968592] [<ffffffff81564bbf>] __mutex_lock_common+0x5d/0x56c
[ 48.968592] [<ffffffff81565174>] mutex_lock_nested+0x34/0x39
[ 48.968592] [<ffffffff81141b0a>] dquot_commit+0x26/0xda
[ 48.968592] [<ffffffff8118d622>] ext4_write_dquot+0x65/0x87
[ 48.968592] [<ffffffff8118d682>] ext4_mark_dquot_dirty+0x3e/0x49
[ 48.968592] [<ffffffff81141790>] mark_all_dquot_dirty+0x22/0x48
[ 48.968592] [<ffffffff81143f43>] __dquot_free_space+0x139/0x16b
[ 48.968592] [<ffffffff81199a70>] dquot_free_block+0x19/0x2a
[ 48.968592] [<ffffffff8119fc4f>] ext4_free_blocks+0x75b/0x810
[ 48.968592] [<ffffffff81196f0f>] ext4_ext_truncate+0x3af/0x853
[ 48.968592] [<ffffffff8117a02e>] ext4_truncate+0x98/0x51a
[ 48.968592] [<ffffffff810c46a4>] vmtruncate+0x3f/0x4b
[ 48.968592] [<ffffffff8117af55>] ext4_setattr+0x305/0x3a7
[ 48.968592] [<ffffffff8110c6d9>] notify_change+0x1a1/0x2a1
[ 48.968592] [<ffffffff810f49fa>] do_truncate+0x67/0x84
[ 48.968592] [<ffffffff811029f5>] do_last+0x4ce/0x5b2
[ 48.968592] [<ffffffff81102d21>] do_filp_open+0x248/0x64a
[ 48.968592] [<ffffffff810f5481>] do_sys_open+0x60/0xfb
[ 48.968592] [<ffffffff810f5537>] sys_open+0x1b/0x1d
[ 48.968592] [<ffffffff810027eb>] system_call_fastpath+0x16/0x1b
[ 48.968592]
[ 48.968592] other info that might help us debug this:
[ 48.968592]
[ 49.458584] 5 locks held by dd/3253:
[ 49.458584] #0: (&sb->s_type->i_mutex_key#13){+.+.+.}, at: [<ffffffff810f49ee>] do_truncate+0x5b/0x84
[ 49.458584] #1: (&sb->s_type->i_alloc_sem_key#5){+.+...}, at: [<ffffffff8110c6c1>] notify_change+0x189/0x2a1
[ 49.458584] #2: (jbd2_handle){+.+...}, at: [<ffffffff811ad5b4>] start_this_handle+0x57a/0x605
[ 49.458584] #3: (&ei->i_data_sem){++++..}, at: [<ffffffff81196bf1>] ext4_ext_truncate+0x91/0x853
[ 49.458584] #4: (&s->s_dquot.dqptr_sem){++++..}, at: [<ffffffff81143e70>] __dquot_free_space+0x66/0x16b
[ 49.458584]
[ 49.458584] stack backtrace:
[ 49.458584] Pid: 3253, comm: dd Not tainted 2.6.37-rc1-mmotm1109 #1
[ 49.458584] Call Trace:
[ 49.458584] [<ffffffff81069591>] print_circular_bug+0xa8/0xb7
[ 49.458584] [<ffffffff8106ac2d>] __lock_acquire+0xa4c/0xd4e
[ 49.458584] [<ffffffff81141b0a>] ? dquot_commit+0x26/0xda
[ 49.458584] [<ffffffff8106b441>] lock_acquire+0x100/0x126
[ 49.458584] [<ffffffff81141b0a>] ? dquot_commit+0x26/0xda
[ 49.458584] [<ffffffff81564bbf>] __mutex_lock_common+0x5d/0x56c
[ 49.458584] [<ffffffff81141b0a>] ? dquot_commit+0x26/0xda
[ 49.458584] [<ffffffff81141ef2>] ? dquot_mark_dquot_dirty+0x27/0x7a
[ 49.458584] [<ffffffff81141b0a>] ? dquot_commit+0x26/0xda
[ 49.458584] [<ffffffff81565174>] mutex_lock_nested+0x34/0x39
[ 49.458584] [<ffffffff81141b0a>] dquot_commit+0x26/0xda
[ 49.458584] [<ffffffff8118d622>] ext4_write_dquot+0x65/0x87
[ 49.458584] [<ffffffff8118d682>] ext4_mark_dquot_dirty+0x3e/0x49
[ 49.458584] [<ffffffff81141790>] mark_all_dquot_dirty+0x22/0x48
[ 49.458584] [<ffffffff81143f43>] __dquot_free_space+0x139/0x16b
[ 49.458584] [<ffffffff81199a70>] dquot_free_block+0x19/0x2a
[ 49.458584] [<ffffffff8119fc4f>] ext4_free_blocks+0x75b/0x810
[ 49.458584] [<ffffffff811ada1d>] ? jbd2_journal_extend+0x5d/0xb8
[ 49.458584] [<ffffffff81196f0f>] ext4_ext_truncate+0x3af/0x853
[ 49.458584] [<ffffffff810a5759>] ? trace_preempt_on+0x15/0x28
[ 49.458584] [<ffffffff810d63f6>] ? unmap_mapping_range+0x279/0x288
[ 49.458584] [<ffffffff8117a02e>] ext4_truncate+0x98/0x51a
[ 49.458584] [<ffffffff810d63f6>] ? unmap_mapping_range+0x279/0x288
[ 49.458584] [<ffffffff8106b861>] ? trace_hardirqs_on_caller+0x117/0x13b
[ 49.458584] [<ffffffff8106b892>] ? trace_hardirqs_on+0xd/0xf
[ 49.458584] [<ffffffff810c46a4>] vmtruncate+0x3f/0x4b
[ 49.458584] [<ffffffff8117af55>] ext4_setattr+0x305/0x3a7
[ 49.458584] [<ffffffff8110c6d9>] notify_change+0x1a1/0x2a1
[ 49.458584] [<ffffffff810f49fa>] do_truncate+0x67/0x84
[ 49.458584] [<ffffffff810ff92d>] ? get_write_access+0x49/0x50
[ 49.458584] [<ffffffff81566794>] ? _raw_spin_unlock+0x30/0x69
[ 49.458584] [<ffffffff8156a040>] ? sub_preempt_count+0x35/0x48
[ 49.458584] [<ffffffff811e0833>] ? security_path_truncate+0x48/0x4d
[ 49.458584] [<ffffffff811029f5>] do_last+0x4ce/0x5b2
[ 49.458584] [<ffffffff81102d21>] do_filp_open+0x248/0x64a
[ 49.458584] [<ffffffff810a5759>] ? trace_preempt_on+0x15/0x28
[ 49.458584] [<ffffffff8110d8ce>] ? alloc_fd+0x17c/0x18e
[ 49.458584] [<ffffffff81566794>] ? _raw_spin_unlock+0x30/0x69
[ 49.458584] [<ffffffff8156a040>] ? sub_preempt_count+0x35/0x48
[ 49.458584] [<ffffffff8110d8ce>] ? alloc_fd+0x17c/0x18e
[ 49.458584] [<ffffffff810f5481>] do_sys_open+0x60/0xfb
[ 49.458584] [<ffffffff81565fde>] ? trace_hardirqs_on_thunk+0x3a/0x3f
[ 49.458584] [<ffffffff810f5537>] sys_open+0x1b/0x1d
[ 49.458584] [<ffffffff810027eb>] system_call_fastpath+0x16/0x1bJan Kara
reviewerRe: mmotm 2010-11-09 - lockdep splat in ext4/quota code
Quoted 8 lines · On Thu 11-11-10 14:25:41, [email protected] wrote:
Quoted 3 lines · On Tue, 09 Nov 2010 15:31:15 PST, [email protected] said:
The mm-of-the-moment snapshot 2010-11-09-15-31 has been uploaded to
Still seeing this just after quotas get turned on ext4. First seen in 2.6.36-mmotm1022, but problem has apparently been there since 2.6.36-rc5-mmotm0922 (oldest kernel I have lying around).
Thanks for the report. In fact, it is a false positive caused by the fact
that EXT4(inode)->i_data_sem for quota file inode would need a special locking class (or subclass) but does not have one. I'll have a look into implementing that sometime next week hopefully.
Honza
Quoted 136 lines
The last few relevant commands from rc.sysinit:
/sbin/quotaon-aug
dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=512 <- this triggers the trace[ 48.967833] ======================================================= [ 48.968162] [ INFO: possible circular locking dependency detected ] [ 48.968411] 2.6.37-rc1-mmotm1109 #1 [ 48.968553] ------------------------------------------------------- [ 48.968592] dd/3253 is trying to acquire lock: [ 48.968592] (&s->s_dquot.dqio_mutex){+.+...}, at: [<ffffffff81141b0a>] dquot_commit+0x26/0xda [ 48.968592] [ 48.968592] but task is already holding lock: [ 48.968592] (&s->s_dquot.dqptr_sem){++++..}, at: [<ffffffff81143e70>] __dquot_free_space+0x66/0x16b [ 48.968592] [ 48.968592] which lock already depends on the new lock. [ 48.968592] [ 48.968592] [ 48.968592] the existing dependency chain (in reverse order) is: [ 48.968592] [ 48.968592] -> #2 (&s->s_dquot.dqptr_sem){++++..}: [ 48.968592] [<ffffffff8106b441>] lock_acquire+0x100/0x126 [ 48.968592] [<ffffffff81565615>] down_read+0x42/0x51 [ 48.968592] [<ffffffff81143e70>] __dquot_free_space+0x66/0x16b [ 48.968592] [<ffffffff81199a70>] dquot_free_block+0x19/0x2a [ 48.968592] [<ffffffff8119fc4f>] ext4_free_blocks+0x75b/0x810 [ 48.968592] [<ffffffff81196f0f>] ext4_ext_truncate+0x3af/0x853 [ 48.968592] [<ffffffff8117a02e>] ext4_truncate+0x98/0x51a [ 48.968592] [<ffffffff810c46a4>] vmtruncate+0x3f/0x4b [ 48.968592] [<ffffffff8117af55>] ext4_setattr+0x305/0x3a7 [ 48.968592] [<ffffffff8110c6d9>] notify_change+0x1a1/0x2a1 [ 48.968592] [<ffffffff810f49fa>] do_truncate+0x67/0x84 [ 48.968592] [<ffffffff811029f5>] do_last+0x4ce/0x5b2 [ 48.968592] [<ffffffff81102d21>] do_filp_open+0x248/0x64a [ 48.968592] [<ffffffff810f5481>] do_sys_open+0x60/0xfb [ 48.968592] [<ffffffff810f5537>] sys_open+0x1b/0x1d [ 48.968592] [<ffffffff810027eb>] system_call_fastpath+0x16/0x1b [ 48.968592] [ 48.968592] -> #1 (&ei->i_data_sem){++++..}: [ 48.968592] [<ffffffff8106b441>] lock_acquire+0x100/0x126 [ 48.968592] [<ffffffff81565615>] down_read+0x42/0x51 [ 48.968592] [<ffffffff81179383>] ext4_map_blocks+0x3e/0x20e [ 48.968592] [<ffffffff81179e0b>] ext4_getblk+0x71/0x19b [ 48.968592] [<ffffffff81179f46>] ext4_bread+0x11/0x61 [ 48.968592] [<ffffffff8118b297>] ext4_quota_read+0x86/0xf0 [ 48.968592] [<ffffffff81145131>] v2_read_header+0x1e/0x4f [ 48.968592] [<ffffffff811455de>] v2_read_file_info+0x20/0x2ae [ 48.968592] [<ffffffff81144423>] vfs_load_quota_inode+0x292/0x448 [ 48.968592] [<ffffffff8114480e>] dquot_quota_on_path+0x4c/0x55 [ 48.968592] [<ffffffff8118bc97>] ext4_quota_on+0x123/0x175 [ 48.968592] [<ffffffff81146cf2>] do_quotactl+0x1d1/0x465 [ 48.968592] [<ffffffff81147083>] sys_quotactl+0xfd/0x11a [ 48.968592] [<ffffffff810027eb>] system_call_fastpath+0x16/0x1b [ 48.968592] [ 48.968592] -> #0 (&s->s_dquot.dqio_mutex){+.+...}: [ 48.968592] [<ffffffff8106ac2d>] __lock_acquire+0xa4c/0xd4e [ 48.968592] [<ffffffff8106b441>] lock_acquire+0x100/0x126 [ 48.968592] [<ffffffff81564bbf>] __mutex_lock_common+0x5d/0x56c [ 48.968592] [<ffffffff81565174>] mutex_lock_nested+0x34/0x39 [ 48.968592] [<ffffffff81141b0a>] dquot_commit+0x26/0xda [ 48.968592] [<ffffffff8118d622>] ext4_write_dquot+0x65/0x87 [ 48.968592] [<ffffffff8118d682>] ext4_mark_dquot_dirty+0x3e/0x49 [ 48.968592] [<ffffffff81141790>] mark_all_dquot_dirty+0x22/0x48 [ 48.968592] [<ffffffff81143f43>] __dquot_free_space+0x139/0x16b [ 48.968592] [<ffffffff81199a70>] dquot_free_block+0x19/0x2a [ 48.968592] [<ffffffff8119fc4f>] ext4_free_blocks+0x75b/0x810 [ 48.968592] [<ffffffff81196f0f>] ext4_ext_truncate+0x3af/0x853 [ 48.968592] [<ffffffff8117a02e>] ext4_truncate+0x98/0x51a [ 48.968592] [<ffffffff810c46a4>] vmtruncate+0x3f/0x4b [ 48.968592] [<ffffffff8117af55>] ext4_setattr+0x305/0x3a7 [ 48.968592] [<ffffffff8110c6d9>] notify_change+0x1a1/0x2a1 [ 48.968592] [<ffffffff810f49fa>] do_truncate+0x67/0x84 [ 48.968592] [<ffffffff811029f5>] do_last+0x4ce/0x5b2 [ 48.968592] [<ffffffff81102d21>] do_filp_open+0x248/0x64a [ 48.968592] [<ffffffff810f5481>] do_sys_open+0x60/0xfb [ 48.968592] [<ffffffff810f5537>] sys_open+0x1b/0x1d [ 48.968592] [<ffffffff810027eb>] system_call_fastpath+0x16/0x1b [ 48.968592] [ 48.968592] other info that might help us debug this: [ 48.968592] [ 49.458584] 5 locks held by dd/3253: [ 49.458584] #0: (&sb->s_type->i_mutex_key#13){+.+.+.}, at: [<ffffffff810f49ee>] do_truncate+0x5b/0x84 [ 49.458584] #1: (&sb->s_type->i_alloc_sem_key#5){+.+...}, at: [<ffffffff8110c6c1>] notify_change+0x189/0x2a1 [ 49.458584] #2: (jbd2_handle){+.+...}, at: [<ffffffff811ad5b4>] start_this_handle+0x57a/0x605 [ 49.458584] #3: (&ei->i_data_sem){++++..}, at: [<ffffffff81196bf1>] ext4_ext_truncate+0x91/0x853 [ 49.458584] #4: (&s->s_dquot.dqptr_sem){++++..}, at: [<ffffffff81143e70>] __dquot_free_space+0x66/0x16b [ 49.458584] [ 49.458584] stack backtrace: [ 49.458584] Pid: 3253, comm: dd Not tainted 2.6.37-rc1-mmotm1109 #1 [ 49.458584] Call Trace: [ 49.458584] [<ffffffff81069591>] print_circular_bug+0xa8/0xb7 [ 49.458584] [<ffffffff8106ac2d>] __lock_acquire+0xa4c/0xd4e [ 49.458584] [<ffffffff81141b0a>] ? dquot_commit+0x26/0xda [ 49.458584] [<ffffffff8106b441>] lock_acquire+0x100/0x126 [ 49.458584] [<ffffffff81141b0a>] ? dquot_commit+0x26/0xda [ 49.458584] [<ffffffff81564bbf>] __mutex_lock_common+0x5d/0x56c [ 49.458584] [<ffffffff81141b0a>] ? dquot_commit+0x26/0xda [ 49.458584] [<ffffffff81141ef2>] ? dquot_mark_dquot_dirty+0x27/0x7a [ 49.458584] [<ffffffff81141b0a>] ? dquot_commit+0x26/0xda [ 49.458584] [<ffffffff81565174>] mutex_lock_nested+0x34/0x39 [ 49.458584] [<ffffffff81141b0a>] dquot_commit+0x26/0xda [ 49.458584] [<ffffffff8118d622>] ext4_write_dquot+0x65/0x87 [ 49.458584] [<ffffffff8118d682>] ext4_mark_dquot_dirty+0x3e/0x49 [ 49.458584] [<ffffffff81141790>] mark_all_dquot_dirty+0x22/0x48 [ 49.458584] [<ffffffff81143f43>] __dquot_free_space+0x139/0x16b [ 49.458584] [<ffffffff81199a70>] dquot_free_block+0x19/0x2a [ 49.458584] [<ffffffff8119fc4f>] ext4_free_blocks+0x75b/0x810 [ 49.458584] [<ffffffff811ada1d>] ? jbd2_journal_extend+0x5d/0xb8 [ 49.458584] [<ffffffff81196f0f>] ext4_ext_truncate+0x3af/0x853 [ 49.458584] [<ffffffff810a5759>] ? trace_preempt_on+0x15/0x28 [ 49.458584] [<ffffffff810d63f6>] ? unmap_mapping_range+0x279/0x288 [ 49.458584] [<ffffffff8117a02e>] ext4_truncate+0x98/0x51a [ 49.458584] [<ffffffff810d63f6>] ? unmap_mapping_range+0x279/0x288 [ 49.458584] [<ffffffff8106b861>] ? trace_hardirqs_on_caller+0x117/0x13b [ 49.458584] [<ffffffff8106b892>] ? trace_hardirqs_on+0xd/0xf [ 49.458584] [<ffffffff810c46a4>] vmtruncate+0x3f/0x4b [ 49.458584] [<ffffffff8117af55>] ext4_setattr+0x305/0x3a7 [ 49.458584] [<ffffffff8110c6d9>] notify_change+0x1a1/0x2a1 [ 49.458584] [<ffffffff810f49fa>] do_truncate+0x67/0x84 [ 49.458584] [<ffffffff810ff92d>] ? get_write_access+0x49/0x50 [ 49.458584] [<ffffffff81566794>] ? _raw_spin_unlock+0x30/0x69 [ 49.458584] [<ffffffff8156a040>] ? sub_preempt_count+0x35/0x48 [ 49.458584] [<ffffffff811e0833>] ? security_path_truncate+0x48/0x4d [ 49.458584] [<ffffffff811029f5>] do_last+0x4ce/0x5b2 [ 49.458584] [<ffffffff81102d21>] do_filp_open+0x248/0x64a [ 49.458584] [<ffffffff810a5759>] ? trace_preempt_on+0x15/0x28 [ 49.458584] [<ffffffff8110d8ce>] ? alloc_fd+0x17c/0x18e [ 49.458584] [<ffffffff81566794>] ? _raw_spin_unlock+0x30/0x69 [ 49.458584] [<ffffffff8156a040>] ? sub_preempt_count+0x35/0x48 [ 49.458584] [<ffffffff8110d8ce>] ? alloc_fd+0x17c/0x18e [ 49.458584] [<ffffffff810f5481>] do_sys_open+0x60/0xfb [ 49.458584] [<ffffffff81565fde>] ? trace_hardirqs_on_thunk+0x3a/0x3f [ 49.458584] [<ffffffff810f5537>] sys_open+0x1b/0x1d [ 49.458584] [<ffffffff810027eb>] system_call_fastpath+0x16/0x1b
Signature · 2 lines
Jan Kara <[email protected]> SUSE Labs, CR
Re: mmotm 2010-11-09 - lockdep splat in ext4/quota code
Quoted 11 lines · Jan Kara
Quoted 3 lines
Still seeing this just after quotas get turned on ext4. First seen in 2.6.36-mmotm1022, but problem has apparently been there since 2.6.36-rc5-mmotm0922 (oldest kernel I have lying around).
Thanks for the report. In fact, it is a false positive caused by the fact
that EXT4(inode)->i_data_sem for quota file inode would need a special locking class (or subclass) but does not have one. I'll have a look into implementing that sometime next week hopefully.Quoted 3 lines
[ 48.967833] ======================================================= [ 48.968162] [ INFO: possible circular locking dependency detected ] [ 48.968411] 2.6.37-rc1-mmotm1109 #1
I haven't spotted the commit that fixed it, but I'm assuming it's in there now, as I am not seeing it on 2.6.37-rc3-mmotm1123, thanks.