Commit Graph

354825 Commits

Author SHA1 Message Date
Mauro (mdrjr) Ribeiro
accfbff4cf libera hello 2021-06-14 12:35:31 -03:00
Mauro (mdrjr) Ribeiro
baf7963cc0 Revert "Fix r5p0 fbdev Mali driver"
This reverts commit 26ba5fa267.
2016-09-19 22:52:06 -03:00
Mauro (mdrjr) Ribeiro
4251a1cfa1 Merge branch 'odroid-3.8.y' of github.com:hardkernel/linux into odroid-3.8.y 2016-09-19 22:50:31 -03:00
Mauro Ribeiro
ddfddf8296 Merge pull request #137 from thopiekar/odroid-3.8.y
GCC5: Adding missing header and adding missing compiler option
2015-11-05 18:36:24 -02:00
Thomas Karl Pietrowski
0796298c8e GCC5: Fixing builds by adding -std=gnu89 option
* Original commit: https://github.com/archlinuxarm/PKGBUILDs/blob/master/core/linux-odroid/gcc5-use-std89.patch
2015-10-22 15:26:18 +02:00
Thomas Karl Pietrowski
8f976d7e1e GCC5: Adding missing header from newer linux releases 2015-10-22 15:25:24 +02:00
Mauro Ribeiro
698c7ea761 Merge branch 'odroid-3.8.y' of github.com:hardkernel/linux into odroid-3.8.y 2015-07-13 15:10:55 -03:00
Mauro Ribeiro
1130f87617 Merge pull request #111 from marlemion/odroid-3.8.y
Fix r5p0 fbdev Mali driver
2015-07-13 15:08:56 -03:00
marlemion
26ba5fa267 Fix r5p0 fbdev Mali driver 2015-07-12 20:43:16 +02:00
Mauro Ribeiro
611de8e983 Merge pull request #89 from v0ltumna/odroid-3.8.y
Support for WiiU adapter from Mayflash
2015-03-21 06:51:59 -03:00
v0ltumna
3d8212f8ea Update hid-quirks.c 2015-03-20 09:33:50 +01:00
v0ltumna
f1634edcb1 Update hid-ids.h 2015-03-20 09:32:47 +01:00
Mauro Ribeiro
33234acbef edid: add 720x576 50hz support
Change-Id: Ib157fe731500ada35968c7aaf8057b4612dca642
2015-03-04 17:07:21 -03:00
Mauro Ribeiro
db41cd1bc3 Makefile: bump to .30 marking Mali to r5p0
Change-Id: I5221fb723ed6829b05848b6ab92612456099aa03
2015-02-20 10:49:14 -02:00
Mauro Ribeiro
3eefbe9fe1 Merge pull request #70 from dsd/odroid-3.8.y
Update to Mali r5p0
2015-02-20 10:47:32 -02:00
Mauro Ribeiro
badaba1cc0 Merge pull request #81 from dominikx/odroid-3.8.y
activate CONFIG_POSIX_MQUEUE to enable docker >= 1.4.0
2015-02-19 11:22:42 -02:00
dominkx
20b471247c activate CONFIG_POSIX_MQUEUE to enable docker >= 1.4.0 2015-02-17 20:46:35 +00:00
Mauro Ribeiro
2e69deea23 defconfig: u: enable dvbsky and increase the amount of extra gpio's
Change-Id: I594b6232a4fa229315c772e3e37f48df6ac15f83
2015-01-12 22:49:27 -02:00
Mauro Ribeiro
02dc801c4c pca953x: add missing endif back
Change-Id: If25f8d5286580df84bee2cd44c1a3016d46f4d9e
2015-01-10 17:01:41 -02:00
Mauro Ribeiro
202de0b60c defconfig:u: enable support for DVBSKY S960 USB DVB-S2 tuner
Change-Id: Ia6b7ba8a529f4c64d0142a68f633b55538523799
2015-01-10 15:19:25 -02:00
Mauro Ribeiro
bebe6923e1 Add support for DVBSKY S960 USB DVB-S2 tuner: Patch by Franky384
Change-Id: Ie872614fc00070f000e482d1ff7d473d06e99777
2015-01-10 15:18:17 -02:00
Mauro Ribeiro
cfcfce733c max98090: don't advertise 24bit. Patch by OverSun
Change-Id: I70724f68b01df86ae404dc66e6e52a6e2557d0fd
2015-01-10 15:17:12 -02:00
Mauro Ribeiro
1c77f9c541 pca953x: merge the patch by Panzerknacker
Change-Id: I4a35ecd14bcd3ac3d88aff9fd213c08637d347c0
2015-01-10 15:12:37 -02:00
Daniel Drake
7c87ebfbb8 Mali r5p0 ODROID build integration
struct mali_gpu_device_data has changed, so update the mali_utgard.h
copy under mach-exynos. This was taken from drivers/gpu/arm/mali but
with the osk_types.h include removed.

