Openwrt/target/linux/generic/patches-4.0
Gabor Juhos 621979b49f kernel: yaffs: use new_sync_{read,write} for 3.18+
Using the do_sync_{read,write} functions in conjunction
with the generic_file_{read,write}_iter causes a kernel
panic like this:

  root@OpenWrt:/# mount -t yaffs /dev/mtdblock5 /mnt
  [ 2884.110000] yaffs: dev is 32505861 name is "mtdblock5" rw
  [ 2884.120000] yaffs: passed flags ""
  root@OpenWrt:/# hexdump -vC -n 64 /mnt/kernel
  [ 2902.700000] CPU 0 Unable to handle kernel paging request at virtual \
    address 00000000, epc == 00000000, ra == 80129414
  [ 2902.710000] Oops[#1]:
  [ 2902.710000] CPU: 0 PID: 1030 Comm: hexdump Not tainted 3.18.9 #2
  [ 2902.710000] task: 878e7a20 ti: 868c6000 task.ti: 868c6000
  [ 2902.710000] $ 0   : 00000000 fffffff8 00000000 00000000
  [ 2902.710000] $ 4   : 868c7e70 868c7ea8 00000001 868c7f08
  [ 2902.710000] $ 8   : 00000038 80064f18 80072280 00000000
  [ 2902.710000] $12   : 7fa152b8 7709e3a0 00c42008 7709e3a0
  [ 2902.710000] $16   : 868c7f08 86a46000 00000010 878e7a20
  [ 2902.710000] $20   : 7705c4b0 00000010 00000000 00000000
  [ 2902.710000] $24   : 770960bc 7707dd78
  [ 2902.710000] $28   : 868c6000 868c7e58 7f8e7030 80129414
  [ 2902.710000] Hi    : 00000000
  [ 2902.710000] Lo    : ffffffff
  [ 2902.710000] epc   : 00000000   (null)
  [ 2902.710000]     Not tainted
  [ 2902.710000] ra    : 80129414 do_sync_read+0x7c/0xb4
  [ 2902.710000] Status: 1900dc03 KERNEL EXL IE
  [ 2902.710000] Cause : 00800008
  [ 2902.710000] BadVA : 00000000
  [ 2902.710000] PrId  : 00019750 (MIPS 74Kc)

Change the yaffs code to use the new_sync_{read,write} functions
instead.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 44974
2015-03-25 08:59:12 +00:00
..
000-keep_initrafs_the_default.patch
021-bcma-from-4.1.patch kernel: backport rest of bcma patches 2015-03-24 10:39:10 +00:00
050-backport_netfilter_rtcache.patch kernel: fix ipsec related regression in the netfilter rtcache patch 2015-03-20 22:13:34 +00:00
060-mips_decompressor_memmove.patch
070-bgmac-register-fixed-PHY-for-ARM-BCM470X-BCM5301X-ch.patch kernel: backport bgmac patches 2015-03-21 11:45:50 +00:00
071-bgmac-allow-enabling-on-ARCH_BCM_5301X.patch kernel: backport bgmac patches 2015-03-21 11:45:50 +00:00
102-ehci_hcd_ignore_oc.patch
120-bridge_allow_receiption_on_disabled_port.patch
132-mips_inline_dma_ops.patch
200-fix_localversion.patch
201-extra_optimization.patch
202-reduce_module_size.patch
203-kallsyms_uncompressed.patch
204-module_strip.patch
210-darwin_scripts_include.patch
212-byteshift_portability.patch
220-gc_sections.patch
221-module_exports.patch
230-openwrt_lzma_options.patch
250-netfilter_depends.patch
251-sound_kconfig.patch
252-mv_cesa_depends.patch
253-ssb_b43_default_on.patch
254-textsearch_kconfig_hacks.patch
255-lib80211_kconfig_hacks.patch
256-crypto_add_kconfig_prompts.patch
257-wireless_ext_kconfig_hack.patch
258-netfilter_netlink_kconfig_hack.patch
259-regmap_dynamic.patch
260-crypto_test_dependencies.patch
262-compressor_kconfig_hack.patch
270-bridge_header_fix.patch kernel: fix 3.18+ if_bridge.h header conflict with musl 2015-02-27 07:35:26 +00:00
300-mips_expose_boot_raw.patch
301-mips_image_cmdline_hack.patch
302-mips_no_branch_likely.patch
304-mips_disable_fpu.patch
305-mips_module_reloc.patch kernel: revert a broken chunk in the mips module reloc patch fix 2015-03-02 20:33:02 +00:00
306-mips_mem_functions_performance.patch
309-mips_fuse_workaround.patch
310-arm_module_unresolved_weak_sym.patch
320-ppc4xx_optimization.patch
321-powerpc_crtsavres_prereq.patch
330-MIPS-kexec-Accept-command-line-parameters-from-users.patch
400-mtd-add-rootfs-split-support.patch
401-mtd-add-support-for-different-partition-parser-types.patch
402-mtd-use-typed-mtd-parsers-for-rootfs-and-firmware-split.patch
403-mtd-hook-mtdsplit-to-Kbuild.patch
404-mtd-add-more-helper-functions.patch
405-mtd-old-firmware-uimage-splitter.patch
406-mtd-old-rootfs-squashfs-splitter.patch
410-mtd-move-forward-declaration-of-struct-mtd_info.patch
411-mtd-partial_eraseblock_write.patch
412-mtd-partial_eraseblock_unlock.patch
420-mtd-redboot_space.patch
430-mtd-add-myloader-partition-parser.patch atheros: v3.18: rename ATHEROS_AR231X symbol to ATH25 2015-03-13 02:57:51 +00:00
431-mtd-bcm47xxpart-support-for-Xiaomi-specific-board_da.patch
432-mtd-bcm47xxpart-detect-T_Meter-partition.patch
440-block2mtd_init.patch
441-block2mtd_probe.patch
450-mtd-nand-allow-to-use-platform-specific-chip-fixup.patch
451-mtd-nand-fix-return-code-of-nand_correct_data-function.patch
460-mtd-cfi_cmdset_0002-no-erase_suspend.patch
461-mtd-cfi_cmdset_0002-add-buffer-write-cmd-timeout.patch
472-mtd-m25p80-add-support-for-Winbond-W25X05-flash.patch
480-mtd-set-rootfs-to-be-root-dev.patch
490-ubi-auto-attach-mtd-device-named-ubi-or-data-on-boot.patch generic/4.0: the ubi patches has been fixed in the 3.19 patchset already 2015-02-24 18:27:49 +00:00
491-ubi-auto-create-ubiblock-device-for-rootfs.patch generic/4.0: refresh patches 2015-02-24 18:53:14 +00:00
492-try-auto-mounting-ubi0-rootfs-in-init-do_mounts.c.patch
493-ubi-set-ROOT_DEV-to-ubiblock-rootfs-if-unset.patch
494-mtd-ubi-add-EOF-marker-support.patch generic/4.0: fix ubi EOF marker patch 2015-03-19 10:13:21 +00:00
500-yaffs-Kbuild-integration.patch
501-yaffs-3.5-convert-to-use-kuid_t-kgid_t.patch
502-yaffs-3.10-disable-proc-entry.patch
503-yaffs-3.12-convert-readdir-to-iterate.patch
503-yaffs-add-tags-9bytes-mount-option.patch
504-yaffs-fix-compat-tags-handling.patch
505-yaffs-3.16-new-fops.patch kernel: yaffs: use new_sync_{read,write} for 3.18+ 2015-03-25 08:59:12 +00:00
520-squashfs_update_xz_comp_opts.patch
530-jffs2_make_lzma_available.patch
531-debloat_lzma.patch
532-jffs2_eofdetect.patch
540-crypto-xz-decompression-support.patch
541-ubifs-xz-decompression-support.patch
551-ubifs-fix-default-compression-selection.patch
600-netfilter_layer7_2.22.patch
601-netfilter_layer7_pktmatch.patch
602-netfilter_layer7_match.patch
603-netfilter_layer7_2.6.36_fix.patch
604-netfilter_conntrack_flush.patch generic/4.0: refresh patches 2015-02-24 18:53:14 +00:00
610-netfilter_match_bypass_default_checks.patch
611-netfilter_match_bypass_default_table.patch
612-netfilter_match_reduce_memory_access.patch
613-netfilter_optional_tcp_window_check.patch
615-netfilter_add_xt_id_match.patch
616-net_optimize_xfrm_calls.patch
620-sched_esfq.patch
630-packet_socket_type.patch kernel: bump to 3.14.35, 3.18.9, 3.19.1 and 4.0-rc4 2015-03-18 18:21:08 +00:00
640-bridge_no_eap_forward.patch
641-bridge_always_accept_eap.patch
642-bridge_port_isolate.patch
643-bridge_remove_ipv6_dependency.patch kernel: bump to 3.14.35, 3.18.9, 3.19.1 and 4.0-rc4 2015-03-18 18:21:08 +00:00
644-bridge_optimize_netfilter_hooks.patch
645-bridge_multicast_to_unicast.patch generic/4.0: refresh patches 2015-02-24 18:53:14 +00:00
650-pppoe_header_pad.patch
651-wireless_mesh_header.patch
652-atm_header_changes.patch
653-disable_netlink_trim.patch
655-increase_skb_pad.patch
656-skb_reduce_truesize-helper.patch
657-qdisc_reduce_truesize.patch
660-fq_codel_defaults.patch
661-fq_codel_keep_dropped_stats.patch
662-use_fq_codel_by_default.patch
663-remove_pfifo_fast.patch
664-codel_fix_3_12.patch
666-Add-support-for-MAP-E-FMRs-mesh-mode.patch generic/4.0: refresh patches 2015-02-24 18:53:14 +00:00
668-fix-ipv6-throw-routes.patch ipv6: fix throw routes 2015-03-19 15:46:03 +00:00
670-ipv6-allow-rejecting-with-source-address-failed-policy.patch
671-net-provide-defines-for-_POLICY_FAILED-until-all-cod.patch
680-NET-skip-GRO-for-foreign-MAC-addresses.patch kernel: replace GRO optimization patch with a new one that supports VLANs/bridges with different MAC addresses 2015-03-18 18:22:41 +00:00
700-swconfig.patch kernel: bump to 3.14.35, 3.18.9, 3.19.1 and 4.0-rc4 2015-03-18 18:21:08 +00:00
701-phy_extension.patch kernel: bump to 3.14.35, 3.18.9, 3.19.1 and 4.0-rc4 2015-03-18 18:21:08 +00:00
702-phy_add_aneg_done_function.patch
703-phy-add-detach-callback-to-struct-phy_driver.patch
704-phy-no-genphy-soft-reset.patch
710-phy-add-mdio_register_board_info.patch
720-phy_adm6996.patch
721-phy_packets.patch kernel: replace GRO optimization patch with a new one that supports VLANs/bridges with different MAC addresses 2015-03-18 18:22:41 +00:00
722-phy_mvswitch.patch
723-phy_ip175c.patch
724-phy_ar8216.patch
725-phy_rtl8306.patch
726-phy_rtl8366.patch
727-phy-rtl8367.patch
728-phy-rtl8367b.patch
729-phy-tantos.patch
730-phy_b53.patch
731-phy_mvswitch_3.10_compilation.patch
732-phy-ar8216-led-support.patch
733-phy_mvsw61xx.patch
750-hostap_txpower.patch
773-bgmac-add-srab-switch.patch kernel: backport bgmac patches 2015-03-21 11:45:50 +00:00
775-bgmac-check-length-of-received-frame.patch kernel: backport bgmac patches 2015-03-21 11:45:50 +00:00
780-igb-Fix-Null-pointer-dereference-in-igb_reset_q_vect.patch
785-hso-support-0af0-9300.patch
810-pci_disable_common_quirks.patch
811-pci_disable_usb_common_quirks.patch
820-usb_add_usb_find_device_by_name.patch
830-ledtrig_morse.patch
831-ledtrig_netdev.patch
832-ledtrig_usbdev.patch
834-ledtrig-libata.patch
840-rtc7301.patch
841-rtc_pt7c4338.patch
861-04_spi_gpio_implement_spi_delay.patch
862-gpio_spi_driver.patch generic/4.0: refresh patches 2015-02-24 18:53:14 +00:00
863-gpiommc.patch kernel: bump to 3.14.35, 3.18.9, 3.19.1 and 4.0-rc4 2015-03-18 18:21:08 +00:00
864-gpiommc_configfs_locking.patch
870-hifn795x_byteswap.patch
880-gateworks_system_controller.patch
890-8250_optional_sysrq.patch
900-slab_maxsize.patch
901-debloat_sock_diag.patch
902-debloat_proc.patch kernel: bump to 3.14.35, 3.18.9, 3.19.1 and 4.0-rc4 2015-03-18 18:21:08 +00:00
903-debloat_direct_io.patch
910-kobject_uevent.patch
911-kobject_add_broadcast_uevent.patch
921-use_preinit_as_init.patch
922-always-create-console-node-in-initramfs.patch
930-crashlog.patch kernel: bump to 3.14.35, 3.18.9, 3.19.1 and 4.0-rc4 2015-03-18 18:21:08 +00:00
940-ocf_kbuild_integration.patch
941-ocf_20120127.patch
960-decompress_unlzo_fix.patch
970-remove-unsane-filenames-from-deps_initramfs-list.patch
980-arm_openwrt_machtypes.patch
990-gpio_wdt.patch
997-device_tree_cmdline.patch
998-enable_wilink_platform_without_drivers.patch