UBUNTU: Start new release

Ignore: yes
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
UBUNTU: Bump ABI

Ignore: yes
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
TTY: do not update atime/mtime on read/write

On http://vladz.devzero.fr/013_ptmx-timing.php, we can see how to find
out length of a password using timestamps of /dev/ptmx. It is
documented in "Timing Analysis of Keystrokes and Timing Attacks on
SSH". To avoid that problem, do not update time when reading
from/writing to a TTY.

I am afraid of regressions as this is a behavior we have since 0.97
and apps may expect the time to be current, e.g. for monitoring
whether there was a change on the TTY. Now, there is no change. So
this would better have a lot of testing before it goes upstream.

References: CVE-2013-0160

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: stable <stable@vger.kernel.org> # after 3.9 is out
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

(cherry picked from commit b0de59b5733d18b0d1974a060860a8b5c1b36a2e)
CVE-2013-0160
BugLink: http://bugs.launchpad.net/bugs/1097680
Signed-off-by: Andy Whitcroft <apw@canonical.com>
KVM: x86: Convert MSR_KVM_SYSTEM_TIME to use gfn_to_hva_cache functions (CVE-2013-1797)

There is a potential use after free issue with the handling of
MSR_KVM_SYSTEM_TIME.  If the guest specifies a GPA in a movable or removable
memory such as frame buffers then KVM might continue to write to that
address even after it's removed via KVM_SET_USER_MEMORY_REGION.  KVM pins
the page in memory so it's unlikely to cause an issue, but if the user
space component re-purposes the memory previously used for the guest, then
the guest will be able to corrupt that memory.

Tested: Tested against kvmclock unit test

Signed-off-by: Andrew Honig <ahonig@google.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>

(cherry picked from commit 0b79459b482e85cb7426aa7da683a9f2c97aeae1)
CVE-2013-1797
BugLink: http://bugs.launchpad.net/bugs/1158258
Signed-off-by: Andy Whitcroft <apw@canonical.com>
KVM: Fix bounds checking in ioapic indirect register reads (CVE-2013-1798)

If the guest specifies a IOAPIC_REG_SELECT with an invalid value and follows
that with a read of the IOAPIC_REG_WINDOW KVM does not properly validate
that request.  ioapic_read_indirect contains an
ASSERT(redir_index < IOAPIC_NUM_PINS), but the ASSERT has no effect in
non-debug builds.  In recent kernels this allows a guest to cause a kernel
oops by reading invalid memory.  In older kernels (pre-3.3) this allows a
guest to read from large ranges of host memory.

Tested: tested against apic unit tests.

Signed-off-by: Andrew Honig <ahonig@google.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>

(cherry picked from commit a2c118bfab8bc6b8bb213abfc35201e441693d55)
CVE-2013-1798
BugLink: http://bugs.launchpad.net/bugs/1158262
Signed-off-by: Andy Whitcroft <apw@canonical.com>
UBUNTU: [Config] RTC_DRV_PL031=y

[apw@canonical.com: this is armhf only and also drop from modules lists.]
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Signed-off-by: Andy Whitcroft <apw@canonical.com>
UBUNTU: SAUCE: (no-up) mac80211_hwsim: Register and bind to driver

Included into Johannes Berg repo, should be upstream for 3.10

BugLink: http://bugs.launchpad.net/bugs/1166250

Properly register our mac80211_hwsim_driver, attach it to the platform bus.
Bind newly created hwsim devices to that driver, so that our wlan devices get
a proper "driver" sysfs attribute.

This makes mac80211_hwsim interfaces work with NetworkManager.

Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
[fix an old and a new message to not be line-broken]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Acked-by: Andy Whitcroft <apw@canonical.com>
Signed-off-by: Leann Ogasawara <leann.ogasawara@canonical.com>
UBUNTU: SAUCE: (no-up) apparmor: Fix quieting of audit messages for network mediation

This fixes a bug in the apparmor networking patch that is not upstream
because it is being replaced by a newer patch.

BugLink: http://bugs.launchpad.net/bugs/1163259

If a profile specified a quieting of network denials for a given rule by
either the quiet or deny rule qualifiers, the resultant quiet mask for
denied requests was applied incorrectly, resulting in two potential bugs.
1. The misapplied quiet mask would prevent denials from being correctly
   tested against the kill mask/mode. Thus network access requests that
   should have resulted in the application being killed did not.

2. The actual quieting of the denied network request was not being applied.
   This would result in network rejections always being logged even when
   they had been specifically marked as quieted.