Disable DVFS - I thought this was done previously? Have we been shipping
recent kernels with this option enabled?

Tweak mali_gpu_data to remove the DVFS-only utilization handler, and
no need to set utilization_interval to 1000, that is the default.

Readd odroid platform file but this time without the DVFS version.
Tweak mali_kernel_core.c and mali_pm.c like before to call into this.
2014-12-18 19:48:36 -06:00
Daniel Drake
771df56d81 Update to mali r5p0-01rel0
Straight from the ARM tarball.
2014-12-18 15:08:37 -06:00
Mauro Ribeiro
8c9f21e7c4 Revert "saa7115 support, merge of the following patch's:"
This reverts commit 6cee0ad795.
2014-12-03 18:34:39 -02:00
Mauro Ribeiro
6cee0ad795 saa7115 support, merge of the following patch's:
From patchwork Fri Apr 26 14:22:47 2013
Content-Type: text/plain; charset=utf-8
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Subject: [v2,
        1/2] saa7115: move the autodetection code out of the probe function
From: Mauro Carvalho Chehab <mchehab@redhat.com>
X-Patchwork-Id: 18233
Message-Id: <1366986168-27756-1-git-send-email-mchehab@redhat.com>
X-Patchwork-Delegate: hverkuil@xs4all.nl
To: unlisted-recipients:; (no To-header on input)
Cc: Mauro Carvalho Chehab <mchehab@redhat.com>,
        Linux Media Mailing List <linux-media@vger.kernel.org>
Date: Fri, 26 Apr 2013 11:22:47 -0300

As we're now seeing other variants from chinese clones, like
gm1113c, we'll need to add more bits at the detection code.

So, move it into a separate function.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Tested-by: Jon Arne Jørgensen <jonarne@jonarne.no>
Tested-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>

---
drivers/media/i2c/saa7115.c | 133 +++++++++++++++++++++++++++-----------------
 1 file changed, 83 insertions(+), 50 deletions(-)

From patchwork Fri Apr 26 14:22:48 2013
Content-Type: text/plain; charset=utf-8
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Subject: [v2,2/2] saa7115: add detection code for gm7113c
From: Mauro Carvalho Chehab <mchehab@redhat.com>
X-Patchwork-Id: 18232
Message-Id: <1366986168-27756-2-git-send-email-mchehab@redhat.com>
X-Patchwork-Delegate: hverkuil@xs4all.nl
To: unlisted-recipients:; (no To-header on input)
Cc: Mauro Carvalho Chehab <mchehab@redhat.com>,
        Linux Media Mailing List <linux-media@vger.kernel.org>
Date: Fri, 26 Apr 2013 11:22:48 -0300

Adds a code that (auto)detects gm7113c clones. The auto-detection
here is not perfect, as, on contrary to what it would be expected
by looking into its datasheets some devices would return, instead:

        saa7115 0-0025: chip 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 @ 0x4a is unknown

(found on a device labeled as GM7113C 1145 by Ezequiel Garcia)

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Tested-by: Jon Arne Jørgensen <jonarne@jonarne.no>
Tested-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>

---
drivers/media/i2c/saa7115.c     | 36 ++++++++++++++++++++++++++++++++++++
 include/media/v4l2-chip-ident.h |  2 ++
 2 files changed, 38 insertions(+)

From patchwork Fri May 10 07:52:28 2013
Content-Type: text/plain; charset=utf-8
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Subject: [V1,1/1] saa7115: Add register setup and config for gm7113c
From: =?utf-8?q?Jon_Arne_J=C3=B8rgensen?= <jonarne@jonarne.no>
X-Patchwork-Id: 18368
Message-Id: <1368172348-8459-2-git-send-email-jonarne@jonarne.no>
To: linux-media@vger.kernel.org
Cc: hverkuil@xs4all.nl, mchehab@redhat.com,
        ezequiel.garcia@free-electrons.com, jonarne@jonarne.no
Date: Fri, 10 May 2013 09:52:28 +0200

The gm7113c chip is similar to the original saa7113 chip, so I try to
re-use most of the saa7113 specific setup-/configuration registers.

