Skip to contentSkip to conversation

mmotm 2009-04-24-18-14 uploaded

DISCUSSION Applied [email protected] 4 participants 11 messages Apr 25, 2009 – Apr 30, 2009

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

The mm-of-the-moment snapshot 2009-04-24-18-14 has been uploaded to

http://userweb.kernel.org/~akpm/mmotm/

and will soon be available at

git://git.zen-sources.org/zen/mmotm.git

It contains the following patches against 2.6.30-rc3:

origin.patch
mm-fix-pageref-leak-in-do_swap_page.patch
autofs4-fix-incorect-return-in-autofs4_mount_busy.patch
maintainers-florian-has-moved.patch
ibft-fix-the-display-of-a-few-fields-in-the-nic-attribute-structure-in-sysfs.patch
i2c-too-much-compiler-noise.patch
repeatable-slab-corruption-with-ltp-msgctl08.patch
linux-next.patch
linux-next-git-rejects.patch
next-remove-localversion.patch
i-need-old-gcc.patch
net-rfkill-rfkillc-fix-build-with-config_rfkill_leds=n.patch acpi-check-_pss-invalidation-when-bios-report-_pss-with-all-0x80000000.patch dell-laptop-fix-uninitialized-wrong-return-value.patch arch-x86-kernel-cpu-cpufreq-acpi-cpufreqc-avoid-cross-cpu-interrupts.patch x86-simplify-highmem-related-kconfig-entries.patch
x86-enable-gart-iommu-only-after-setting-up-protection-methods.patch arch-x86-kernel-apic-io_apicc-conditionally-compile-eoi_ioapic_irq.patch
agpgart-detected-ali-m-chipset-with-m1621.patch
arm-mach-l7200-fix-spelling-of-sys_clock_off.patch
i2c-pxac-timeouts-off-by-1.patch
pcmcia-pccard-deadlock-fix.patch
synchronize-device-shutdown.patch
doc-add-documentation-for-debugfs.patch
drm-fix-lock_test_with_return-macro.patch
drivers-gpu-drm-i915-intel_fbc-remove-sysrq-g-handler.patch
intelfb-fix-spelling-of-clock.patch
radio-mr800c-missing-mutex-include.patch
uvcvideo-prevent-information-loss-with-removing-implicit-casting.patch drivers-media-dvb-frontends-stv0900_privh-remove-broken-unused-macro.patch clocksource-sanity-check-sysfs-clocksource-changes.patch kernel-time-tick-broadcastc-tick_broadcast_device-can-become-static.patch timers-allow-deferrable-timers-for-intervals-tv2-tv5-to-be-deferred.patch time-move-calc_load-call-out-from-xtime_lock-protection.patch time-avoid-possible-endless-loop-when-using-jiffies-clocksource-and-oneshot-mode-clockevent.patch time-create-arch_gettimeoffset-infrastructure-for-use-in-the-generic-timekeeping-core.patch time-sh-convert-to-use-arch_getoffset-infrastructure.patch
drivers-infiniband-hw-nes-nes_cmc-fix-unused-var-warning.patch input-mousedev-distinguish-a-moving-finger-from-a-tapping-finger.patch input-mouse-alpsc-handle-touchpoints-buttons-correctly.patch
input-ads7846c-sparse-lock-annotation.patch
input-bcm5974-prepare-for-a-new-trackpad-header-type.patch
input-bcm5974-add-quad-finger-tapping.patch
input-bcm5974-add-support-for-the-macbook-5-unibody.patch
input-bcm5974-augmented-debug-information.patch
input-bcm5974-declare-alignment-usage.patch
input-allow-certain-ev_abs-events-to-bypass-all-filtering.patch es-input-allow-certain-ev_abs-events-to-bypass-all-filtering-fix.patch input-add-a-detailed-multi-touch-finger-data-report-protocol-rev2.patch
ads7846-pin-change-interrupt-support.patch
input-keyboard-introduce-lm8323-driver.patch
uinput-flush-all-pending-ff-effects-before-destroying-device.patch input-add-wm97xx-accelerated-driver-for-avr32-at32ap700x-microprocessors.patch input-drivers-input-xpadc-improve-xbox-360-wireless-support-and-add-sysfs-interface.patch drivers-input-xpadc-improve-xbox-360-wireless-support-and-add-sysfs-interface-checkpatch-fixes.patch input-drivers-input-xpadc-improve-xbox-360-wireless-support-and-add-sysfs-interface-fix.patch input-drivers-input-xpadc-improve-xbox-360-wireless-support-and-add-sysfs-interface-add-missing-prototype-and-update-history.patch input-documentation-input-xpadtxt-update-for-new-driver-functionality.patch input-documentation-input-xpadtxt-update-for-new-driver-functionality-checkpatch-fixes.patch input-documentation-abi-testing-game_device-sysfs-interface-document-game_device-interface-added-to-xpad-driver.patch serios-async-shutdown.patch
kernel-kallsymsc-replace-deprecated-__initcall-with-device_initcall-and-fix-whitespace.patch makefile-make-prepare-should-be-make-modules_prepare.patch kvm-expand-on-help-info-to-specify-kvm-intel-and-amd-module-names.patch
leds-fix-led-bd2802-errors-while-resuming.patch
leds-change-the-license-information.patch leds-add-the-sysfs-interface-into-the-leds-bd2802-driver-for-changing-wave-pattern-and-led-current.patch pata-rb532-cf-platform_get_irq-failure-ignored.patch
mfd-mark-wm8350-mask-revision-as-readable-to-match-silicon.patch mmc-align-data-size-for-host-which-only-supports-power-of-2-block.patch mmc-some-microsd-cards-are-not-recognized-by-pcixx12-sda-controller.patch mmc-in-mmc_power_up-use-previously-selected-ocr-if-available.patch omap-hsmmc-do-not-enable-buffer-ready-interrupt-if-using-dma.patch
mtd-flex-onenand-support.patch
mtd-onenand-add-bbt_wait-unlock_all-as-replaceable-for-some-platform.patch mtd-plat_nand-add-platform-probe-remove-callbacks.patch
mtd-plat_nand-allow-platform-to-set-partitions.patch
mtd-update-sysfs-documentation.patch
mtd-add-memerase64-ioctl-for-4gib-devices.patch
mtd-compat_ioctl-cleanup.patch
mtd-add-oob-ioctls-for-4gib-devices.patch
mtd-delete-final-remnants-of-mtd-ioctls-from-fs-compat_ioctlc.patch
mtd-nand-dont-walk-past-end-of-oobfree.patch
mtd-nand-minor-davinci_nand-cleanup.patch
mtd-nand-davinci_nand-4-bit-ecc-for-smallpage.patch
uwb-event_size-should-be-signed.patch
cls_cgroup-remove-unneeded-cgroup_lock.patch
sunrpc-align-cache_clean-works-timer.patch
net-sunrpc-svc_xprtc-needs-svcsockh.patch
irda-new-blackfin-on-chip-sir-irda-driver.patch
misdn-l1oip-reduce-stack-memory-footprint.patch
sfc-modify-allocation-error-message.patch
drivers-net-82596c-suppress-warnings.patch
de2104x-support-for-systems-lacking-cache-coherence.patch forcedeth-fix-mac-address-detection-on-network-card-regression-in-2623.patch e1000e-make-e1000e-default-to-the-same-kconfig-setting-as-e1000.patch
3x59x-fix-pci-resource-management.patch
pci-quirks-hp-hides-smbus-controller-in-compaq-nx9500-laptops.patch pci-quirks-unhide-overflow-device-on-i828675p-pe-chipsets-v2.patch lockdep-dont-print-lockdep-taint-message-for-lockdep.patch scsi-use-the-common-hex_asc-array-rather-than-a-private-one.patch
scsi-gdthc-use-unaligned-access-helpers.patch
scsi-annotate-gdth_rdcap_data-gdth_rdcap16_data-endianness.patch
sg_io-dont-perform-unneeded-copy-in-compat-code.patch
scsi-ncr53c8xx-div-reaches-1.patch
qla2x-fix-printk-format-warnings.patch
scsi-pcmcia-nsp_cs-time_out-reaches-1.patch
sd-async-shutdown.patch
diskstats-fix-discard-request-accounting.patch
block-turn-some-buggy-macros-into-c-functions.patch
usb-imx_udc-fix-leak-in-imx_ep_alloc_request.patch
vfs-fix-vfs_rename_dir-for-fs_rename_does_d_move-filesystems.patch raw-fix-rawctl-compat-ioctls-breakage-on-amd64-and-itanic.patch
vfs-improve-comment-describing-fget_light.patch
libfs-make-simple_read_from_buffer-conventional.patch fs-inodec-add-dev-id-and-inode-number-for-debugging-in-init_special_inode.patch
xtensa-variant-specific-code.patch
xtensa-cache-inquiry-and-unaligned-cache-handling-functions.patch
xtensa-s6000-dma-engine-support.patch
xtensa-allow-platform-and-variant-to-initialize-own-irq-chips.patch xtensa-support-s6000-gpio-irqs-and-alternate-function-selection.patch
s6gmac-xtensa-s6000-on-chip-ethernet-driver.patch
xtensa-s6105-specific-configuration-for-s6gmac.patch
xtensa-enable-s6gmac-in-s6105_defconfig.patch
xtensa-add-m41t62-rtc-to-s6105-platform.patch
xtensa-enable-m41t80-driver-in-s6105_defconfig.patch
mm.patch
pagemap-require-aligned-length-non-null-reads-of-proc-pid-pagemap.patch
memcg-fix-mem_cgroup_shrink_usage.patch
vgacon-return-the-upper-half-of-512-character-fonts.patch eliminate-thousands-of-warnings-in-warn_on-with-gcc-32-build.patch cachefiles-fix-the-documentation-to-use-the-correct-credential-pointer-names.patch romfs-romfs_lookup-shouldnt-be-doing-a-partial-name-comparison.patch romfs-advance-destination-buffer-pointer-when-reading-from-a-blockdev.patch
alpha-titan-and-marvel-build-fixes.patch
alpha-exception-table-sorting.patch
alpha-futex-implementation.patch
alpha-binfmt_aout-fix.patch
fbdev-fix-fillrect-for-24bpp-modes.patch
mm-disable-preemption-in-apply_to_pte_range.patch
rtc-add-ds1685-ds1687-rtc-driver.patch
ext2-add-blk_issue_flush-to-syncing-paths.patch
scsi-dpt_i2o-is-bust-on-ia64.patch
cpufreq-fix-timer-teardown-in-conservative-governor-2630-rc2.patch
crisv10-change-serial-driver-proc-usage.patch
ir-kbd-i2c-support-hauppauge-hvr-1600-r-c-port.patch scripts-mod-modpostc-fix-modulemarkers-permission-error-under-cygwin.patch
mtd-fix-timeout-in-m25p80-driver.patch
rxrpc-fix-error-handling-for-rxrpc_alloc_connection.patch drivers-pci-hotplug-ibmphp_corec-fix-warning-due-to-missing-module_exit.patch procfs-make-errno-values-consistent-when-open-pident-vs-exit2-race-occurs.patch scsi-fix-sign-extension-with-15tb-usb-storage-lbd=y.patch
drivers-scsi-ncr_d700c-fix-irq-handler-return-type.patch
squashfs-fix-breakage-when-pagesize-blocksize.patch
squashfs-fix-breakage-when-pagesize-blocksize-checkpatch-fixes.patch drivers-usb-serial-ti_usb_3410_5052c-ti_usb-returns-eio-when-reopening-the-device.patch mm-consolidate-init_mm-definition.patch
mm-consolidate-init_mm-definition-fix.patch
readahead-make-mmap_miss-an-unsigned-int.patch readahead-move-max_sane_readahead-calls-into-force_page_cache_readahead.patch readahead-apply-max_sane_readahead-limit-in-ondemand_readahead.patch readahead-remove-one-unnecessary-radix-tree-lookup.patch
readahead-increase-interleaved-readahead-size.patch
readahead-remove-sync-async-readahead-call-dependency.patch readahead-clean-up-and-simplify-the-code-for-filemap-page-fault-readahead.patch
readahead-sequential-mmap-readahead.patch
readahead-enforce-full-readahead-size-on-async-mmap-readahead.patch readahead-record-mmap-read-around-states-in-file_ra_state.patch readahead-record-mmap-read-around-states-in-file_ra_state-checkpatch-fixes.patch
radix-tree-add-radix_tree_prev_hole.patch
readahead-move-the-random-read-case-to-bottom.patch
readahead-introduce-context-readahead-algorithm.patch
readahead-introduce-context-readahead-algorithm-update.patch readahead-remove-redundant-test-in-shrink_readahead_size_eio.patch
readahead-enforce-full-sync-mmap-readahead-size.patch
mm-close-page_mkwrite-races-try-3.patch
mm-clean-up-get_user_pages_fast-documentation.patch
mm-clean-up-get_user_pages_fast-documentation-checkpatch-fixes.patch vmscan-low-order-lumpy-reclaim-also-should-use-pageout_io_sync.patch mm-page-writebackc-dirty-limit-type-should-be-unsigned-long.patch
ksm-mmu_notifiers-add-set_pte_at_notify.patch
ksm-add-get_pte-helper-function-fetching-pte-for-va.patch
ksm-add-get_pte-helper-function-fetching-pte-for-va-fix.patch
ksm-add-page_wrprotect-write-protecting-page.patch
ksm-add-replace_page-change-the-page-pte-is-pointing-to.patch
ksm-add-ksm-kernel-shared-memory-driver.patch
ksm-add-ksm-kernel-shared-memory-driver-checkpatch-fixes.patch ksm-add-ksm-kernel-shared-memory-driver-fix-unsafe-pte-fetching.patch
ksm-add-ksm-kernel-shared-memory-driver-fix.patch
cpusets-restructure-the-function-cpuset_update_task_memory_state.patch cpusets-update-tasks-page-slab-spread-flags-in-time.patch
cpusetmm-update-tasks-mems_allowed-in-time.patch page-allocator-replace-__alloc_pages_internal-with-__alloc_pages_nodemask.patch page-allocator-do-not-sanity-check-order-in-the-fast-path.patch page-allocator-do-not-sanity-check-order-in-the-fast-path-fix.patch page-allocator-do-not-check-numa-node-id-when-the-caller-knows-the-node-is-valid.patch page-allocator-check-only-once-if-the-zonelist-is-suitable-for-the-allocation.patch page-allocator-break-up-the-allocator-entry-point-into-fast-and-slow-paths.patch page-allocator-move-check-for-disabled-anti-fragmentation-out-of-fastpath.patch page-allocator-calculate-the-preferred-zone-for-allocation-only-once.patch page-allocator-calculate-the-preferred-zone-for-allocation-only-once-fix.patch page-allocator-calculate-the-migratetype-for-allocation-only-once.patch page-allocator-calculate-the-alloc_flags-for-allocation-only-once.patch page-allocator-remove-a-branch-by-assuming-__gfp_high-==-alloc_high.patch
page-allocator-inline-__rmqueue_smallest.patch
page-allocator-inline-buffered_rmqueue.patch
page-allocator-inline-__rmqueue_fallback.patch page-allocator-do-not-call-get_pageblock_migratetype-more-than-necessary.patch page-allocator-do-not-disable-interrupts-in-free_page_mlock.patch page-allocator-do-not-setup-zonelist-cache-when-there-is-only-one-node.patch page-allocator-do-not-check-for-compound-pages-during-the-page-allocator-sanity-checks.patch page-allocator-use-allocation-flags-as-an-index-to-the-zone-watermark.patch page-allocator-update-nr_free_pages-only-as-necessary.patch page-allocator-get-the-pageblock-migratetype-without-disabling-interrupts.patch page-allocator-use-a-pre-calculated-value-instead-of-num_online_nodes-in-fast-paths.patch page-allocator-use-a-pre-calculated-value-instead-of-num_online_nodes-in-fast-paths-do-not-override-definition-of-node_set_online-with-macro.patch page-allocator-slab-use-nr_online_nodes-to-check-for-a-numa-platform.patch page-allocator-move-free_page_mlock-to-page_allocc.patch page-allocator-sanity-check-order-in-the-page-allocator-slow-path.patch mm-rewrite-some-tests-with-is_power_of_2-for-clarity.patch
frv-duplicate-output_buffer-of-e03.patch
frv-duplicate-output_buffer-of-e03-checkpatch-fixes.patch
m68k-count-can-reach-51-not-50.patch
slow_work_thread-should-do-the-exclusive-wait.patch
rework-fix-is_single_threaded.patch
utsnameh-make-new_utsname-fields-use-the-proper-length-constant.patch kmap_types-make-most-arches-use-generic-header-file.patch atomic-only-take-lock-when-the-counter-drops-to-zero-on-up-as-well.patch kernel-kfifoc-replace-conditional-test-with-is_power_of_2.patch
ntfs-use-is_power_of_2-function-for-clarity.patch
getrusage-fill-ru_maxrss-value.patch
rb_tree-reorganize-code-in-rb_erase-for-additional-changes.patch rb_tree-reorganize-code-in-rb_erase-for-additional-changes-checkpatch-fixes.patch rb_tree-make-clear-distinction-between-two-different-cases-in-rb_erase.patch rb_tree-remove-redundant-if-condition-in-rb_erase.patch
documentation-rbtreetxt-fix-errors-in-sample-code.patch
softirq-introduce-statistics-for-softirq.patch irqs-add-irqf_sample_random-to-the-feature-removal-scheduletxt-deprecated-list.patch proc-export-statistics-for-softirq-to-proc.patch
proc-update-document-for-proc-softirqs-and-proc-stat.patch
drivers-hwmon-coretempc-enable-the-intel-atom.patch
flat-fix-data-sections-alignment.patch
pci-use-pci_ioremap_bar-in-drivers-serial.patch
kgdb-kgdboc-console-poll-hooks-for-serial_txx9-uart.patch
serial_txx9-use-container_of-instead-of-direct-cast.patch
icom-converting-space-to-tabs.patch
serial-8250c-irq-handling-race-and-spurious-iir-read.patch
serial-z85c30-bcm1480-loops-reach-1.patch
serial-add-parameter-to-force-skipping-the-test-for-the-txen-bug.patch
spi_bfin5xx-limit-reaches-1.patch
spi-move-common-spi_setup-functionality-into-core.patch
spi-move-more-spi_setup-functionality-into-core.patch
rtc-rtc-ds1742-nvram-attribute-fix.patch
rtc-rtc-ds1307-add-ds1388.patch
rtc-rtc-ds1307-add-ds3231.patch
rtc-add-stand-alone-driver-for-rx8025-chip.patch
rtc-add-stand-alone-driver-for-rx8025-chip-fix.patch
rtc-make-rtc_update_irq-callable-with-irqs-enabled-v2.patch
pca953x-support-gpiolib-gpio-naming.patch
fbdev-generated-logo-sources-depend-on-scripts-pnmtologo.patch
fbdev-move-logo-externs-to-header-file.patch
ext2-do-not-update-mtime-of-a-moved-directory.patch
ext3-fix-chain-verification-in-ext3_get_blocks.patch isofs-let-mode-and-dmode-mount-options-override-rock-ridge-mode-setting.patch
isofs-fix-setting-of-uid-and-gid-to-0.patch
isofs-cleanup-mount-option-processing.patch
hfsplus-identify-journal-info-block-in-volume-header.patch
hfsplus-fix-journal-detection.patch
ufs-sector_t-cannot-be-negative.patch
devcgroup-skip-superfluous-checks-when-found-the-dev_all-elem.patch
memcg-add-file-based-rss-accounting.patch
ptrace-remove-pt_dtrace-from-arch-h8300.patch
ptrace-remove-pt_dtrace-from-avr32-mn10300-parisc-s390-sh-xtensa.patch
ptrace-remove-pt_dtrace-from-m68k-m68knommu.patch
ptrace-remove-pt_dtrace-from-arch-m32r.patch
ptrace-mm_need_new_owner-use-real_parent-to-search-in-the-siblings.patch ptrace-tracehook_unsafe_exec-remove-the-stale-comment.patch drivers-char-memc-memory_open-cleanup-lookup-minor-device-number-from-devlist.patch drivers-char-memc-memory_open-cleanup-lookup-minor-device-number-from-devlist-checkpatch-fixes.patch char-isicom-fix-build-warning.patch
char-cyclades-plx9060-casts-cleanup.patch
char-cyclades-cache-hw-version.patch
char-cyclades-convert-macros-to-inlines.patch
char-cyclades-remove-typedefs.patch
char-cyclades-fix-nports-handling.patch
char-cyclades-remove-unused-variables.patch
edac-add-cpc925-memory-controller-driver.patch
edac-add-cpc925-memory-controller-driver-cleanup.patch
edac-add-edac_device_alloc_index.patch
edac-add-edac_device_alloc_index-cleanup.patch
edac-cpc925-mc-platform-device-setup.patch
edac-cpc925-mc-platform-device-setup-v3.patch
gru-bug-fixes-for-gru-exception-handling.patch
gru-dump-chiplet-state.patch
gru-dump-chiplet-state-update.patch
gru-dynamic-allocation-of-kernel-contexts.patch
gru-dynamic-allocation-of-kernel-contexts-update.patch
gru-change-context-load-and-unload.patch
gru-support-cch_allocate-for-kernel-threads.patch
gru-change-resource-assignment-for-kernel-threads.patch
gru-support-contexts-with-zero-dsrs-or-cbrs.patch
gru-fix-handling-of-mesq-failures.patch
gru-check-context-state-on-reload.patch
gru-support-instruction-completion-interrupts.patch
gru-support-for-asynchronous-gru-instructions.patch
gru-support-for-asynchronous-gru-instructions-fix.patch
gru-update-gru-kernel-self-tests.patch
gru-update-gru-kernel-self-tests-fix.patch
gru-update-to-rev-09-of-gru-spec.patch
signals-split-do_tkill.patch
signals-implement-sys_rt_tgsigqueueinfo.patch
x86-hookup-sys_rt_tgsigqueueinfo.patch
linuxpps-core-support.patch
signals-tracehook_notify_jctl-change.patch
utrace-core.patch
vfs-take-2add-set_page_dirty_notag.patch
reiser4-vfs-add-super_operationssync_inodes-2.patch
reiser4-export-remove_from_page_cache.patch
reiser4-export-remove_from_page_cache-fix.patch
reiser4-export-find_get_pages.patch
reiser4.patch
reiser4-adjust-to-the-new-aops.patch
reiser4-adjust-to-the-new-aops-fixup.patch
reiser4-remove-simple_prepare_write-usage.patch
reiser4-remove-simple_prepare_write-usage-checkpatch-fixes.patch fs-symlink-write_begin-allocation-context-fix-reiser4-fix.patch reiser4-handling-error-returned-by-d_obtain_alias-fixup.patch
reiser4-update-names-of-quota-methods.patch
reiser4-use-set_page_dirty_notag.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
slab-leaks3-default-y.patch
put_bh-debug.patch
add-debugging-aid-for-memory-initialisation-problems.patch
shrink_slab-handle-bad-shrinkers.patch
keep-track-of-network-interface-renaming.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
getblk-handle-2tb-devices-fix.patch
undeprecate-pci_find_device.patch
notify_change-callers-must-hold-i_mutex.patch
8390p-fix-build-breakage.patch

