openwrtv4/target/linux
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
..
adm5120 adm5120: drop 3.8 and 3.14 support 2015-03-16 07:41:19 +00:00
adm8668 kernel: move CONFIG_MIPS_O32_FP64_SUPPORT to generic configs 2015-03-01 11:37:15 +00:00
ar7 ar7: drop 3.14 support 2015-03-16 07:41:10 +00:00
ar71xx ar71xx: fix a double dereference in the unaligned access patch 2015-03-19 11:58:30 +00:00
arm64 kernel: disable ARCH_NEEDS_CPU_IDLE_COUPLED 2015-03-06 07:56:34 +00:00
at91 kernel: disable ARCH_NEEDS_CPU_IDLE_COUPLED 2015-03-06 07:56:34 +00:00
ath25 ath25: set myself as maintainer 2015-03-13 03:02:34 +00:00
au1000 au1000: drop 005-fix-cpu-clk.patch 2015-03-22 07:03:02 +00:00
bcm53xx bcm53xx: add missing cache controller errata options 2015-03-23 10:14:27 +00:00
brcm47xx kernel: backport rest of bcma patches 2015-03-24 10:39:10 +00:00
brcm63xx brcm63xx: switch maintainer 2015-03-16 19:51:17 +00:00
brcm2708 brcm2708: remove a patch that was added in the stable update (fixes #19253) 2015-03-21 21:24:08 +00:00
cns3xxx cns3xxx: drop 3.14 support 2015-03-16 07:40:41 +00:00
cns21xx mark 3.10 targets as broken 2015-03-24 10:38:50 +00:00
cobalt cobalt: framebuffer device has moved 2015-03-12 10:05:48 +00:00
gemini mark 3.10 targets as broken 2015-03-24 10:38:50 +00:00
generic kernel: yaffs: use new_sync_{read,write} for 3.18+ 2015-03-25 08:59:12 +00:00
imx6 kernel: disable ARCH_NEEDS_CPU_IDLE_COUPLED 2015-03-06 07:56:34 +00:00
iop32x kernel: disbale HAMRADIO in generic config 2015-03-06 07:56:21 +00:00
ipq806x ipq806x: fix AP148 boot from NOR 2015-03-15 19:39:41 +00:00
ixp4xx ixp4xx: drop 3.14 support 2015-03-16 07:41:05 +00:00
kirkwood kirkwood: add missing symbol that broke full builds 2015-03-10 11:03:10 +00:00
lantiq lantiq/xrx200: cleanup default packages 2015-03-17 09:44:06 +00:00
malta malta: drop 3.14 support 2015-03-16 07:39:57 +00:00
mcs814x kernel: disbale HAMRADIO in generic config 2015-03-06 07:56:21 +00:00
mpc85xx mpc85xx: drop 3.14 support 2015-03-16 07:40:47 +00:00
mvebu mvebu: update mamba dts 2015-03-23 12:44:30 +00:00
mxs kernel: disable ARCH_NEEDS_CPU_IDLE_COUPLED 2015-03-06 07:56:34 +00:00
netlogic netlogic: bump to 3.18 2015-03-16 10:58:43 +00:00
octeon octeon: add er8 sysupgrade support 2015-03-20 08:49:08 +00:00
omap omap: remove old kernel versions 2015-03-16 05:51:56 +00:00
omap24xx omap24xx: Add basic config for linux-4.0 2015-03-19 18:45:32 +00:00
orion mark 3.10 targets as broken 2015-03-24 10:38:50 +00:00
oxnas oxnas: remove pre kernel 3.18 support from pinctrl driver 2015-03-21 21:47:20 +00:00
ppc40x mark 3.10 targets as broken 2015-03-24 10:38:50 +00:00
ppc44x ppc44x: use the mtdsplit framework for the Taishan 2015-03-11 12:20:03 +00:00
pxa kernel: disable ARCH_NEEDS_CPU_IDLE_COUPLED 2015-03-06 07:56:34 +00:00
ramips ramips: make ethernet register map u16 instead of u32 2015-03-22 15:11:14 +00:00
rb532 kernel: disbale HAMRADIO in generic config 2015-03-06 07:56:21 +00:00
realview realview: drop 3.14 support 2015-03-16 07:40:02 +00:00
sibyte all targets: remove all =m kernel config symbols 2015-01-05 13:02:44 +00:00
sparc kernel: disbale HAMRADIO in generic config 2015-03-06 07:56:21 +00:00
sunxi sunxi: drop 3.14 support 2015-03-16 07:41:24 +00:00
uml uml: bump to 3.18 2015-03-22 12:36:57 +00:00
x86 x86: use PARTUUID instead explicitly specifying the device by default 2015-03-24 10:08:12 +00:00
x86_64 x86_64: fix PARTUUID format with leading zeros 2015-03-24 10:06:40 +00:00
xburst mark 3.10 targets as broken 2015-03-24 10:38:50 +00:00
Makefile