According to the datasheet, the gm7113c chip has not implemented
any register-addresses after 0x1f, so I add a new entry to for the chip
to the saa711x_has_reg function.

The devices I've seen using this chip will fail to get stable video-sync
if these registers are not zeroed:
        R_14_ANAL_ADC_COMPAT_CNTL
        R_15_VGATE_START_FID_CHG
        R_16_VGATE_STOP
        R_17_MISC_VGATE_CONF_AND_MSB

The saa711x_set_v4lstd is updated to send a simpler configuration-table
to avoid setting these registers.

Signed-off-by: Jon Arne Jørgensen <jonarne@jonarne.no>
Tested-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>

---
This must be applied on top of these patches:
https://patchwork.linuxtv.org/patch/18232/
https://patchwork.linuxtv.org/patch/18233/

 drivers/media/i2c/saa7115.c | 47 +++++++++++++++++++++++++++++++++++----------
 1 file changed, 37 insertions(+), 10 deletions(-)

From patchwork Sat Aug  3 13:19:35 2013
Content-Type: text/plain; charset=utf-8
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Subject: [RFC,v4,1/3] saa7115: Fix saa711x_set_v4lstd for gm7113c
From: =?utf-8?q?Jon_Arne_J=C3=B8rgensen?= <jonarne@jonarne.no>
X-Patchwork-Id: 19535
Message-Id: <1375535977-28913-2-git-send-email-jonarne@jonarne.no>
X-Patchwork-Delegate: hverkuil@xs4all.nl
To: linux-media@vger.kernel.org
Cc: jonarne@jonarne.no, linux-kernel@vger.kernel.org,
        m.chehab@samsung.com, hans.verkuil@cisco.com,
        prabhakar.csengg@gmail.com, laurent.pinchart@ideasonboard.com,
        andriy.shevchenko@linux.intel.com,
        ezequiel.garcia@free-electrons.com, timo.teras@iki.fi
Date: Sat,  3 Aug 2013 15:19:35 +0200

saa711x_set_v4lstd would toggle several bits that should not be touched
when changing std. This patch fixes this.

Signed-off-by: Jon Arne Jørgensen <jonarne@jonarne.no>

---
drivers/media/i2c/saa7115.c      | 37 +++++++++++++------------------------
 drivers/media/i2c/saa711x_regs.h |  4 ++++
 2 files changed, 17 insertions(+), 24 deletions(-)

From patchwork Sat Aug  3 13:19:36 2013
Content-Type: text/plain; charset=utf-8
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Subject: [RFC,v4,2/3] saa7115: Do not load saa7115_init_misc for gm7113c
From: =?utf-8?q?Jon_Arne_J=C3=B8rgensen?= <jonarne@jonarne.no>
X-Patchwork-Id: 19536
Message-Id: <1375535977-28913-3-git-send-email-jonarne@jonarne.no>
X-Patchwork-Delegate: hverkuil@xs4all.nl
To: linux-media@vger.kernel.org
Cc: jonarne@jonarne.no, linux-kernel@vger.kernel.org,
        m.chehab@samsung.com, hans.verkuil@cisco.com,
        prabhakar.csengg@gmail.com, laurent.pinchart@ideasonboard.com,
        andriy.shevchenko@linux.intel.com,
        ezequiel.garcia@free-electrons.com, timo.teras@iki.fi
Date: Sat,  3 Aug 2013 15:19:36 +0200

Most of the registers changed in saa7115_init_misc table are out of range
for the gm7113c chip.
The only register that's within range, don't need to be changed here.

Signed-off-by: Jon Arne Jørgensen <jonarne@jonarne.no>

From patchwork Sat Aug  3 13:19:37 2013
Content-Type: text/plain; charset=utf-8
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Subject: [RFC,v4,3/3] saa7115: Implement i2c_board_info.platform_data
From: =?utf-8?q?Jon_Arne_J=C3=B8rgensen?= <jonarne@jonarne.no>
X-Patchwork-Id: 19537
Message-Id: <1375535977-28913-4-git-send-email-jonarne@jonarne.no>
X-Patchwork-Delegate: hverkuil@xs4all.nl
To: linux-media@vger.kernel.org
Cc: jonarne@jonarne.no, linux-kernel@vger.kernel.org,
        m.chehab@samsung.com, hans.verkuil@cisco.com,
        prabhakar.csengg@gmail.com, laurent.pinchart@ideasonboard.com,
        andriy.shevchenko@linux.intel.com,
        ezequiel.garcia@free-electrons.com, timo.teras@iki.fi