#1 lore raw

Re: mmotm 2009-04-24-18-14 uploaded - NVidia indigestion

Quoted 3 lines · On Fri, 24 Apr 2009 18:14:22 PDT, [email protected] said:

The mm-of-the-moment snapshot 2009-04-24-18-14 has been uploaded to

http://userweb.kernel.org/~akpm/mmotm/

This jumped out and asked if I wanted SLQB as the default allocator (even though I've had SLAB defined for ages). I said to myself "what the heck" and accepted the change...

Tried to build the NVidia binary, and it choked during config on something that will likely give a *lot* of programs indigestion.

The test program:

#include <linux/autoconf.h>
    #if defined(CONFIG_XEN) &&         defined(CONFIG_XEN_INTERFACE_VERSION) &&  !defined(__XEN_INTERFACE_VERSION__)
    #define __XEN_INTERFACE_VERSION__ CONFIG_XEN_INTERFACE_VERSION
    #endif
            #include <linux/version.h>
            #include <linux/utsname.h>
            int main() {
              if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)) {
                return 0;
              } else {
                return 1;
              }
            }

The command line:

cc -D__KERNEL__ -DKBUILD_BASENAME="#conftest23112" -DKBUILD_MODNAME="#conftest23112" -nostdinc -isystem /usr/lib/gcc/x86_64-redhat-linux/4.4.0/include -I/lib/modules/2.6.30-rc3-mmotm0424/source/include/asm-x86_64/mach-default -I/lib/modules/2.6.30-rc3-mmotm0424/source/include/asm-x86/mach-default -I/lib/modules/2.6.30-rc3-mmotm0424/source/arch/x86/include/asm/mach-default -I/lib/modules/2.6.30-rc3-mmotm0424/build/include2 -I/lib/modules/2.6.30-rc3-mmotm0424/build/include -I/lib/modules/2.6.30-rc3-mmotm0424/source/include -I/lib/modules/2.6.30-rc3-mmotm0424/source/arch/x86/include -o conftest23112 conftest23112.c

