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
Felix Fietkau
e2aa807b60
kernel: add back missing declaration in the MIPS DMA patch that broke octeon
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 37811
2013-08-18 05:49:57 +00:00
Luka Perkov
4f679c1775
kernel: drop dead pwm code
...
The files have last been used with 2.6.x kernel.
Signed-off-by: Luka Perkov <luka@openwrt.org>
SVN-Revision: 37810
2013-08-18 01:25:41 +00:00
Luka Perkov
a2dccb958c
kernel: drop dead glamo code
...
The code is not used since the s3c24xx target was removed.
Signed-off-by: Luka Perkov <luka@openwrt.org>
SVN-Revision: 37809
2013-08-18 01:25:40 +00:00
Luka Perkov
f1509b1958
kernel: replace local m25p80 patches with upstream submission
...
http://lists.infradead.org/pipermail/linux-mtd/2013-August/048154.html
http://patchwork.ozlabs.org/patch/268019/
Signed-off-by: Luka Perkov <luka@openwrt.org>
SVN-Revision: 37808
2013-08-17 23:54:41 +00:00
Luka Perkov
18a36d3062
kernel: drop 010-mtd_mp25p80_add_gd25q32_gd25q64.patch
...
The patch in question has been accepted upstream in commit:
55bf75b7dd8ec875d048824f3cdecf8254e292e5
Signed-off-by: Luka Perkov <luka@openwrt.org>
SVN-Revision: 37807
2013-08-17 22:29:05 +00:00
Luka Perkov
5c018d5096
kernel: drop 110-fix_mtd_include.patch
...
Kernel builds just fine without this patch so we can just remove it.
Signed-off-by: Luka Perkov <luka@openwrt.org>
SVN-Revision: 37805
2013-08-17 17:09:41 +00:00
Felix Fietkau
d16060d5a3
kernel: fix a small #ifdef bug in the noncoherent dma check rework
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 37791
2013-08-15 09:29:53 +00:00
Felix Fietkau
e27f67b30a
kernel: improve dma ops inlining patches
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 37790
2013-08-15 09:23:07 +00:00
Felix Fietkau
8b8875b305
ocf: switch MODULE_LICENSE from BSD to "Dual BSD/GPL" to make the kernel recognize modules as GPL-compatible
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 37769
2013-08-14 08:52:19 +00:00
Felix Fietkau
3ead1e058c
kernel: add patch to inline mips dma mapping functions - reduces code size and improves performance
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 37763
2013-08-12 17:26:08 +00:00
Felix Fietkau
e5fd991c6c
rtl8367: add support for configuring the VLAN FID
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 37760
2013-08-12 17:25:25 +00:00
Florian Fainelli
d1914b4939
kernel: add some missing config symbols
...
Signed-off-by: Florian Fainelli <florian@openwrt.org>
SVN-Revision: 37710
2013-08-05 20:58:05 +00:00
Hauke Mehrtens
9d4145efe5
kernel: fix DMA error when BCM4331 is connected to BCM4706
...
The BCM4331 supports a PCIe max request size of 512 bytes and uses
that, but the PCIe controller in the BCM4706 just supports 128 Bytes
and that causes a DMA error for packages bigger than 126 bytes. This
fixes the problem by setting the BCM4331 also to 128 Bytes.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
SVN-Revision: 37709
2013-08-05 16:17:05 +00:00
John Crispin
db083a41cf
generic: make the module reloc pacth work on mips64
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 37685
2013-08-04 13:54:42 +00:00
Hauke Mehrtens
b2d2ca4bbd
kernel: add missing config options
...
SVN-Revision: 37660
2013-08-02 20:13:54 +00:00
Hauke Mehrtens
219eac1856
kernel: add missing config option
...
SVN-Revision: 37657
2013-08-02 16:51:47 +00:00
Hauke Mehrtens
c47a55dd0d
kernel: add missing config option
...
brcm47xx does not use CONFIG_B53_SPI_DRIVER, but it could be selected if spi is build as a module
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
SVN-Revision: 37656
2013-08-02 16:16:23 +00:00
Jonas Gorski
3e9ad14992
kernel: ocf: add missing kernel dependencies
...
OCF_CRYPTOSOFT uses both symbols form crypto_hash and crypto_blkcipher,
so let it select these through kernel config.
Fixes the following build error:
ERROR: "crypto_alloc_ahash" [crypto/ocf/cryptosoft.ko] undefined!
ERROR: "crypto_ahash_digest" [crypto/ocf/cryptosoft.ko] undefined!
ERROR: "crypto_ahash_setkey" [crypto/ocf/cryptosoft.ko] undefined!
make[6]: *** [__modpost] Error 1
make[5]: *** [modules] Error 2
Reported-by: Russell Senior <russell@personaltelco.net>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 37652
2013-08-01 23:04:42 +00:00
Hauke Mehrtens
8966b86067
kernel: b53: use devm_gpio_request_one() to request gpio
...
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
SVN-Revision: 37648
2013-08-01 20:46:56 +00:00
Hauke Mehrtens
e1127aca07
kernel: b53: add support for GPIO reset
...
This is needed for some switches used on bcm47xx SoCs like the one on the Asus RT-N66U.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
SVN-Revision: 37645
2013-08-01 19:05:34 +00:00
Zoltan Herpai
91e8082e2d
kernel: add missing iio config symbols for 3.10
...
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
SVN-Revision: 37631
2013-08-01 06:58:08 +00:00
Felix Fietkau
8f04792531
kernel: update to linux 3.10.4, refresh patches
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 37617
2013-07-29 22:42:22 +00:00
Felix Fietkau
99e3616dac
kernel: add missing config symbols for 3.10
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 37602
2013-07-29 12:48:57 +00:00
Felix Fietkau
73c4d73d6d
build: unify target independent optimization options
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 37600
2013-07-29 09:38:29 +00:00
Felix Fietkau
cc26f768e4
kernel: stop patching -funit-at-a-time into CFLAGS, it has no effect on recent compilers
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 37598
2013-07-29 09:38:21 +00:00
John Crispin
4176b6fdd3
strict_strtoul is obsolete, use kstrtoul instead
...
based on http://patchwork.openwrt.org/patch/3827/
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 37562
2013-07-27 09:23:18 +00:00
Gabor Juhos
bc91bec9f6
kernel/3.10: rework MIPS FPU emulation disable patch
...
Get rid of some ifdefs, and make sure that the microMIPS
specific code is disabled as well.
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 37506
2013-07-22 16:02:12 +00:00
Gabor Juhos
ef944dcb85
kernel: update 3.10 to 3.10.2
...
Also refresh 3.10 patches.
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 37502
2013-07-22 15:31:13 +00:00
Gabor Juhos
6a5b4ec7dc
kernel: update 3.9 to 3.9.11
...
Also refresh 3.9 patches.
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 37501
2013-07-22 15:30:56 +00:00
Felix Fietkau
a50c18c632
kernel: fix crash in act_connmark in 3.9 and 3.10 ( fixes #13916 , #13876 )
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 37493
2013-07-21 13:53:54 +00:00
Hauke Mehrtens
a1ec175d7b
kernel: add missing config option CONFIG_SND_MXS_SOC
...
This is needed by imx23 target.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
SVN-Revision: 37492
2013-07-21 12:27:22 +00:00
Lars-Peter Clausen
8fc44d1f5f
kernel: Remove gpio-pwm patches
...
There is no platform using the gpio-pwm driver, yet these patches break the
generic PWM framework that is in upstream. So just remove them.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
SVN-Revision: 37490
2013-07-21 11:43:16 +00:00
Felix Fietkau
bb141e06a2
kernel: merge a proposed fix from LKML for fixing infinite data returned by /proc/timer_list
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 37484
2013-07-20 18:35:54 +00:00
Gabor Juhos
a2d12049e0
kernel/3.10: add a generic patch for cpu_has_mmips override
...
Backport of commit 3ddc14add5e6341cf8ef4058c34c67ba7fd15317
from 3.11-rc1
Suggested-by: Jonas Gorski <jogo@openwrt.org>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 37479
2013-07-20 10:14:05 +00:00
Gabor Juhos
f5f9bce168
kernel/3.10: make emulate_load_store_microMIPS static
...
This allows the compiler to remove the emulate_load_store_microMIPS
function if cpu_has_mmips is defined as zero.
Backport of commit 74338805ec6869594d583535f941cb478c94dd73
from 3.11-rc1.
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 37478
2013-07-20 09:53:54 +00:00
Gabor Juhos
187a69c631
linux: move more ARM_ERRATA symbols to the generic config
...
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 37470
2013-07-20 07:43:54 +00:00
Gabor Juhos
a9de3a851a
linux: remove 3.7 support
...
It is not used by any target.
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 37469
2013-07-20 07:37:27 +00:00
Jonas Gorski
b1b4e7db13
kernel: move CONFIG_NET_IP_TUNNEL to generic
...
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 37465
2013-07-19 22:58:01 +00:00
Gabor Juhos
0f0f250b66
kernel: add missing symbols for 3.10
...
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 37450
2013-07-19 17:12:36 +00:00
Gabor Juhos
8e674fdf1b
kernel: refresh config-3.10
...
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 37449
2013-07-19 17:12:34 +00:00
Jonas Gorski
29954b9ffc
kernel: remove gpio_buttons
...
It hasn't been buildable for a long time, and there are no users of it
anymore left as all of them have been switched to the upstream accepted
version.
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 37436
2013-07-19 13:20:41 +00:00
Hauke Mehrtens
c7f8cb3f4f
kernel: update bcma and ssb to version from wireless-testing/master tag master-2013-07-18
...
This should fix some build problems in b43 with kernel 3.3.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
SVN-Revision: 37432
2013-07-19 12:02:34 +00:00
Jonas Gorski
21412ccb21
kernel: add missing kernel config symbol
...
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 37423
2013-07-19 09:51:20 +00:00
John Crispin
947abea261
kernel: v3.10 has no GENERIC_GPIO anymore
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 37355
2013-07-15 21:05:53 +00:00
Felix Fietkau
3197479290
kernel: refresh 3.10 patches
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 37348
2013-07-15 15:12:37 +00:00
Felix Fietkau
a6db996b13
kernel: fix another corner case in the bridge state patch ( #13874 )
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 37347
2013-07-15 15:12:33 +00:00
Felix Fietkau
93cb862260
kernel: fix a bridge issue that broke WDS client handling in 3.9+
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 37341
2013-07-15 12:25:58 +00:00
Felix Fietkau
93c73cfb14
kernel: fix block2mtd build after removing the device refresh ioctl
...
fixes #13882
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 37332
2013-07-15 11:01:48 +00:00
Florian Fainelli
116990441b
kernel: add some more ARM related configuration symbols
...
Signed-off-by: Florian Fainelli <florian@openwrt.org>
SVN-Revision: 37320
2013-07-14 21:03:53 +00:00