Date: Sat,  3 Aug 2013 15:19:37 +0200

This patch implements i2c_board_info.platform_data, and some options to
override the default initialization table for the GM7113C and SAA7113
chips.

Signed-off-by: Jon Arne Jørgensen <jonarne@jonarne.no>

---
drivers/media/i2c/saa7115.c      | 128 ++++++++++++++++++++++++++++++++++++---
 drivers/media/i2c/saa711x_regs.h |  15 +++++
 include/media/saa7115.h          |  64 ++++++++++++++++++++
 3 files changed, 198 insertions(+), 9 deletions(-)

Change-Id: If7abab3f0cda05be16fae75f098fbd23841baa46
2014-11-30 21:18:34 -02:00
Mauro Ribeiro
8154601226 defconfig: u: 802.11 stack as module
Ref: http://forum.odroid.com/viewtopic.php?f=77&t=1516&p=55620#p55620

Change-Id: Icebf47fca29162380539c1e7b6347135800baf9b
2014-10-30 21:04:16 -02:00
Mauro Ribeiro
f9c40a21a0 defconfig: enable ecryptfs and rt55xx
Change-Id: Iffbfa7679fe6b92427d1a760819daf7df9e3383c
2014-10-17 00:50:34 -03:00
Mauro Ribeiro
0c5ca23376 net/wireless: fixes driver build on 3.8
Change-Id: Idba43e73b0b4dbbe046db77021a49ba069b296ab
2014-10-10 04:35:45 -03:00
Mauro Ribeiro
8d27bb01fd net/wireless: drop new rt2x00 drivers from 3.10
Change-Id: Ic90ce6437bb413379d7f0ebf63f449ccb93f23ca
2014-10-10 04:01:38 -03:00
Mauro Ribeiro
3bcdf52287 Merge pull request #63 from dsd/odroid-3.8.y
exynos-drm: add 85.5MHz pixel clock HDMI PHY config for Exynos4412
2014-10-09 22:15:16 -03:00
Daniel Drake
69811369c5 exynos-drm: add 85.5MHz pixel clock HDMI PHY config for Exynos4412
Configuration details from Samsung. This enables 1366x768@60Hz,
which also needs the horizontal blanking hack to work around a
mixer bug, which is now generalized to just look at vertical
resolution.

Signed-off-by: Daniel Drake <drake@endlessm.com>
2014-10-09 15:39:07 -06:00
Mauro Ribeiro
fc138bcb8f Merge pull request #62 from Dilandau/patch-1
defconfigs: enable firmware loading for AR30xx
2014-09-18 09:25:30 -03:00
Dilandau
0e2f1ad0c3 defconfigs: enable firmware loading for AR30xx
This module is mandatory for load firmware for AR3011 on USB.

without this module :
# hcitool dev
# lsusb
Bus 001 Device 005: ID 0cf3:3005 Atheros Communications, Inc. AR3011 Bluetooth (no firmware)
[...]

with this module :
# hcitool dev
Devices:
        hci0    5C:F3:70:xx:xx:xx
# lsusb
Bus 001 Device 005: ID 0cf3:3005 Atheros Communications, Inc. AR3011 Bluetooth
[...]
2014-09-14 12:39:48 +02:00
André Hentschel
1f8be42846 Preserve the user r/w register TPIDRURW on context switch and fork
Since commit 6a1c53124a the user writeable TLS register was zeroed to
prevent it from being used as a covert channel between two tasks.

There are more and more applications coming to Windows RT,
Wine could support them, but mostly they expect to have
the thread environment block (TEB) in TPIDRURW.

This patch preserves that register per thread instead of clearing it.
Unlike the TPIDRURO, which is already switched, the TPIDRURW
can be updated from userspace so needs careful treatment in the case that we
modify TPIDRURW and call fork(). To avoid this we must always read
TPIDRURW in copy_thread.

Signed-off-by: André Hentschel <(address hidden)>
Signed-off-by: Will Deacon <(address hidden)>
Signed-off-by: Jonathan Austin <(address hidden)>
2014-09-11 09:11:26 -03:00
Mauro Ribeiro
036308d690 Merge tag 'v3.8.13.28' of git://kernel.ubuntu.com/ubuntu/linux into odroid-3.8.y
v3.8.13.28
2014-09-06 03:18:25 -03:00
Mauro Ribeiro
f16a8b99cc ARM: mach-hkdk4412: Lock the LDO10
This change is made to prevent the Exynos_DRM driver to disable this LDO when HDMI is not in use.
This is the same voltage source to the TMU.