Signed-off-by: John Johansen <john.johansen@canonical.com>
Acked-by: Andy Whitcroft <apw@canonical.com>
Acked-by: Colin King <colin.king@canonical.com>
Signed-off-by: Leann Ogasawara <leann.ogasawara@canonical.com>
UBUNTU: [Config] Disable CONFIG_PARPORT_PC_FIFO

BugLink: http://bugs.launchpad.net/bugs/339752

According to the Kconfig, some parallel port chipsets provide hardware
that can potentially speed up printing.  This option takes advantage of
that hardware.  Unfortunately, it appears to regress some printers (eg.
HP 540 and Star SP742) and causes slow/stuttered printing.  Up until
recently, this option was considered EXPERIMENTAL and only unmarked as
EXPERIMENTAL during a wholesale cleanup (ie commit 6e8bd6e72).  It's
also been disabled in other distro's for quite some time.

Signed-off-by: Leann Ogasawara <leann.ogasawara@canonical.com>
UBUNTU: SAUCE: (no-up) drm/i915: quirk no PCH_PWM_ENABLE for Dell XPS13 backlight

Upstream is still working out the best solution, but this is a good
work around in the interim.

BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=47941
BugLink: https://bugs.launchpad.net/bugs/1163720
BugLink: https://bugs.launchpad.net/bugs/1162026

Some machines suffer from non-functional backlight controls if
BLM_PCH_PWM_ENABLE is set, so provide a quirk to avoid doing so.
Apply this quirk to Dell XPS 13 models.

Signed-off-by: Kamal Mostafa <kamal@canonical.com>
UBUNTU: (debian) Abort build on unresolved symbols

When splitting the flavours of a module into the extras and base
package, we already run depmod. Unfortunately this only produces
warnings when modules in the base package have unresolved depen-
dencies.
This change will abort the build in that case, so we can fix things.

BugLink: http://bugs.launchpad.net/bugs/1166197

Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
UBUNTU: [Config] Add libceph to inclusion list

Resolves missing module dependencies.

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
UBUNTU: [Config] Drop all inclusion list modules with unsatisfied dependencies

If nobody has complained about these unsatisfied dependencies, then its
not likely they have actually beeen used in linux-image-virtual.

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
drm/i915: HDMI/DP - ELD info refresh support for Haswell

BugLink: http://bugs.launchpad.net/bugs/1011438

ELD info should be updated dynamically according to hot plug event.
For haswell chip, clear/set the eld valid bit and output enable bit
from callback intel_disable/eanble_ddi().

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@gmail.com>
Signed-off-by: Wang Xingchao <xingchao.wang@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
(cherry picked from commit 7b9f35a6dd72f89452c58bbdbaf063027bf857ec)
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
ALSA - HDA: New PCI ID for Haswell ULT

BugLink: http://bugs.launchpad.net/bugs/1011438

Add new PCI ID 0x0a0c for Haswell ULT platform.

Signed-off-by: Wang Xingchao <xingchao.wang@linux.intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
(cherry picked from commit 4a7c516bf0cd697dbbee11db6258e3b3146e41a6)
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
ALSA: hda - Support rereading widgets under the function group

BugLink: http://bugs.launchpad.net/bugs/1011438

A codec may allow software to hide some unused pin/cvt widgets.

Sometimes BIOS does not enable the hidden widgets properly although they are
needed for the board. Thus the driver need to enable them as a board-specific
fixup and the whole tree will change.

This patch implements a common code for rereading codec widgets. So the fixup
code can call it after enabling the hidden widgets.

Signed-off-by: Mengdong Lin <mengdong.lin@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
(cherry picked from commit a15d05db41b1d5c9f2c3af11dfbfd46818cc64ba)
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
ALSA: hda - Add fixup for Haswell to enable all pin and convertor widgets

BugLink: http://bugs.launchpad.net/bugs/1011438

Some Haswell machines support more than one display outputs (HDMI or DP),
but its BIOS may not enable the codec's 2nd and 3rd pin and output cvt widgets.

This patch implements a board-specific fixup for Intel Haswell Machines:
If the hidden pins are not enabled by BIOS, the driver will enable them
and call common code to update the codec tree.

Signed-off-by: Mengdong Lin <mengdong.lin@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
(back ported from commit 1611a9c931e95fab871a33beba49cc9ea39bbba8)

Added "#include hda_auto_parser.h"
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
UBUNTU: (debian) fix internal linkage for separated header packages

BugLink: http://bugs.launchpad.net/bugs/1165259

Signed-off-by: Andy Whitcroft <apw@canonical.com>
UBUNTU: SAUCE: (no-up) Remove emi62 files duplicated in linux-firmware

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
UBUNTU: SAUCE: (no-up) Remove emi26 files duplicated in linux-firmware

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>