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>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37820 3c298f89-4303-0410-b956-a3cf2f4a3e73
netfilter: fix typo

Signed-off-by: Luka Perkov <luka@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37821 3c298f89-4303-0410-b956-a3cf2f4a3e73
[package]: uboot-imx23: add new package for i.MX233 boards



git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37822 3c298f89-4303-0410-b956-a3cf2f4a3e73
imx23: add support for u-boot image build



git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37823 3c298f89-4303-0410-b956-a3cf2f4a3e73
imx23: bump kernel to 3.10.9



git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37824 3c298f89-4303-0410-b956-a3cf2f4a3e73
kernel: add checksum for 3.10.9

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>



git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37825 3c298f89-4303-0410-b956-a3cf2f4a3e73
kernel/3.10: backport of_pci_get_devfn function from 3.11

Fixes the following build error on ramips/rt3883:

  arch/mips/pci/pci-rt3883.c:488:3: error: implicit declaration of function \
  'of_pci_get_devfn' [-Werror=implicit-function-declaration]
  cc1: some warnings being treated as errors

Although the function is only used by the PCI driver
of the RT3883 SoC but at the moment but it might be
useful for other targets as well.

Signed-off-by: Michael Lee <igvtee@gmail.com>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37826 3c298f89-4303-0410-b956-a3cf2f4a3e73
ramips: update the RT3883 PCI patch

Fix the following warning:

  arch/mips/pci/pci-rt3883.c: In function 'rt3883_pci_probe':
  arch/mips/pci/pci-rt3883.c:458:4: warning: use of 'h' length modifier with 'a' type character [-Wformat]

Signed-off-by: Michael Lee <igvtee@gmail.com>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37827 3c298f89-4303-0410-b956-a3cf2f4a3e73
ramips: use correct parameters in the Seama template

Fixes DIR-645 image generation errors:

  bash: line 0: [: wrgn39_dlob.hans_dir645: integer expression expected
  ...
  bash: wrgn39_dlob.hans_dir645 - 64: syntax error: invalid arithmetic operator (error token is ".hans_dir645 - 64")  make[4]: *** [install] Error 1

Signed-off-by: Michael Lee <igvtee@gmail.com>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37828 3c298f89-4303-0410-b956-a3cf2f4a3e73
ramips: use correct image size parameter for DIR-610 A1

Fixes the following error:

  bash: line 0: [: ralink_default_fw_size_4M: integer expression expected

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37829 3c298f89-4303-0410-b956-a3cf2f4a3e73
ramips: remove lantiq specific patches

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37830 3c298f89-4303-0410-b956-a3cf2f4a3e73
generic: refresh kernel configs with kconfig.pl

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37831 3c298f89-4303-0410-b956-a3cf2f4a3e73
kernel: update 3.10 to 3.10.9

Also refresh 3.10 patches.

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37832 3c298f89-4303-0410-b956-a3cf2f4a3e73
ar71xx: allow to override kernel size in the CameoHornet profile

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37833 3c298f89-4303-0410-b956-a3cf2f4a3e73
ar71xx: build factory image for DIR-505 A1

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37834 3c298f89-4303-0410-b956-a3cf2f4a3e73
x86/alix2: add kmod-usb2-pci to default packages

The USB controller is sitting on the PCI bus and
without the package the EHCI controller is not
usable.

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37835 3c298f89-4303-0410-b956-a3cf2f4a3e73
lldpd: Add libbsd dependency when using eglibc

Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37837 3c298f89-4303-0410-b956-a3cf2f4a3e73
Merge remote-tracking branch 'upstream/master'
mac80211: disable CCK rates for 802.11n clients on brcmsmac to fix crash issues

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37839 3c298f89-4303-0410-b956-a3cf2f4a3e73
mac80211: merge a few ad-hoc mode fixes

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37840 3c298f89-4303-0410-b956-a3cf2f4a3e73