It is the cause of the locked 50C temperature when no HDMI is connected.
2014-09-06 03:11:23 -03:00
Mauro Ribeiro
aaeee3eb1a defconfigs: x2/u: enable zram, hamradio ax25 and serial kiss support 2014-08-30 17:10:54 -03:00
Mauro Ribeiro
a7b48a0814 defconfig: u: enabling CAN and MCP251X 2014-08-29 17:57:30 -03:00
Kamal Mostafa
e04537a399 Linux 3.8.13.28
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
2014-08-29 09:51:52 -07:00
Sasha Levin
9dacc74c6f net/l2tp: don't fall back on UDP [get|set]sockopt
commit 3cf521f7dc upstream.

The l2tp [get|set]sockopt() code has fallen back to the UDP functions
for socket option levels != SOL_PPPOL2TP since day one, but that has
never actually worked, since the l2tp socket isn't an inet socket.

As David Miller points out:

  "If we wanted this to work, it'd have to look up the tunnel and then
   use tunnel->sk, but I wonder how useful that would be"

Since this can never have worked so nobody could possibly have depended
on that functionality, just remove the broken code and return -EINVAL.

Reported-by: Sasha Levin <sasha.levin@oracle.com>
Acked-by: James Chapman <jchapman@katalix.com>
Acked-by: David Miller <davem@davemloft.net>
Cc: Phil Turnbull <phil.turnbull@oracle.com>
Cc: Vegard Nossum <vegard.nossum@oracle.com>
Cc: Willy Tarreau <w@1wt.eu>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
CVE-2014-4943
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
2014-08-25 09:24:22 -07:00
Tejun Heo
29edfb9367 ptrace,x86: force IRET path after a ptrace_stop()
commit b9cd18de4d upstream.

The 'sysret' fastpath does not correctly restore even all regular
registers, much less any segment registers or reflags values.  That is
very much part of why it's faster than 'iret'.

Normally that isn't a problem, because the normal ptrace() interface
catches the process using the signal handler infrastructure, which
always returns with an iret.

However, some paths can get caught using ptrace_event() instead of the
signal path, and for those we need to make sure that we aren't going to
return to user space using 'sysret'.  Otherwise the modifications that
may have been done to the register set by the tracer wouldn't
necessarily take effect.

Fix it by forcing IRET path by setting TIF_NOTIFY_RESUME from
arch_ptrace_stop_needed() which is invoked from ptrace_stop().

Signed-off-by: Tejun Heo <tj@kernel.org>
Reported-by: Andy Lutomirski <luto@amacapital.net>
Acked-by: Oleg Nesterov <oleg@redhat.com>
Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
CVE-2014-4699
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
2014-08-25 09:21:17 -07:00
Eric W. Biederman
df8958c1f5 mnt: Change the default remount atime from relatime to the existing value
commit ffbc6f0ead upstream.

Since March 2009 the kernel has treated the state that if no
MS_..ATIME flags are passed then the kernel defaults to relatime.

Defaulting to relatime instead of the existing atime state during a
remount is silly, and causes problems in practice for people who don't
specify any MS_...ATIME flags and to get the default filesystem atime
setting.  Those users may encounter a permission error because the
default atime setting does not work.

A default that does not work and causes permission problems is
ridiculous, so preserve the existing value to have a default
atime setting that is always guaranteed to work.

Using the default atime setting in this way is particularly
interesting for applications built to run in restricted userspace
environments without /proc mounted, as the existing atime mount
options of a filesystem can not be read from /proc/mounts.

In practice this fixes user space that uses the default atime
setting on remount that are broken by the permission checks
keeping less privileged users from changing more privileged users
atime settings.

Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
2014-08-22 11:29:10 -07:00
Eric W. Biederman
4754447857 mnt: Correct permission checks in do_remount
commit 9566d67428 upstream.

While invesgiating the issue where in "mount --bind -oremount,ro ..."
would result in later "mount --bind -oremount,rw" succeeding even if
the mount started off locked I realized that there are several
additional mount flags that should be locked and are not.

In particular MNT_NOSUID, MNT_NODEV, MNT_NOEXEC, and the atime
flags in addition to MNT_READONLY should all be locked.  These
flags are all per superblock, can all be changed with MS_BIND,
and should not be changable if set by a more privileged user.