and the joy it got me:

In file included from /lib/modules/2.6.30-rc3-mmotm0424/build/include/linux/slab.h:161,

                 from /lib/modules/2.6.30-rc3-mmotm0424/build/include/linux/percpu.h:5,
                 from /lib/modules/2.6.30-rc3-mmotm0424/build/include/linux/sched.h:76,
                 from /lib/modules/2.6.30-rc3-mmotm0424/build/include/linux/utsname.h:35,
                 from conftest2465.c:6:

/lib/modules/2.6.30-rc3-mmotm0424/build/include/linux/slqb_def.h: In function ‘kmalloc_slab’:
/lib/modules/2.6.30-rc3-mmotm0424/build/include/linux/slqb_def.h:240: error: size of array ‘type name’ is negative

Why does utsname.h care about SLAB versus SLUB? (Looks to me like somebody forgot to add a #include to slqb_def.h for all the headers it needed, and it choked. Interestingly enough, line 240 reads:

        BUILD_BUG_ON(!__builtin_constant_p(size));

but I didn't think this was the way BUILD_BUG_ON worked?

Changed back to SLAB, and things built just fine after that...

#2 lore raw

Re: mmotm 2009-04-24-18-14 uploaded - NVidia indigestion

Quoted 8 lines · On Fri, Apr 24, 2009 at 11:06:40PM -0400, [email protected] wrote:
Quoted 3 lines · On Fri, 24 Apr 2009 18:14:22 PDT, [email protected] said:

The mm-of-the-moment snapshot 2009-04-24-18-14 has been uploaded to

http://userweb.kernel.org/~akpm/mmotm/

This jumped out and asked if I wanted SLQB as the default allocator (even though I've had SLAB defined for ages). I said to myself "what the heck" and accepted the change...

Heh, it was a sneaky trick to get more testing before merging. Worked well :)

Quoted 33 lines

Tried to build the NVidia binary, and it choked during config on something that will likely give a *lot* of programs indigestion.

The test program:

#include <linux/autoconf.h>
    #if defined(CONFIG_XEN) &&         defined(CONFIG_XEN_INTERFACE_VERSION) &&  !defined(__XEN_INTERFACE_VERSION__)
    #define __XEN_INTERFACE_VERSION__ CONFIG_XEN_INTERFACE_VERSION
    #endif
            #include <linux/version.h>
            #include <linux/utsname.h>
            int main() {
              if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)) {
                return 0;
              } else {
                return 1;
              }
            }

