UBUNTU: [Config] CONFIG_RTC_DRV_XGENE=y for arm64

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
UBUNTU: Start new release

Ignore: yes
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
staging: usbip: usbip_host_driver.c: avoid assignment in if

Fix coding style issue "do not use assignment in if condition"
detected by checkpatch.pl in usbip_host_driver.c.

Signed-off-by: Wahib Faizi <wahibfaizi@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit da87dba81716adccec405470a76c8cc8b930aad8)
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
staging: usbip: usbip_host_driver.c: fix line over 80 characters

Fix coding style issue "line over 80 characters"
detected by checkpatch.pl in usbip_host_driver.c.

Signed-off-by: Wahib Faizi <wahibfaizi@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 25da2290ea9cab53d7865b4aaa3d7a31f2a65a94)
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
staging: usbip: fixed a coding-style warning

This fixes the following warning:
	- WARNING: __constant_cpu_to_le32 should be cpu_to_le32

Signed-off-by: Alexey Tulia <alexey.tulia@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit a06a24d2b7c1e17dafd63a793cf9ec243985bbd1)
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
staging: usbip: stub_main.c: Cleaning up missing null-terminate in conjunction with strncpy

Replacing strncpy with strlcpy to avoid strings that lacks null terminate.

Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 96955ed6f0fc4a4bff319bf34ddad8d30a705dfe)
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
staging: usbip: remove redundant return statements

Remove redundant return statements at the end of void functions. This
addresses the checkpatch.pl warnings:

	WARNING: void function return statements are not generally useful

Signed-off-by: Max Vozeler <max@hinterhof.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit a948318f70b4035983db7d178618b407bcd1fecb)
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
usbip: move usbip userspace code out of staging

At this point, USB/IP userspace code is fully functional
and can be moved out of staging.

Signed-off-by: Valentina Manea <valentina.manea.m@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 588b48caf65c4a92af567948ec0025065e749ddf)
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
usbip: move usbip kernel code out of staging

At this point, USB/IP kernel code is fully functional
and can be moved out of staging.

Signed-off-by: Valentina Manea <valentina.manea.m@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(back ported from commit 96c2737716d586a218bc795fcb79d2e2b6003081)
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>

Conflicts:
	drivers/staging/Kconfig
	drivers/staging/Makefile
HID: magicmouse: sanity check report size in raw_event() callback

The report passed to us from transport driver could potentially be
arbitrarily large, therefore we better sanity-check it so that
magicmouse_emit_touch() gets only valid values of raw_id.

Cc: stable@vger.kernel.org
Reported-by: Steven Vittitoe <scvitti@google.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
(cherry picked from commit c54def7bd64d7c0b6993336abcffb8444795bf38)
CVE-2014-3181
BugLink: http://bugs.launchpad.net/bugs/1370025
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
HID: picolcd: sanity check report size in raw_event() callback

The report passed to us from transport driver could potentially be
arbitrarily large, therefore we better sanity-check it so that raw_data
that we hold in picolcd_pending structure are always kept within proper
bounds.

Cc: stable@vger.kernel.org
Reported-by: Steven Vittitoe <scvitti@google.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
(cherry picked from commit 844817e47eef14141cf59b8d5ac08dd11c0a9189)
CVE-2014-3186
BugLink: http://bugs.launchpad.net/bugs/1370038
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
udf: Fold udf_fill_inode() into __udf_read_inode()

There's no good reason to separate these since udf_fill_inode() is
called only from __udf_read_inode() and both do part of the same thing.

Signed-off-by: Jan Kara <jack@suse.cz>
(cherry picked from commit bb7720a0b4a8ca3269fd86fbb45a78d2e0d3deaf)
[ luis: required for a clean cherry-pick for CVE-2014-6410 fix ]
CVE-2014-6410
BugLink: http://bugs.launchpad.net/bugs/1370042
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
udf: Avoid infinite loop when processing indirect ICBs

We did not implement any bound on number of indirect ICBs we follow when
loading inode. Thus corrupted medium could cause kernel to go into an
infinite loop, possibly causing a stack overflow.

Fix the possible stack overflow by removing recursion from
__udf_read_inode() and limit number of indirect ICBs we follow to avoid
infinite loops.

Signed-off-by: Jan Kara <jack@suse.cz>
(cherry picked from commit c03aa9f6e1f938618e6db2e23afef0574efeeb65)
CVE-2014-6410
BugLink: http://bugs.launchpad.net/bugs/1370042
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
Revert "UBUNTU: SAUCE: scsi: hyper-v storsvc switch up to SPC-3"

This reverts commit 1cbbe45e891a262e95f7d0c44c23e6d4f85e936e.

BugLink: http://bugs.launchpad.net/bugs/1354397
Signed-off-by: Andy Whitcroft <apw@canonical.com>
Drivers: add blist flags

Add blist flags to permit the reading of the VPD pages even when
the target may claim SPC-2 compliance. MSFT targets currently
claim SPC-2 compliance while they implement post SPC-2 features.
With this patch we can correctly handle WRITE_SAME_16 issues.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>

(cherry picked from commit f3cfabce7a2e92564d380de3aad4b43901fb7ae6)
BugLink: http://bugs.launchpad.net/bugs/1354397
Signed-off-by: Andy Whitcroft <apw@canonical.com>
sd: don't use scsi_setup_blk_pc_cmnd for flush requests

Simplify handling of flush requests by setting up the command directly
instead of initializing request fields and then calling
scsi_setup_blk_pc_cmnd to propagate the information into the command.

Also rename scsi_setup_flush_cmnd to sd_setup_flush_cmnd for consistency.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>

(cherry picked from commit a118c6c1d907e52286df25ee1e8b217f25d6f73d)
BugLink: http://bugs.launchpad.net/bugs/1354397
Signed-off-by: Andy Whitcroft <apw@canonical.com>
sd: fix a bug in deriving the FLUSH_TIMEOUT from the basic I/O timeout

Commit ID: 7e660100d85af860e7ad763202fff717adcdaacd added code to derive the
FLUSH_TIMEOUT from the basic I/O timeout. However, this patch did not use the
basic I/O timeout of the device. Fix this bug.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Reviewed-by: James Bottomley <JBottomley@Parallels.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>

(cherry picked from commit 26b9fd8b3452dcf0a8862e307ee23f442f63fb51)
BugLink: http://bugs.launchpad.net/bugs/1354397
Signed-off-by: Andy Whitcroft <apw@canonical.com>
UBUNTU: SAUCE: usbip: Update include path

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
UBUNTU: [Debian] usbip tools packaging

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

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
UBUNTU: [Config] Enable usbip tools

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

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