aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #196 from seragh/owrt-squashfs4-headerZoltan Herpai2016-11-103-75/+0
|\ | | | | squashfs4: use upstream xz compression header format
| * squashfs4: use upstream xz compression header formatHauke Mehrtens2016-11-063-75/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In the upstream kernel and the upstream squashfs4 tools the xz compression header looks the following: struct disk_comp_opts { __le32 dictionary_size; __le32 flags; }; We added some other members and also moved some existing members. Place the members which are already in upstream header at the same position as in that kernel and add our own at the end. The kernel should not have a problem when there are some additional members and just ignore them. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
* | iptables: kernel: drop custom extension xt_idRalph Sennhauser2016-11-073-285/+0
| | | | | | | | | | | | | | | | | | | | | | This extension was added specifically for use by firewall3. Since firewall-2016-11-06 no longer uses it remove it before it finds other creative uses. Should there already be such a use-case outside of OpenWrt I suggest to package this extension properly a la xtables-addons instead. Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
* | Merge pull request #156 from wigyori/dirtycow-fixesZoltan Herpai2016-11-0650-182/+243
|\ \ | |/ |/| CVE-2016-5195 (dirtycow) fixes for 3.18, 4.1, 4.4
| * generic/4.4: add fix for CVE-2016-5195Zoltan HERPAI2016-10-281-0/+96
| | | | | | | | | | | | | | | | | | Fixes CVE-2016-5195, backport the mm patch into 097- until the kernel version is upgraded. Compile-tested on ar71xx, ramips. Runtime-tested on ramips. Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
| * generic/4.1: bump kernel to 4.1.35Zoltan HERPAI2016-10-2725-105/+79
| | | | | | | | | | | | | | | | | | Patch 610- is updated as check_entry helper was killed Patch 666- is updated (thanks to Stijn Tintel) Fixes CVE-2016-5195 (dirtycow) Compile-tested on brcm47xx and rb532 Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
| * generic/3.18: bump kernel to 3.18.44Zoltan HERPAI2016-10-2724-77/+68
| | | | | | | | | | | | | | | | | | Patch 610- is updated as check_entry helper was killed in 3.18.37 Patch 666- is updated (thanks to Stijn Tintel) Fixes CVE-2016-5195 (dirtycow) Compile-tested on adm5120 and mcs814x Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
* | kernel: add tpm supportIan Pozella2016-10-153-0/+32
|/ | | | | | | | | | This adds kernel support for tpm's providing: * kmod-tpm - tpm framework * kmod-tpm-i2c-infineon - infineon i2c 1.2 spec tpm * kmod-random-tpm - tpm backed rng Signed-off-by: Ian Pozella <Ian.Pozella@imgtec.com> Signed-off-by: Abhijit Mahajani <Abhijit.Mahajani@imgtec.com>
* Revert "kernel: bump 4.1 to 4.1.30"Zoltan HERPAI2016-10-1220-68/+94
| | | | | | Stay on 4.1.27 This reverts commit 231ef70f455fcc230a400af90a13e181a2c261cd.
* Revert "kernel: bump 3.18 to 3.18.39"Zoltan HERPAI2016-10-1217-53/+62
| | | | | | Stay on 3.18.36 This reverts commit 83767cf94f909f5932540da7641a12b7dfa71d85.
* kernel: bump 3.18 to 3.18.39Zoltan HERPAI2016-08-2317-62/+53
| | | | Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
* kernel: bump 4.1 to 4.1.30Zoltan HERPAI2016-08-1920-94/+68
| | | | Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
* generic/4.4: backport virtio_ring patch for reverting weak barriers patchZoltan HERPAI2016-07-211-0/+55
| | | | Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
* kernel: bump 4.1 to 4.1.27Zoltan HERPAI2016-07-134-4/+4
| | | | Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
* kernel: bump 3.18 for the remaining targets to 3.18.36Zoltan HERPAI2016-07-085-10/+10
| | | | Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
* kernel: add missing symbol for 4.4Zoltan HERPAI2016-07-071-0/+1
| | | | Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
* kernel: remove full cache flush in fuse_copy_do() for MIPSHauke Mehrtens2016-07-073-96/+0
| | | | | | | | | | | | | | | | | | | | | | | | This patch was introduced in commit r16412 for the brcm47xx target only and then moved to generic in commit r32395. It was initially added because of ticket #5186 and should fix some problems with fuse file systems and MIPS caches. The commit comment in r32395 says that this a generic problem in MIPS CPUs, but does not name any specifics about that. There was a fix added to kernel 2.6.21 in commit commit 7575a49f20 "[MIPS] Implement flush_anon_page()." that should fix this problem, but that was already available before both commits were done to OpenWrt. I just tested fuse with ntfs.3g without this patch on a BCM4704 (BMIPS3300 V0.6) SoC and haven't seen any problems. Someone reported that removing this patch improves some fuse operations by 5 times on some modern MIPS cores. My test was only a simple "dd if=/dev/zero of=/mnt/zero bs=5000" to an USB stick. This patch removes the patch to OpenWrt, because I assume that it is not needed any more and Felix, the orginal author, also thinks so. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* kernel: fix missing break in ubi auto-mounting patchHauke Mehrtens2016-07-073-4/+7
| | | | | Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Reviewed-by: Jo-Philipp Wich <jo@mein.io>
* kernel: remove one of two patches deactivating broken vdso support on mipsHauke Mehrtens2016-07-071-9/+0
| | | | | | | The patch target/linux/generic/patches-4.4/206-mips-disable-vdso.patch should be sufficient. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* kernel: add missing symbol for 4.4Zoltan HERPAI2016-07-061-0/+1
| | | | Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
* kernel: add missing symbols into 3.18 and 4.1Zoltan HERPAI2016-07-062-0/+12
| | | | Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
* kernel: require admin permissions for swconfig set operationsFelix Fietkau2016-07-041-0/+3
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* kernel: deny swconfig set requests for unprivileged usersJo-Philipp Wich2016-07-041-0/+3
| | | | | | | | | | | | | | | | | The swconfig kernel infrastructure fails to do any permissions checks when changing settings. As such an ordinary user account on a device with a switch can change switch settings without any special permissions. Routers generally have few non-admin users so this isn't a big hole, but it is a security hole. Likely the greatest danger is for multifunction devices which have a lot of extra daemons, compromising a low-security daemon would allow one to modify switch settings and cause the router/switch to appear to lock-up (or cause other sorts of troublesome nyetwork behavior). Implement a check for CAP_NET_ADMIN in swconfig_set_attr() and deny any requests originating from user contexts lacking this capability. Reported-by: Elliott Mitchell <ehem+openwrt@m5p.com> Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* kernel: replace SMP cacheflush fix with some patches from linux-mti.gitFelix Fietkau2016-07-043-17/+354
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* kernel: fix mips MT_SMP kernel crash on cache flushFelix Fietkau2016-07-041-0/+17
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* kernel: add support for uncompressed zImage on ARMFelix Fietkau2016-07-044-2/+137
| | | | | | | This can be used to prevent double compression for platforms where the boot loader already expects compressed images. Signed-off-by: Felix Fietkau <nbd@nbd.name>
* kernel: add common config symbolsFelix Fietkau2016-07-041-0/+6
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* kernel: rename B53 symbols to avoid upstream kernel conflictRafał Miłecki2016-07-048-27/+27
| | | | | | | | | In kernel 4.7 there is upstreamed b53 driver using (mostly?) the same symbols as our b53 does. Change our symbols so both drivers can coexist in kernel tree. Signed-off-by: Rafał Miłecki <zajec5@gmail.com> Acked-by: Jonas Gorski <jonas.gorski@gmail.com>
* kernel: backport bgmac changes from net-nextRafał Miłecki2016-07-049-11/+329
| | | | Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
* kernel: rename bgmac patches that went into the same kernelRafał Miłecki2016-07-044-0/+0
| | | | Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
* kernel: add missing symbols for 4.4Zoltan HERPAI2016-07-041-0/+6
| | | | Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
* kernel: update to version 4.4.14Hauke Mehrtens2016-07-047-48/+38
| | | | | | | | | Changelog: https://cdn.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.4.14 Some manual changes to target/linux/generic/patches-4.4/610- netfilter_match_bypass_default_checks.patch were needed. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* kernel: refresh patchesFelix Fietkau2016-07-044-28/+24
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* kernel: backport cosmetic ubifs patchDaniel Golle2016-07-041-0/+42
| | | | | | | | | | | | | | | Despite the MS_SILENT flag being set when probing for ubifs rootfs a logline indicating an error is generated during boot: UBIFS error (pid: 1): cannot open "ubi0:rootfs", error -19 This leads to confusion and there shouldn't be lines containing the word 'error' twice in a bootlog if actually everything is fine (just the rootfs happens to be something else than ubifs) The patch added has been submitted and was accepted upstream, see: http://lists.infradead.org/pipermail/linux-mtd/2016-June/068056.html http://patchwork.ozlabs.org/patch/637491 Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* kernel: mtdsplit: calculate kernel partition precisely for SeamaRafał Miłecki2016-06-271-2/+2
| | | | | | | | | So far "kernel" partition didn't contain just a kernel. It also included Seama header and meta data. This was making kernel update complex and it wasn't trivial to read kernel size. Fix it by making "kernel" parition contain just a kernel image. Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
* kernel: add missing config symbols for 4.4Jo-Philipp Wich2016-06-261-0/+3
| | | | Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* kernel: remove a hack that was obsoleted upstreamDaniel Gimpelevich2016-06-221-24/+0
| | | | Signed-off-by: Daniel Gimpelevich <daniel@gimpelevich.san-francisco.ca.us>
* kernel: update kernel 4.4 to version 4.4.13Álvaro Fernández Rojas2016-06-223-78/+8
| | | | Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
* kernel: add workaround to rebuild vdso-n32.so.dbg tooJo-Philipp Wich2016-06-221-0/+9
| | | | | | | | | | | | | | | | | | Building for octeon fails with 'arch/mips/vdso/vdso-n32.so.dbg' already contains a '.MIPS.abiflags' section if the file already exists from a prior build. Use the same workaround as the one for vdso.so.dbg committed in 9eb155353a5f5137ec85a5b5b0287af63c544710. Commit 91f205acaf2a44ae75418d2f2cb156149f0df8ae extended the workaround to cover vdso-o32.so.dbg but missed the vdso-n32.so.dbg which is added now by this change. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* mac80211: update to wireless-testing 2016-05-12Felix Fietkau2016-06-221-0/+4
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* kernel: fix unaligned access issue in the bridge multicast-to-unicast patchFelix Fietkau2016-06-211-4/+4
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* kernel: fix a compiler warning on 64 bit systemsFelix Fietkau2016-06-211-1/+1
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* kernel: add back the macronix software protection disable patchFelix Fietkau2016-06-211-0/+14
| | | | | | It was accidentally left out when 4.4 support was added Signed-off-by: Felix Fietkau <nbd@nbd.name>
* linux/generic: add missing config symbolsAlexander Couzens2016-06-201-0/+7
| | | | | | | | | | | | | unset following config symbols - INPUT_PALMAS_PWRBUTTON - INPUT_TPS65218_PWRBUTTON - INPUT_TWL4030_PWRBUTTON - INPUT_TWL4030_VIBRA - INPUT_TWL6040_VIBRA - KEYBOARD_TWL4030 - TWL4030_MADC Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
* kernel: update kernel 4.4 to version 4.4.12Álvaro Fernández Rojas2016-06-201-1/+1
| | | | Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
* kernel: update kernel 4.4 to version 4.4.11Álvaro Fernández Rojas2016-06-2013-948/+81
| | | | Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
* kernel: backport patches improving fq_codel drop behaviorFelix Fietkau2016-06-209-32/+1101
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* kernel: remove out-of-tree patches for reducing qdisc truesizeFelix Fietkau2016-06-207-111/+7
| | | | | | The copy overhead can be quite expensive Signed-off-by: Felix Fietkau <nbd@nbd.name>
* kernel: fq_codel match flows_cnt to limit sizingKevin Darbyshire-Bryant2016-06-203-6/+12
| | | | | | | | | | | | | | | | | | OpenWRT changed the default fq_codel sch->limit from 10240 to 1024, without also adjusting q->flows_cnt. Eric Dumazet explains below that you must also adjust the buckets (q->flows_cnt) for this not to break. Eric explains: Limit of 1024 packets and 1024 flows is not wise I think. (If all buckets are in use, each bucket has a virtual queue of 1 packet, which is almost the same than having no queue at all) I suggest to have at least 8 packets per bucket, to let Codel have a chance to trigger. So you could either reduce number of buckets to 128 (if memory is tight), or increase limit to 8192. flows_cnt is now set to 1024/8=128 Signed-off-by: Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>
* kernel: fold codel default fix into main patchFelix Fietkau2016-06-202-22/+20
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>