The command line:

cc -D__KERNEL__ -DKBUILD_BASENAME="#conftest23112" -DKBUILD_MODNAME="#conftest23112" -nostdinc -isystem /usr/lib/gcc/x86_64-redhat-linux/4.4.0/include -I/lib/modules/2.6.30-rc3-mmotm0424/source/include/asm-x86_64/mach-default -I/lib/modules/2.6.30-rc3-mmotm0424/source/include/asm-x86/mach-default -I/lib/modules/2.6.30-rc3-mmotm0424/source/arch/x86/include/asm/mach-default -I/lib/modules/2.6.30-rc3-mmotm0424/build/include2 -I/lib/modules/2.6.30-rc3-mmotm0424/build/include -I/lib/modules/2.6.30-rc3-mmotm0424/source/include -I/lib/modules/2.6.30-rc3-mmotm0424/source/arch/x86/include -o conftest23112 conftest23112.c

and the joy it got me:

In file included from /lib/modules/2.6.30-rc3-mmotm0424/build/include/linux/slab.h:161,

                 from /lib/modules/2.6.30-rc3-mmotm0424/build/include/linux/percpu.h:5,
                 from /lib/modules/2.6.30-rc3-mmotm0424/build/include/linux/sched.h:76,
                 from /lib/modules/2.6.30-rc3-mmotm0424/build/include/linux/utsname.h:35,
                 from conftest2465.c:6:

/lib/modules/2.6.30-rc3-mmotm0424/build/include/linux/slqb_def.h: In function ???kmalloc_slab???:
/lib/modules/2.6.30-rc3-mmotm0424/build/include/linux/slqb_def.h:240: error: size of array ???type name??? is negative

Quoted 7 lines

Why does utsname.h care about SLAB versus SLUB? (Looks to me like somebody forgot to add a #include to slqb_def.h for all the headers it needed, and it choked. Interestingly enough, line 240 reads:

        BUILD_BUG_ON(!__builtin_constant_p(size));

but I didn't think this was the way BUILD_BUG_ON worked?

Yeah BUILD_BUG_ON does work like that. I can't for the life of me understand why it triggered though. Is anything in your external code calling kmalloc_slab directly?

What's the preprocessor output look like?

#3 lore raw

Re: mmotm 2009-04-24-18-14 uploaded - NVidia indigestion

Quoted 9 lines · Nick Piggin
Quoted 8 lines
            #include <linux/version.h>
            #include <linux/utsname.h>
            int main() {
              if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)) {
                return 0;
              } else {
                return 1;
              }
Quoted 3 lines

Yeah BUILD_BUG_ON does work like that. I can't for the life of me understand why it triggered though. Is anything in your external code calling kmalloc_slab directly?

See above - I didn't think LINUX_VERSION_CODE cared about kmalloc, but I could be wrong on this. ;)

Quoted 1 line

What's the preprocessor output look like?

The problem appears to be that if you only include version.h and utsname.h, and *don't* actually reference kmalloc_slab, it doesn't know that the size_t is actually a constant, so it whinges. Most modules end up doing at least one kmalloc(), so kmalloc() and kmalloc_slab() get inlined, the constant 'size' gets propogated, and life is good. If you *don't* call kmalloc(), bad things happen. ;)

#4 lore raw

Re: mmotm 2009-04-24-18-14 uploaded - NVidia indigestion

Quoted 18 lines · On Mon, Apr 27, 2009 at 02:45:15PM -0400, [email protected] wrote:
Quoted 9 lines · Nick Piggin
Quoted 8 lines
            #include <linux/version.h>
            #include <linux/utsname.h>
            int main() {
              if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)) {
                return 0;
              } else {
                return 1;
              }
Quoted 3 lines

Yeah BUILD_BUG_ON does work like that. I can't for the life of me understand why it triggered though. Is anything in your external code calling kmalloc_slab directly?

See above - I didn't think LINUX_VERSION_CODE cared about kmalloc, but I could be wrong on this. ;)

Quoted 8 lines
Quoted 1 line

What's the preprocessor output look like?

The problem appears to be that if you only include version.h and utsname.h, and *don't* actually reference kmalloc_slab, it doesn't know that the size_t is actually a constant, so it whinges. Most modules end up doing at least one kmalloc(), so kmalloc() and kmalloc_slab() get inlined, the constant 'size' gets propogated, and life is good. If you *don't* call kmalloc(), bad things happen. ;)

Hmm, yes if you build without -O, then it appears like the compiler trips over this. I wouldn't be unhappy with just removing the BUILD_BUG_ON, but shouldn't the module be using -O[s2]?

#5 lore raw

Re: mmotm 2009-04-24-18-14 uploaded - NVidia indigestion

On Tue, 28 Apr 2009 08:15:57 +0200, Nick Piggin said:

Here's the code (pretty much *all* the code):

Quoted 10 lines

#include <linux/version.h>
#include <linux/utsname.h>

int main() {
	if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)) {
		return 0;
	} else {
		return 1;
	}
}
Quoted 3 lines

Hmm, yes if you build without -O, then it appears like the compiler trips over this. I wouldn't be unhappy with just removing the BUILD_BUG_ON, but shouldn't the module be using -O[s2]?

It's a little autoconfig chunk from vendor code that determines if we're building on a sane/recent kernel. Not the sort of thing you'd expect to need to invoke the frikking optimizer for program *correctness* :)

#6 lore raw

Re: mmotm 2009-04-24-18-14 uploaded - NVidia indigestion

Quoted 14 lines · On Tue, Apr 28, 2009 at 12:01:21PM -0400, [email protected] wrote:

On Tue, 28 Apr 2009 08:15:57 +0200, Nick Piggin said:

Here's the code (pretty much *all* the code):

Quoted 9 lines

#include <linux/version.h>
#include <linux/utsname.h>

int main() {
	if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)) {
		return 0;
	} else {
		return 1;
	}
}
Quoted 7 lines
Quoted 3 lines

Hmm, yes if you build without -O, then it appears like the compiler trips over this. I wouldn't be unhappy with just removing the BUILD_BUG_ON, but shouldn't the module be using -O[s2]?

It's a little autoconfig chunk from vendor code that determines if we're building on a sane/recent kernel. Not the sort of thing you'd expect to need to invoke the frikking optimizer for program *correctness* :)

The kernel I think has for a long time required -O to compile correctly because some things marked inline have had to be inlined for correctness. This might have changed now that we have __always_inline, but anyway.

But I'll just get rid of that BUILD_BUG_ON.

Thanks,
Nick

#7 lore raw

Re: mmotm 2009-04-24-18-14 uploaded - NVidia indigestion

In reply to [email protected]
Quoted 14 lines · On Tue, Apr 28, 2009 at 12:01:21PM -0400, [email protected] wrote:

On Tue, 28 Apr 2009 08:15:57 +0200, Nick Piggin said:

Here's the code (pretty much *all* the code):

Quoted 9 lines

#include <linux/version.h>
#include <linux/utsname.h>

int main() {
	if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)) {
		return 0;
	} else {
		return 1;
	}
}
Quoted 9 lines
Quoted 3 lines

Hmm, yes if you build without -O, then it appears like the compiler trips over this. I wouldn't be unhappy with just removing the BUILD_BUG_ON, but shouldn't the module be using -O[s2]?

It's a little autoconfig chunk from vendor code that determines if we're building on a sane/recent kernel. Not the sort of thing you'd expect to need to invoke the frikking optimizer for program *correctness* :)

Pekka, can you apply this please?

Thanks,
Nick

--
SLQB: fix compile without optmisations

SLQB fails to build without -O, which causes some external code to trip over. This BUILD_BUG_ON isn't so useful anyway because it is trivial to follow that size will be constant, looking at the callers.

---

include/linux/slqb_def.h +0 -2
Index: linux-2.6/include/linux/slqb_def.h
===================================================================
@@ -237,8 +238,6 @@ static __always_inline struct kmem_cache
 {
 	int index;
 
-	BUILD_BUG_ON(!__builtin_constant_p(size));
-
 	index = kmalloc_index(size);
 	if (unlikely(index == 0))
 		return ZERO_SIZE_PTR;
Applied
#8 lore raw

Re: mmotm 2009-04-24-18-14 uploaded - NVidia indigestion

Quoted 19 lines · Nick Piggin
Quoted 18 lines · On Tue, Apr 28, 2009 at 12:01:21PM -0400, [email protected] wrote:

On Tue, 28 Apr 2009 08:15:57 +0200, Nick Piggin said:

Here's the code (pretty much *all* the code):

Quoted 13 lines

#include <linux/version.h>
#include <linux/utsname.h>

int main() {
	if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)) {
		return 0;
	} else {
		return 1;
	}
}

Hmm, yes if you build without -O, then it appears like the compiler trips over this. I wouldn't be unhappy with just removing the BUILD_BUG_ON, but shouldn't the module be using -O[s2]?

Quoted 7 lines
Quoted 5 lines

It's a little autoconfig chunk from vendor code that determines if we're building on a sane/recent kernel. Not the sort of thing you'd expect to need to invoke the frikking optimizer for program *correctness* :)

Pekka, can you apply this please?

Applied, thanks!

#9 lore raw

Re: mmotm 2009-04-24-18-14 uploaded - pulseaudio causes BUG

In reply to [email protected]
Quoted 3 lines · On Fri, 24 Apr 2009 18:14:22 PDT, [email protected] said:

The mm-of-the-moment snapshot 2009-04-24-18-14 has been uploaded to

http://userweb.kernel.org/~akpm/mmotm/

Seeing this consistently and repeatably when trying to start pulseaudio:

[   70.686993] BUG: unable to handle kernel NULL pointer dereference at 00000000000000c8
[   70.687012] IP: [<ffffffff80294d0a>] balance_dirty_pages_ratelimited_nr+0x20/0x2e3
[   70.687012] PGD 7db07067 PUD 7a1c2067 PMD 0
[   70.687012] Oops: 0000 [#1] PREEMPT SMP
[   70.687012] last sysfs file: /sys/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda/sda1/start
[   70.687012] CPU 0
[   70.687012] Modules linked in: [last unloaded: scsi_wait_scan]
[   70.687012] Pid: 2109, comm: pulseaudio Not tainted 2.6.30-rc3-mmotm0424 #2 Latitude D820
[   70.687012] RIP: 0010:[<ffffffff80294d0a>]  [<ffffffff80294d0a>] balance_dirty_pages_ratelimited_nr+0x20/0x2e3
[   70.687012] RSP: 0000:ffff88007ebcdd28  EFLAGS: 00010296
[   70.687012] RAX: ffff8800010ca100 RBX: 0000000000000000 RCX: 0000000000000035
[   70.687012] RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
[   70.687012] RBP: ffff88007ebcddd8 R08: 5900000000000000 R09: 0000000000000000
[   70.687012] R10: ffffffff80ab9f30 R11: ffff88007ebcdd58 R12: 0000000000000008
[   70.687012] R13: 0000000000000001 R14: 0000000000000000 R15: 0000000000000001
[   70.687012] FS:  00007fb7f4a017e0(0000) GS:ffff8800010d8000(0000) knlGS:0000000000000000
[   70.687012] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   70.687012] CR2: 00000000000000c8 CR3: 000000007ea1f000 CR4: 00000000000006e0
[   70.687012] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[   70.687012] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
[   70.687012] Process pulseaudio (pid: 2109, threadinfo ffff88007ebcc000, task ffff88007e85e140)
[   70.687012] Stack:
[   70.687012]  0000000000000000 0000000000000001 ffff88007ebcdd58 ffffffff8065244d
[   70.687012]  ffff88007ebcdd58 ffff88007d913d80 ffff88007ebcdd88 ffffffff802cbe06
[   70.687012]  ffff88007e8e86d8 ffff88007e8e86d8 ffff88007e22f440 0000000000000000
[   70.687012] Call Trace:
[   70.687012]  [<ffffffff8065244d>] ? sub_preempt_count+0x35/0x48
[   70.687012]  [<ffffffff802cbe06>] ? mnt_drop_write+0x108/0x128
[   70.687012]  [<ffffffff802c735c>] ? file_update_time+0xbd/0xf4
[   70.687012]  [<ffffffff802a4244>] __do_fault+0x2d2/0x315
[   70.687012]  [<ffffffff802a44ec>] handle_mm_fault+0x265/0x598
[   70.687012]  [<ffffffff80250090>] ? down_read_trylock+0x3f/0x4b
[   70.687012]  [<ffffffff806522f7>] ? do_page_fault+0x107/0x228
[   70.687012]  [<ffffffff80652403>] do_page_fault+0x213/0x228
[   70.687012]  [<ffffffff8065037f>] page_fault+0x1f/0x30
[   70.687012] Code: 5e 5f 5b 41 5c 41 5d 41 5e c9 c3 55 48 89 e5 41 57 41 56 41 55 49 89 f5 41 54 41 bc 08 00 00 00 53 48 89 fb 48 81 ec
 88 00 00 00 <48> 8b 87 c8 00 00 00 bf 01 00 00 00 83 b8 68 01 00 00 00 4c 0f
