openwrtv3/target/linux/generic/patches-3.9
Felix Fietkau 3848e6a246 kernel: crashlog: Avoid out-of-bounds write
vsnprintf returns the number of chars that would have been written, not
the actual number of chars written. This can lead to crashlog_buf->len
being too big which in turn can lead to get_maxlen() returning negative
numbers. The length argument of kmsg_dump_get_buffer will be casted to
a size_t which makes a negative input a big positive number allowing
kmsg_dump_get_buffer to write out of bounds.

Fix this by using vscnprintf which returns the actually written number
of chars.

Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>

SVN-Revision: 37820
2013-08-21 20:59:25 +00:00
..
010-mtd_mp25p80_add_gd25q32_gd25q64.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
020-ssb_update.patch kernel: update bcma and ssb to version from wireless-testing/master tag master-2013-07-18 2013-07-19 12:02:34 +00:00
025-bcma_backport.patch kernel: update bcma and ssb to version from wireless-testing/master tag master-2013-07-18 2013-07-19 12:02:34 +00:00
026-bcma_pcie_up_down.patch kernel: fix DMA error when BCM4331 is connected to BCM4706 2013-08-05 16:17:05 +00:00
031-PCI-Remove-__weak-annotation-from-pcibios_get_phb_of.patch linux/3.9: implement pcibios_get_phb_of_node for MIPS 2013-04-30 10:44:08 +00:00
032-MIPS-PCI-Implement-pcibios_get_phb_of_node.patch linux/3.9: implement pcibios_get_phb_of_node for MIPS 2013-04-30 10:44:08 +00:00
060-hso_devices.patch refresh patches against -rc4 2013-03-25 13:53:48 +00:00
061-arm_xz_decompressor_build_fix.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
062-mips_decompressor_build_fix.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
084-x86_fix_perf_uclibc_build.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
100-overlayfs.patch refresh against -rc7 2013-04-15 16:10:01 +00:00
101-overlayfs_path_ref.patch kernel: fix a reference counting bug in overlayfs 2013-06-22 14:00:12 +00:00
102-ehci_hcd_ignore_oc.patch refresh patches against -rc4 2013-03-25 13:53:48 +00:00
110-fix_mtd_include.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
120-bridge_allow_receiption_on_disabled_port.patch kernel: fix another corner case in the bridge state patch (#13874) 2013-07-15 15:12:33 +00:00
200-fix_localversion.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
201-extra_optimization.patch build: unify target independent optimization options 2013-07-29 09:38:29 +00:00
202-reduce_module_size.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
203-kallsyms_uncompressed.patch refresh patches against -rc4 2013-03-25 13:53:48 +00:00
204-module_strip.patch kernel: update to kernel 3.9.10 and refresh patches 2013-07-13 22:43:10 +00:00
210-darwin_scripts_include.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
212-byteshift_portability.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
220-gc_sections.patch kernel: update linux 3.9 to 3.9.8 2013-06-30 13:10:12 +00:00
221-module_exports.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
230-openwrt_lzma_options.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
250-netfilter_depends.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
251-sound_kconfig.patch kernel: make SND_COMPRESS_OFFLOAD symbol visible for selection (#13193) 2013-03-19 14:13:39 +00:00
252-mv_cesa_depends.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
253-ssb_b43_default_on.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
254-textsearch_kconfig_hacks.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
255-lib80211_kconfig_hacks.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
256-crypto_add_kconfig_prompts.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
257-wireless_ext_kconfig_hack.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
258-netfilter_netlink_kconfig_hack.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
259-regmap_dynamic.patch refresh against -rc7 2013-04-15 16:10:01 +00:00
260-crypto_test_dependencies.patch kernel: update to kernel 3.9.10 and refresh patches 2013-07-13 22:43:10 +00:00
261-move_bcm963xx_tag.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
262-compressor_kconfig_hack.patch kernel: make zlib and lzo modules selectable 2013-05-09 20:50:07 +00:00
300-mips_expose_boot_raw.patch kernel: refresh patches against 3.9-rc6 2013-04-09 16:16:20 +00:00
301-mips_image_cmdline_hack.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
302-mips_no_branch_likely.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
304-mips_disable_fpu.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
305-mips_module_reloc.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
306-mips_mem_functions_performance.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
309-mips_fuse_workaround.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
310-arm_module_unresolved_weak_sym.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
320-ppc4xx_optimization.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
321-powerpc_crtsavres_prereq.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
322-ppc4xx-crypto-compile-fix.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
400-rootfs_split.patch kernel: fix a memory leak in split_rootfs_data() 2013-04-28 17:01:56 +00:00
401-partial_eraseblock_write.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
410-mtd_info_move_forward_decl.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
420-redboot_space.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
430-mtd_myloader_partition_parser.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
440-block2mtd_init.patch refresh against -rc7 2013-04-15 16:10:01 +00:00
441-block2mtd_refresh.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
442-block2mtd_probe.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
450-mtd_plat_nand_chip_fixup.patch refresh patches against -rc4 2013-03-25 13:53:48 +00:00
451-mtd_fix_nand_correct_data_return_code.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
460-cfi_cmdset_0002_no_erase_suspend.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
470-mtd_m25p80_add_pm25lv_flash_support.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
473-mtd_m25p80_add_w25q128.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
474-mtd_mp25p80_add_pm25lq032.patch kernel: refresh patches against 3.9-rc6 2013-04-09 16:16:20 +00:00
475-mtd_cfi_cmdset_0002-add-buffer-write-cmd-timeout.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
476-mtd-m25p80-allow-to-disable-small-sector-erase.patch kernel: refresh patches against 3.9-rc6 2013-04-09 16:16:20 +00:00
478-mtd-partial_eraseblock_unlock.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
500-yaffs-Kbuild-integration.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
501-yaffs-Fix-directory-unlinking-in-yaffs1-mode.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
502-yaffs-Switch-from-semaphores-to-mutexes.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
503-yaffs-Replace-yaffs_dir_llseek-with-Linux-generic-ll.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
504-yaffs-Mods-for-Linux-3.0-and-fix-a-typo.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
505-yaffs-3.2-use-MTD_OPS_AUTO_OOB.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
506-yaffs-3.2-dont-use-i_nlink-directly.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
507-yaffs-3.3_fix.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
508-yaffs-3.3-use-mtd_-helpers.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
509-yaffs-3.4-add-underscore-to-mtd-internal-names.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
510-yaffs-3.4-use-d_make_root.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
511-yaffs-3.5-use-clear_inode.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
512-yaffs-3.5-convert-to-use-kuid_t-kgid_t.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
513-yaffs-3.6-fix-dir_inode-ops.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
514-yaffs-3.6-use-delayed-work-instead-of-write_super.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
520-squashfs_update_xz_comp_opts.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
530-jffs2_make_lzma_available.patch kernel: refresh 3.9 patches 2013-03-17 19:46:32 +00:00
531-debloat_lzma.patch kernel: update to kernel 3.9.10 and refresh patches 2013-07-13 22:43:10 +00:00
532-jffs2_eofdetect.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
540-crypto-xz-decompression-support.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
541-ubifs-xz-decompression-support.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
550-ubifs-symlink-xattr-support.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
551-ubifs-fix-default-compression-selection.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
600-netfilter_layer7_2.22.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
601-netfilter_layer7_pktmatch.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
602-netfilter_layer7_match.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
603-netfilter_layer7_2.6.36_fix.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
604-netfilter_conntrack_flush.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
610-netfilter_match_bypass_default_checks.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
611-netfilter_match_bypass_default_table.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
612-netfilter_match_reduce_memory_access.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
613-netfilter_optional_tcp_window_check.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
620-sched_esfq.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
621-sched_act_connmark.patch kernel: fix crash in act_connmark in 3.9 and 3.10 (fixes #13916, #13876) 2013-07-21 13:53:54 +00:00
630-packet_socket_type.patch kernel: update linux 3.9 to 3.9.8 2013-06-30 13:10:12 +00:00
640-bridge_no_eap_forward.patch refresh patches against -rc4 2013-03-25 13:53:48 +00:00
641-bridge_always_accept_eap.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
642-bridge_port_isolate.patch kernel: update linux 3.9 patches to rc8 2013-04-28 11:55:23 +00:00
643-bridge_remove_ipv6_dependency.patch kernel: update linux 3.9 to 3.9.8 2013-06-30 13:10:12 +00:00
644-bridge_optimize_netfilter_hooks.patch kernel: update 3.9 to 3.9.11 2013-07-22 15:30:56 +00:00
650-pppoe_header_pad.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
651-wireless_mesh_header.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
652-atm_header_changes.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
653-disable_netlink_trim.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
655-increase_skb_pad.patch refresh patches against -rc4 2013-03-25 13:53:48 +00:00
656-skb_reduce_truesize-helper.patch kernel: add patches by Dave Täht to reduce buffer size in longer queues to reduce memory pressure 2013-04-10 13:11:16 +00:00
657-qdisc_reduce_truesize.patch refresh against -rc7 2013-04-15 16:10:01 +00:00
660-fq_codel_defaults.patch kernel: tune fq_codel defaults for common netdevice speeds 2013-04-10 13:11:21 +00:00
661-fq_codel_keep_dropped_stats.patch kernel: keep dropped stats in fq_codel 2013-04-10 13:11:25 +00:00
662-use_fq_codel_by_default.patch kernel: force CONFIG_NET_SCHED=y for fq_codel (#13360) 2013-04-15 20:40:29 +00:00
663-remove_pfifo_fast.patch kernel: switch default qdisc from pfifo_fast to fq_codel and remove pfifo_fast 2013-04-10 13:11:29 +00:00
670-ipv6-allow-rejecting-with-source-address-failed-policy.patch kernel: update linux 3.9 to 3.9.8 2013-06-30 13:10:12 +00:00
700-swconfig.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
701-phy_extension.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
702-phy_add_aneg_done_function.patch kernel: refresh 3.9 patches 2013-03-17 19:46:32 +00:00
703-phy-add-detach-callback-to-struct-phy_driver.patch kernel: refresh 3.9 patches 2013-03-17 19:46:32 +00:00
710-phy-add-mdio_register_board_info.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
720-phy_adm6996.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
721-phy_packets.patch kernel: update linux 3.9 patches to rc8 2013-04-28 11:55:23 +00:00
722-phy_mvswitch.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
723-phy_ip175c.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
724-phy_ar8216.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
725-phy_rtl8306.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
726-phy_rtl8366.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
727-phy-rtl8367.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
728-phy-micrel.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
729-phy-rtl8367b.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
729-phy-tantos.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
730-phy_b53.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
750-hostap_txpower.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
800-usb-ohci-multiple-platform-driver-fix.patch kernel: update linux 3.9 to 3.9.8 2013-06-30 13:10:12 +00:00
810-pci_disable_common_quirks.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
811-pci_disable_usb_common_quirks.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
820-usb_add_usb_find_device_by_name.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
830-ledtrig_morse.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
831-ledtrig_netdev.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
832-ledtrig_usbdev.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
840-rtc7301.patch kernel: update 3.9 to 3.9.3 2013-05-20 16:57:00 +00:00
841-rtc_pt7c4338.patch kernel: update 3.9 to 3.9.3 2013-05-20 16:57:00 +00:00
861-04_spi_gpio_implement_spi_delay.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
862-gpio_spi_driver.patch kernel: refresh patches against 3.9-rc6 2013-04-09 16:16:20 +00:00
863-gpiommc.patch strict_strtoul is obsolete, use kstrtoul instead 2013-07-27 09:23:18 +00:00
864-gpiommc_configfs_locking.patch strict_strtoul is obsolete, use kstrtoul instead 2013-07-27 09:23:18 +00:00
870-hifn795x_byteswap.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
880-gateworks_system_controller.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
890-8250_optional_sysrq.patch kernel: do not accept sysrq characters via serial port 2013-07-09 12:52:00 +00:00
900-slab_maxsize.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
901-debloat_sock_diag.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
902-debloat_proc.patch kernel: update linux 3.9 to 3.9.8 2013-06-30 13:10:12 +00:00
903-debloat_direct_io.patch kernel: refresh 3.9 patches 2013-03-17 19:46:32 +00:00
910-kobject_uevent.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
911-kobject_add_broadcast_uevent.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
920-unable_to_open_console.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
921-use_preinit_as_init.patch kernel: refresh patches against 3.9-rc6 2013-04-09 16:16:20 +00:00
930-crashlog.patch kernel: crashlog: Avoid out-of-bounds write 2013-08-21 20:59:25 +00:00
940-ocf_kbuild_integration.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
941-ocf_20120127.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
950-vm_exports.patch refresh against -rc7 2013-04-15 16:10:01 +00:00
960-decompress_unlzo_fix.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
970-remove-unsane-filenames-from-deps_initramfs-list.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
980-arm_openwrt_machtypes.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
992-mpcore_wdt_fix_watchdog_counter_loading.patch kernel: refresh 3.9 patches 2013-03-17 19:46:32 +00:00
993-mpcore_wdt_fix_wdioc_setoptions_handling.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
994-mpcore_wdt_fix_timer_mode_setup.patch kernel: add support for 3.9-rc2 2013-03-14 14:45:56 +00:00
995-mpcore_twd_calibrate_single_core.patch refresh against -rc7 2013-04-15 16:10:01 +00:00
996-zsmalloc_allow_module_build.patch kernel: allow building zsmalloc as a module again 2013-05-09 19:19:36 +00:00
997-device_tree_cmdline.patch lantiq: enable retrieving kernel args from bootloader 2013-05-30 16:00:42 +00:00