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
11 years ago
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
11 years ago
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
11 years ago
Felix Fietkau
73c4d73d6d
build: unify target independent optimization options
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 37600
11 years ago
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
11 years ago
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
11 years ago
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
11 years ago
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
11 years ago
Hauke Mehrtens
da72edd7cd
kernel: refresh patches for kernel 3.8.13
...
SVN-Revision: 37276
11 years ago
Felix Fietkau
4932368398
kernel: add a patch that reduces module size by removing non-essential information (reduces default rootfs size by ~5k after lzma)
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 37255
12 years ago
Felix Fietkau
4b5c5934e1
kernel: debloat the lzma compress/decompress code some more
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 37211
12 years ago
Felix Fietkau
51b1e8577c
kernel: do not accept sysrq characters via serial port
...
many boards have a disconnected TTL level serial which can generate
some garbage that can lead to spurious false sysrq detects.
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 37210
12 years ago
Felix Fietkau
3df61e8279
kernel: fix a reference counting bug in overlayfs
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 37014
12 years ago
Felix Fietkau
2a5e1910d5
linux-3.8: backport a leds-gpio.c crash fix ( fixes #13721 )
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 36968
12 years ago
Steven Barth
46d199d1e8
linux: add ipv6 failed-policy routing action (by Jonas Gorski)
...
SVN-Revision: 36911
12 years ago
John Crispin
a9968d9cb8
lantiq: enable retrieving kernel args from bootloader
...
This patch is a device tree enhancement that IMHO is worthy of mainline.
It allows the bootloader's commandline to be preserved even when the
device tree specifies one.
Signed-off-by: Daniel Gimpelevich <daniel@gimpelevich.san-francisco.ca.us>
SVN-Revision: 36780
12 years ago
Jonas Gorski
0b03ff2028
kernel: make zlib and lzo modules selectable
...
Fixes building kmod-lib-zlib and kmod-lib-lzo if nothing depends on them.
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 36592
12 years ago
Jonas Gorski
98f6dc1b43
kernel: allow building zsmalloc as a module again
...
zsmalloc was changed to a bool because of missing exports in the kernel,
but we already export the required symbol, so change it back to tristate.
Closes #13481 .
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 36587
12 years ago
Gabor Juhos
e57c7d6c12
kernel: update linux 3.8 to 3.8.12
...
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 36576
12 years ago
Felix Fietkau
30c4360345
kernel: do not strip /proc/net/ip_mr_* in the /proc debloat patch, it is used by iproute2
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 36529
12 years ago
Jonas Gorski
8f15326acc
kernel: generic: don't strip /proc/irq on SMP
...
/proc/irq is needed for changing the SMP affinity of interrupts.
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 36525
12 years ago
Gabor Juhos
8a9fe26f20
kernel: update linux 3.8 to 3.8.11
...
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 36507
12 years ago
Gabor Juhos
41445b41cc
linux/3.8: use backported pcibios_get_phb_of_node patches
...
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 36494
12 years ago
Hauke Mehrtens
e7e4afbb64
kernel: fix a memory leak in split_rootfs_data()
...
allocate_partition() copies all the content of dpart into a new struct.
SVN-Revision: 36475
12 years ago
Hauke Mehrtens
1bac172c44
kernel: update bcma and ssb for kernel 3.8+ to version from wireless-testing master-2013-04-26.
...
SVN-Revision: 36473
12 years ago
Jonas Gorski
a33dd13c98
kernel: add missing bcma defines and header file for bcrmfmac
...
Fixes build failure when having kmod-mmc and brcmfmac selected.
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 36468
12 years ago
Gabor Juhos
36d4fd70bc
kernel: update linux 3.8 to 3.8.9
...
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 36453
12 years ago
Felix Fietkau
a8a01b42ae
kernel: allow __netdev_alloc_skb_ip_align to be called with dev = NULL
...
SVN-Revision: 36378
12 years ago
Felix Fietkau
f58dcb59c6
kernel: backport SSB/BCMA changes in preparation for a compat-wireless update
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 36367
12 years ago
Gabor Juhos
e07848664c
linux/3.[89]: update bridge_remove_ipv6_dependency patch
...
Fixes the following warning:
CC [M] net/ipv6/addrconf.o
net/ipv6/addrconf.c: In function 'addrconf_init':
net/ipv6/addrconf.c:4944:2: warning: assignment from incompatible pointer type [enabled by default]
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 36364
12 years ago
Gabor Juhos
151cadfe32
kernel: update linux 3.8 to 3.8.8
...
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 36363
12 years ago
Felix Fietkau
a662200205
kernel: force CONFIG_NET_SCHED=y for fq_codel ( #13360 )
...
SVN-Revision: 36342
12 years ago
Gabor Juhos
604395650a
kernel: update linux 3.8 to 3.8.7
...
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 36332
12 years ago
Gabor Juhos
54635e7f78
linux/3.8: backport 'spi/of: Use DT aliases for assigning bus number' from 3.9
...
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 36328
12 years ago
Felix Fietkau
edd8048107
kernel: calibrate the TWD timer even when booting with only one CPU, it is used for the watchdog timer base
...
Fixes booting on single-core CNS3xxx devices
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 36308
12 years ago
Felix Fietkau
06733c2650
kernel: keep the igmp proc support even with PROC_STRIPPED, some tools still use it
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 36307
12 years ago
Felix Fietkau
7fa2957103
kernel: switch default qdisc from pfifo_fast to fq_codel and remove pfifo_fast
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 36304
12 years ago
Felix Fietkau
df3d4690bd
kernel: keep dropped stats in fq_codel
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 36303
12 years ago
Felix Fietkau
ec3a8846fc
kernel: tune fq_codel defaults for common netdevice speeds
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 36302
12 years ago
Felix Fietkau
307965026a
kernel: add patches by Dave Täht to reduce buffer size in longer queues to reduce memory pressure
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 36301
12 years ago
Florian Fainelli
c3366cd164
kernel: add support for PMC PM25LQ032 SPI Flash in m25p80.c
...
Add support for PMC PM25LQ032 (4MB) SPI Flash used in Hame MPR-A1 and clones.
Signed-off-by: Michel Stempin <michel.stempin@wanadoo.fr>
Signed-off-by: Florian Fainelli <florian@openwrt.org>
SVN-Revision: 36296
12 years ago
Gabor Juhos
d45ef216e6
linux/3.8: implement pcibios_get_phb_of_node for MIPS
...
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 36233
12 years ago
Gabor Juhos
51fa28e2c2
linux/3.8: backport devm_ioremap_resource from 3.9
...
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 36232
12 years ago
Gabor Juhos
f78c902cfd
kernel: update linux 3.8 to 3.8.6
...
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 36215
12 years ago
John Crispin
c838ec2391
Patch for invoking (pre)init
...
http://patchwork.openwrt.org/patch/3485/
Signed-off-by: Michael Heimpold <mhei@heimpold.de>
SVN-Revision: 36183
12 years ago
Hauke Mehrtens
4995f23669
kernel: REGMAP_SPI should only be selectable when SPI_MASTER is selected
...
This was turned from a silent confg option without a text to a normal
config option which could be selected without any other option
depending on this. This could cause the situation where REGMAP_SPI was
selected without SPI_MASTER being selected.
SVN-Revision: 36101
12 years ago
Florian Fainelli
b1cc7a90a4
kernel: make SND_COMPRESS_OFFLOAD symbol visible for selection ( #13193 )
...
Signed-off-by: Florian Fainelli <florian@openwrt.org>
SVN-Revision: 36091
12 years ago
Florian Fainelli
6a7100c760
kernel: set regmap-core module license
...
Fixes the following issues:
[ 7.660000] regmap_core: module license 'unspecified' taints kernel
[ 7.690000] Disabling lock debugging due to kernel
[ 7.700000] regmap_core: Unknown symbol lzo1x_decompress_safe (err 0
[ 7.710000] regmap_core: Unknown symbol lzo1x_1_compress (err 0
[ 7.720000] regmap_core: Unknown symbol devres_add (err 0
[ 7.730000] regmap_core: Unknown symbol debugfs_create_bool (err 0
[ 7.750000] regmap_core: Unknown symbol devres_alloc (err 0
[ 7.760000] regmap_core: Unknown symbol debugfs_remove_recursive (err 0
[ 7.770000] regmap_core: Unknown symbol debugfs_create_file (err 0
[ 7.780000] regmap_core: Unknown symbol devres_free (err 0
[ 7.800000] regmap_core: Unknown symbol devres_find (err 0
[ 7.810000] regmap_core: Unknown symbol debugfs_create_dir (err 0)
Signed-off-by: Florian Fainelli <florian@openwrt.org>
SVN-Revision: 36070
12 years ago
Gabor Juhos
07532dca7f
kernel: update linux 3.8 to 3.8.3
...
Also refresh the related generic/platform patches.
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 36039
12 years ago
Felix Fietkau
53e0f10246
kernel: prevent -f*-sections from leaking into the boot zImage wrapper on arm
...
SVN-Revision: 35938
12 years ago