[   70.687012] RIP  [<ffffffff80294d0a>] balance_dirty_pages_ratelimited_nr+0x20/0x2e3
[   70.687012]  RSP <ffff88007ebcdd28>
[   70.687012] CR2: 00000000000000c8
[   71.492293] ---[ end trace 3270cbac9ba6a165 ]---

The tail end of 'strace pulseaudio -vvvv':

open("/dev/snd/pcmC0D0p", O_RDWR|O_NONBLOCK) = 15
close(14) = 0
ioctl(15, AGPIOC_ACQUIRE or APM_IOC_STANDBY, 0x7fffb11a9c00) = 0
fcntl(15, F_GETFL) = 0x8802 (flags O_RDWR|O_NONBLOCK|O_LARGEFILE)
ioctl(15, AGPIOC_INFO, 0x7fffb11a9bfc) = 0
ioctl(15, AGPIOC_SETUP, 0x7fffb11a9bf8) = 0
mmap(NULL, 4096, PROT_READ, MAP_SHARED, 15, 0x80000000) = 0x7f3ea91a2000 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_SHARED, 15, 0x81000000) = 0x7f3ea91a1000

fcntl(15, F_GETFL)                      = 0x8802 (flags O_RDWR|O_NONBLOCK|O_LARGEFILE)
fcntl(15, F_SETFL, O_RDWR|O_LARGEFILE)  = 0
open("/dev/snd/controlC0", O_RDONLY)    = 14
close(14)                               = 0
stat("/usr/share/alsa/alsa.conf", {st_mode=S_IFREG|0644, st_size=8940, ...}) = 0
open("/dev/snd/controlC0", O_RDONLY)    = 14
close(14)                               = 0
open("/dev/snd/controlC0", O_RDWR)      = 14
ioctl(14, USBDEVFS_CONTROL, 0x7fffb11a9eec) = 0
ioctl(14, USBDEVFS_CONNECTINFO, 0x7fffb11a9f90) = 0
ioctl(14, 0xffffffffc008551a, 0x77a640) = 0
ioctl(15, 0xc2604110, 0x7fffb11aa040)   = 0
ioctl(15, 0xc2604110, 0x7fffb11aa040)   = 0
ioctl(15, 0xc2604110, 0x7fffb11aa040)   = 0
ioctl(15, 0xc2604110, 0x7fffb11a9d90)   = 0
ioctl(15, 0xc2604110, 0x7fffb11a9d30)   = 0
ioctl(15, 0xc2604110, 0x7fffb11a9d30)   = 0
ioctl(15, 0xc2604110, 0x7fffb11a9ad0)   = 0
ioctl(15, 0xc2604110, 0x7fffb11a9ad0)   = 0
ioctl(2, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
write(2, "D: alsa-util.c: Maximum hw buffer"..., 49D: alsa-util.c: Maximum hw buffer size is 371 ms
) = 49
ioctl(15, 0xc2604110, 0x7fffb11a9ad0)   = 0
ioctl(15, 0xc2604110, 0x7fffb11a9ab0)   = 0
ioctl(15, 0xc2604110, 0x7fffb11a9ab0)   = 0
ioctl(15, 0xc2604110, 0x7fffb11a9f80)   = 0
ioctl(15, 0xc2604110, 0x7fffb11a9f50)   = 0
ioctl(15, 0xc2604110, 0x7fffb11a9f50)   = 0
ioctl(15, 0xc2604110, 0x7fffb11a9f80)   = 0
ioctl(15, 0xc2604111, 0x7fffb11a9f80)   = 0
ioctl(15, 0xc0884113, 0x7fffb11a9ed0)   = 0

+++ killed by SIGKILL +++

Not sure what pulseaudio is doing with its page faults that causes it. I won't have a chance to bisect this until tomorrow....

author maintainer
#10 lore raw

Re: mmotm 2009-04-24-18-14 uploaded - pulseaudio causes BUG

Quoted 90 lines · On Fri, 24 Apr 2009 23:52:13 -0400 [email protected] wrote:
Quoted 3 lines · On Fri, 24 Apr 2009 18:14:22 PDT, [email protected] said:

The mm-of-the-moment snapshot 2009-04-24-18-14 has been uploaded to

http://userweb.kernel.org/~akpm/mmotm/

Seeing this consistently and repeatably when trying to start pulseaudio:

[   70.686993] BUG: unable to handle kernel NULL pointer dereference at 00000000000000c8
[   70.687012] IP: [<ffffffff80294d0a>] balance_dirty_pages_ratelimited_nr+0x20/0x2e3
[   70.687012] PGD 7db07067 PUD 7a1c2067 PMD 0
[   70.687012] Oops: 0000 [#1] PREEMPT SMP
[   70.687012] last sysfs file: /sys/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda/sda1/start
[   70.687012] CPU 0
[   70.687012] Modules linked in: [last unloaded: scsi_wait_scan]
[   70.687012] Pid: 2109, comm: pulseaudio Not tainted 2.6.30-rc3-mmotm0424 #2 Latitude D820
[   70.687012] RIP: 0010:[<ffffffff80294d0a>]  [<ffffffff80294d0a>] balance_dirty_pages_ratelimited_nr+0x20/0x2e3
[   70.687012] RSP: 0000:ffff88007ebcdd28  EFLAGS: 00010296
[   70.687012] RAX: ffff8800010ca100 RBX: 0000000000000000 RCX: 0000000000000035
[   70.687012] RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
[   70.687012] RBP: ffff88007ebcddd8 R08: 5900000000000000 R09: 0000000000000000
[   70.687012] R10: ffffffff80ab9f30 R11: ffff88007ebcdd58 R12: 0000000000000008
[   70.687012] R13: 0000000000000001 R14: 0000000000000000 R15: 0000000000000001
[   70.687012] FS:  00007fb7f4a017e0(0000) GS:ffff8800010d8000(0000) knlGS:0000000000000000
[   70.687012] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   70.687012] CR2: 00000000000000c8 CR3: 000000007ea1f000 CR4: 00000000000006e0
[   70.687012] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[   70.687012] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
[   70.687012] Process pulseaudio (pid: 2109, threadinfo ffff88007ebcc000, task ffff88007e85e140)
[   70.687012] Stack:
[   70.687012]  0000000000000000 0000000000000001 ffff88007ebcdd58 ffffffff8065244d
[   70.687012]  ffff88007ebcdd58 ffff88007d913d80 ffff88007ebcdd88 ffffffff802cbe06
[   70.687012]  ffff88007e8e86d8 ffff88007e8e86d8 ffff88007e22f440 0000000000000000
[   70.687012] Call Trace:
[   70.687012]  [<ffffffff8065244d>] ? sub_preempt_count+0x35/0x48
[   70.687012]  [<ffffffff802cbe06>] ? mnt_drop_write+0x108/0x128
[   70.687012]  [<ffffffff802c735c>] ? file_update_time+0xbd/0xf4
[   70.687012]  [<ffffffff802a4244>] __do_fault+0x2d2/0x315
[   70.687012]  [<ffffffff802a44ec>] handle_mm_fault+0x265/0x598
[   70.687012]  [<ffffffff80250090>] ? down_read_trylock+0x3f/0x4b
[   70.687012]  [<ffffffff806522f7>] ? do_page_fault+0x107/0x228
[   70.687012]  [<ffffffff80652403>] do_page_fault+0x213/0x228
[   70.687012]  [<ffffffff8065037f>] page_fault+0x1f/0x30
[   70.687012] Code: 5e 5f 5b 41 5c 41 5d 41 5e c9 c3 55 48 89 e5 41 57 41 56 41 55 49 89 f5 41 54 41 bc 08 00 00 00 53 48 89 fb 48 81 ec
 88 00 00 00 <48> 8b 87 c8 00 00 00 bf 01 00 00 00 83 b8 68 01 00 00 00 4c 0f
[   70.687012] RIP  [<ffffffff80294d0a>] balance_dirty_pages_ratelimited_nr+0x20/0x2e3
[   70.687012]  RSP <ffff88007ebcdd28>
[   70.687012] CR2: 00000000000000c8
[   71.492293] ---[ end trace 3270cbac9ba6a165 ]---

The tail end of 'strace pulseaudio -vvvv':

open("/dev/snd/pcmC0D0p", O_RDWR|O_NONBLOCK) = 15
close(14) = 0
ioctl(15, AGPIOC_ACQUIRE or APM_IOC_STANDBY, 0x7fffb11a9c00) = 0
fcntl(15, F_GETFL) = 0x8802 (flags O_RDWR|O_NONBLOCK|O_LARGEFILE)
ioctl(15, AGPIOC_INFO, 0x7fffb11a9bfc) = 0
ioctl(15, AGPIOC_SETUP, 0x7fffb11a9bf8) = 0
mmap(NULL, 4096, PROT_READ, MAP_SHARED, 15, 0x80000000) = 0x7f3ea91a2000 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_SHARED, 15, 0x81000000) = 0x7f3ea91a1000