The following additions to the current logic are added in this patch.
- nosuid may not be clearable by a less privileged user.
- nodev  may not be clearable by a less privielged user.
- noexec may not be clearable by a less privileged user.
- atime flags may not be changeable by a less privileged user.

The logic with atime is that always setting atime on access is a
global policy and backup software and auditing software could break if
atime bits are not updated (when they are configured to be updated),
and serious performance degradation could result (DOS attack) if atime
updates happen when they have been explicitly disabled.  Therefore an
unprivileged user should not be able to mess with the atime bits set
by a more privileged user.

The additional restrictions are implemented with the addition of
MNT_LOCK_NOSUID, MNT_LOCK_NODEV, MNT_LOCK_NOEXEC, and MNT_LOCK_ATIME
mnt flags.

Taken together these changes and the fixes for MNT_LOCK_READONLY
should make it safe for an unprivileged user to create a user
namespace and to call "mount --bind -o remount,... ..." without
the danger of mount flags being changed maliciously.

Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
2014-08-22 11:29:08 -07:00
Eric W. Biederman
3f25c522d0 mnt: Move the test for MNT_LOCK_READONLY from change_mount_flags into do_remount
commit 07b645589d upstream.

There are no races as locked mount flags are guaranteed to never change.

Moving the test into do_remount makes it more visible, and ensures all
filesystem remounts pass the MNT_LOCK_READONLY permission check.  This
second case is not an issue today as filesystem remounts are guarded
by capable(CAP_DAC_ADMIN) and thus will always fail in less privileged
mount namespaces, but it could become an issue in the future.

Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
2014-08-22 11:29:07 -07:00
Eric W. Biederman
5cca78bdca mnt: Only change user settable mount flags in remount
commit a6138db815 upstream.

Kenton Varda <kenton@sandstorm.io> discovered that by remounting a
read-only bind mount read-only in a user namespace the
MNT_LOCK_READONLY bit would be cleared, allowing an unprivileged user
to the remount a read-only mount read-write.

Correct this by replacing the mask of mount flags to preserve
with a mask of mount flags that may be changed, and preserve
all others.   This ensures that any future bugs with this mask and
remount will fail in an easy to detect way where new mount flags
simply won't change.

Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
2014-08-22 11:28:51 -07:00
Xufeng Zhang
99e72d9912 sctp: Fix sk_ack_backlog wrap-around problem
commit d3217b15a1 upstream.

Consider the scenario:
For a TCP-style socket, while processing the COOKIE_ECHO chunk in
sctp_sf_do_5_1D_ce(), after it has passed a series of sanity check,
a new association would be created in sctp_unpack_cookie(), but afterwards,
some processing maybe failed, and sctp_association_free() will be called to
free the previously allocated association, in sctp_association_free(),
sk_ack_backlog value is decremented for this socket, since the initial
value for sk_ack_backlog is 0, after the decrement, it will be 65535,
a wrap-around problem happens, and if we want to establish new associations
afterward in the same socket, ABORT would be triggered since sctp deem the
accept queue as full.
Fix this issue by only decrementing sk_ack_backlog for associations in
the endpoint's list.

Fix-suggested-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: Xufeng Zhang <xufeng.zhang@windriver.com>
Acked-by: Daniel Borkmann <dborkman@redhat.com>
Acked-by: Vlad Yasevich <vyasevich@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Reference: CVE-2014-4667
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
2014-08-22 11:14:39 -07:00
Nicholas Bellinger
cdd2596dbf target: Explicitly clear ramdisk_mcp backend pages
[Note that a different patch to address the same issue went in during
v3.15-rc1 (commit 4442dc8a), but includes a bunch of other changes that
don't strictly apply to fixing the bug.]

This patch changes rd_allocate_sgl_table() to explicitly clear
ramdisk_mcp backend memory pages by passing __GFP_ZERO into
alloc_pages().

This addresses a potential security issue where reading from a
ramdisk_mcp could return sensitive information, and follows what
>= v3.15 does to explicitly clear ramdisk_mcp memory at backend
device initialization time.

Reported-by: Jorge Daniel Sequeira Matias <jdsm@tecnico.ulisboa.pt>
Cc: Jorge Daniel Sequeira Matias <jdsm@tecnico.ulisboa.pt>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Reference: CVE-2014-4027
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
2014-08-22 11:14:38 -07:00
Mauro Ribeiro
07b6651c95 defconfig: u: attending forum request to enable those to support ipsec vpn
http://forum.odroid.com/viewtopic.php?f=29&t=1516&start=500
2014-08-20 21:31:04 -03:00