fcntl(15, F_GETFL)                      = 0x8802 (flags O_RDWR|O_NONBLOCK|O_LARGEFILE)
fcntl(15, F_SETFL, O_RDWR|O_LARGEFILE)  = 0
open("/dev/snd/controlC0", O_RDONLY)    = 14
close(14)                               = 0
stat("/usr/share/alsa/alsa.conf", {st_mode=S_IFREG|0644, st_size=8940, ...}) = 0
open("/dev/snd/controlC0", O_RDONLY)    = 14
close(14)                               = 0
open("/dev/snd/controlC0", O_RDWR)      = 14
ioctl(14, USBDEVFS_CONTROL, 0x7fffb11a9eec) = 0
ioctl(14, USBDEVFS_CONNECTINFO, 0x7fffb11a9f90) = 0
ioctl(14, 0xffffffffc008551a, 0x77a640) = 0
ioctl(15, 0xc2604110, 0x7fffb11aa040)   = 0
ioctl(15, 0xc2604110, 0x7fffb11aa040)   = 0
ioctl(15, 0xc2604110, 0x7fffb11aa040)   = 0
ioctl(15, 0xc2604110, 0x7fffb11a9d90)   = 0
ioctl(15, 0xc2604110, 0x7fffb11a9d30)   = 0
ioctl(15, 0xc2604110, 0x7fffb11a9d30)   = 0
ioctl(15, 0xc2604110, 0x7fffb11a9ad0)   = 0
ioctl(15, 0xc2604110, 0x7fffb11a9ad0)   = 0
ioctl(2, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
write(2, "D: alsa-util.c: Maximum hw buffer"..., 49D: alsa-util.c: Maximum hw buffer size is 371 ms
) = 49
ioctl(15, 0xc2604110, 0x7fffb11a9ad0)   = 0
ioctl(15, 0xc2604110, 0x7fffb11a9ab0)   = 0
ioctl(15, 0xc2604110, 0x7fffb11a9ab0)   = 0
ioctl(15, 0xc2604110, 0x7fffb11a9f80)   = 0
ioctl(15, 0xc2604110, 0x7fffb11a9f50)   = 0
ioctl(15, 0xc2604110, 0x7fffb11a9f50)   = 0
ioctl(15, 0xc2604110, 0x7fffb11a9f80)   = 0
ioctl(15, 0xc2604111, 0x7fffb11a9f80)   = 0
ioctl(15, 0xc0884113, 0x7fffb11a9ed0)   = 0
Quoted 4 lines

+++ killed by SIGKILL +++

Not sure what pulseaudio is doing with its page faults that causes it. I won't have a chance to bisect this until tomorrow....

Sound drivers install their own vm_operations.fault() handlers. I assume that mm-close-page_mkwrite-races-try-3.patch is causing core MM to call calling balance_dirty_pages() due to a fault against a sounds device, which is somewhat wrong.

This might plug things up, but I didn't put a lot of thought into it.

mm/memory.c renamed from mm/memory.c~mm-close-page_mkwrite-races-try-3-fix +3 -2
@@ -2129,7 +2129,8 @@ unlock:
 			set_page_dirty(dirty_page);
 			unlock_page(dirty_page);
 			page_cache_release(dirty_page);
-			balance_dirty_pages_ratelimited(mapping);
+			if (mapping)
+				balance_dirty_pages_ratelimited(mapping);
 		}
 	}
 	return ret;
@@ -2769,7 +2770,7 @@ out:
 			page_mkwrite = 1;
 		unlock_page(dirty_page);
 		put_page(dirty_page);
-		if (page_mkwrite)
+		if (page_mkwrite && mapping)
 			balance_dirty_pages_ratelimited(mapping);
 	} else {
 		unlock_page(vmf.page);

_