firefly-linux-kernel-4.4.55.git
13 years agoadd network filesystem configs for rk29_sdk_defconfig
lyx [Mon, 20 Dec 2010 07:12:27 +0000 (23:12 -0800)]
add network filesystem configs for rk29_sdk_defconfig

13 years agoadd hdmi driver
kfx [Mon, 20 Dec 2010 06:58:15 +0000 (14:58 +0800)]
add hdmi driver

13 years agohannstar_p1003: use async init and msleep
黄涛 [Mon, 20 Dec 2010 06:32:03 +0000 (14:32 +0800)]
hannstar_p1003: use async init and msleep

13 years agoimprove the part of p1003 speed
sakura [Mon, 20 Dec 2010 02:15:07 +0000 (10:15 +0800)]
improve the part of p1003 speed

13 years agork29: update Kconfig
黄涛 [Sun, 19 Dec 2010 06:55:42 +0000 (14:55 +0800)]
rk29: update Kconfig

13 years agocamera:add rk29_Winaccord_defconfig support camera, board file update
ddl [Sun, 19 Dec 2010 05:18:35 +0000 (13:18 +0800)]
camera:add rk29_Winaccord_defconfig support camera, board file update

13 years agocamera: fix ov2655 driver support IPP
ddl [Sun, 19 Dec 2010 04:43:26 +0000 (12:43 +0800)]
camera: fix ov2655 driver support IPP

13 years agofromdos
黄涛 [Sun, 19 Dec 2010 02:42:54 +0000 (10:42 +0800)]
fromdos

13 years agoadd rk29 Winaccord board config
lhh [Sat, 18 Dec 2010 11:37:59 +0000 (19:37 +0800)]
add rk29 Winaccord board config

13 years agoadd rk29 Winaccord board
lhh [Sat, 18 Dec 2010 11:36:49 +0000 (19:36 +0800)]
add rk29 Winaccord board

13 years agork29: rm vreg.h
黄涛 [Sat, 18 Dec 2010 06:47:55 +0000 (14:47 +0800)]
rk29: rm vreg.h

13 years agork29: add pmu.h
黄涛 [Sat, 18 Dec 2010 06:43:38 +0000 (14:43 +0800)]
rk29: add pmu.h

13 years agoupdate i2s
fang [Sat, 18 Dec 2010 02:46:25 +0000 (10:46 +0800)]
update i2s

13 years agoadd p1003 x,y config
sakura [Fri, 17 Dec 2010 08:07:14 +0000 (16:07 +0800)]
add p1003 x,y config

13 years agoMerge branch 'develop' of xjh@10.10.10.29:/home/rockchip/kernel into develop
root [Sat, 18 Dec 2010 01:34:56 +0000 (09:34 +0800)]
Merge branch 'develop' of xjh@10.10.10.29:/home/rockchip/kernel into develop

13 years agofix some usb host bug for 3g modem, update rk29_deconfig
yangkai [Sat, 18 Dec 2010 01:13:08 +0000 (09:13 +0800)]
fix some usb host bug for 3g modem, update rk29_deconfig

13 years agoMerge branch 'develop' of zyf@10.10.10.29:/home/rockchip/kernel into develop
zhaoyifeng [Sat, 18 Dec 2010 00:33:08 +0000 (08:33 +0800)]
Merge branch 'develop' of zyf@10.10.10.29:/home/rockchip/kernel into develop

13 years agohannstar_p1003: 使用独立的RT工作队列,提高响应速度
黄涛 [Fri, 17 Dec 2010 14:32:56 +0000 (22:32 +0800)]
hannstar_p1003: 使用独立的RT工作队列,提高响应速度

13 years agosupport build uu -> o
黄涛 [Fri, 17 Dec 2010 14:03:17 +0000 (22:03 +0800)]
support build uu -> o

13 years ago[xjh] gsensor early suspend
root [Fri, 17 Dec 2010 12:17:52 +0000 (20:17 +0800)]
[xjh] gsensor early suspend

13 years agoadd rknand write buffer
zhaoyifeng [Fri, 17 Dec 2010 10:13:12 +0000 (18:13 +0800)]
add rknand write buffer

13 years agoupdate recode for codec setting
fang [Fri, 17 Dec 2010 10:09:29 +0000 (18:09 +0800)]
update recode for codec setting

13 years agodefconfig: add camera defconfig
ddl [Fri, 17 Dec 2010 09:52:47 +0000 (17:52 +0800)]
defconfig: add camera defconfig

13 years agoadd rknand write buffer.
zhaoyifeng [Fri, 17 Dec 2010 09:34:46 +0000 (17:34 +0800)]
add rknand write buffer.

13 years agoadd rknand write buffer.
zhaoyifeng [Fri, 17 Dec 2010 09:30:36 +0000 (17:30 +0800)]
add rknand write buffer.

13 years agocamera:add limit ipp scale ratio when work with camera
ddl [Fri, 17 Dec 2010 08:50:31 +0000 (16:50 +0800)]
camera:add limit ipp scale ratio when work with camera

13 years agodisable fb's three buf support
杜坤明 [Fri, 17 Dec 2010 08:58:47 +0000 (16:58 +0800)]
disable fb's three buf support

13 years agoadd three buf support of fb; enhance gpu's mmu table size to 256k
杜坤明 [Fri, 17 Dec 2010 08:56:30 +0000 (16:56 +0800)]
add three buf support of fb; enhance gpu's mmu table size to 256k

13 years ago[xjh] gsensor with debug open
root [Fri, 17 Dec 2010 08:23:55 +0000 (16:23 +0800)]
[xjh] gsensor with debug open

13 years agoMerge branch 'develop' of 10.10.10.29:/home/rockchip/kernel into develop
cmc [Fri, 17 Dec 2010 07:06:34 +0000 (15:06 +0800)]
Merge branch 'develop' of 10.10.10.29:/home/rockchip/kernel into develop

13 years agousb2.0 host & usb1.1 host support
yangkai [Fri, 17 Dec 2010 03:12:42 +0000 (11:12 +0800)]
usb2.0 host & usb1.1 host support

13 years agork29: enable cpufreq framework
黄涛 [Fri, 17 Dec 2010 03:01:34 +0000 (11:01 +0800)]
rk29: enable cpufreq framework

13 years agofix interrupt recv bug for spi
cmc [Fri, 17 Dec 2010 02:48:56 +0000 (10:48 +0800)]
fix interrupt recv bug for spi

13 years agoMerge remote branch 'linux-2.6.32.y/master' into develop
黄涛 [Thu, 16 Dec 2010 12:54:24 +0000 (20:54 +0800)]
Merge remote branch 'linux-2.6.32.y/master' into develop

Conflicts:
drivers/i2c/busses/Kconfig
drivers/net/dm9000.c
drivers/net/wireless/libertas/if_sdio1.c
drivers/usb/serial/option.c
net/bluetooth/rfcomm/core.c

13 years agoIPP:fix write register error when IPP operate reset. wy commit
ddl [Thu, 16 Dec 2010 12:02:04 +0000 (20:02 +0800)]
IPP:fix write register error when IPP operate reset.  wy  commit

13 years agocamera and ipp: modify camera driver and ipp driver, camera can work with ipp
ddl [Thu, 16 Dec 2010 11:00:25 +0000 (19:00 +0800)]
camera and ipp: modify camera driver and ipp driver, camera can work with ipp

13 years agocamera:add support const-focus AF firmware for ov5642
ddl [Tue, 14 Dec 2010 10:28:40 +0000 (18:28 +0800)]
camera:add support const-focus AF firmware for ov5642

13 years agoadd pwm vcore macro
hxy [Thu, 16 Dec 2010 10:44:27 +0000 (18:44 +0800)]
add pwm vcore macro

13 years agork29: vpu_mem: fix bug when link inner-process region
陈恒明 [Thu, 16 Dec 2010 08:31:50 +0000 (00:31 -0800)]
rk29: vpu_mem: fix bug when link inner-process region

13 years agoadd ipp driver.
root [Thu, 16 Dec 2010 07:28:05 +0000 (15:28 +0800)]
add ipp driver.

13 years agomodified nand flash driver for new structure
hxy [Thu, 16 Dec 2010 06:30:15 +0000 (14:30 +0800)]
modified nand flash driver for new structure

13 years agoLimit the gpu's dma mem of size
杜坤明 [Thu, 16 Dec 2010 06:21:01 +0000 (14:21 +0800)]
Limit the gpu's dma mem of size

13 years agomodify framebuff 24bit color
root [Wed, 15 Dec 2010 12:08:08 +0000 (20:08 +0800)]
modify framebuff 24bit color

13 years agomodify framebuff to 24bit color
root [Wed, 15 Dec 2010 12:01:38 +0000 (20:01 +0800)]
modify framebuff to 24bit color

13 years agoupdate sdmmc when dma err stop and flush dma
lhh [Wed, 15 Dec 2010 10:10:19 +0000 (18:10 +0800)]
update sdmmc when dma err stop and flush dma

13 years agooff debug input key printk and sdmmc debug
lhh [Wed, 15 Dec 2010 09:21:07 +0000 (17:21 +0800)]
off debug input key printk and sdmmc debug

13 years agork29xx vmac: update function create_multicast_filter and vmac_set_multicast_list
lyx [Wed, 15 Dec 2010 08:18:39 +0000 (00:18 -0800)]
rk29xx vmac: update function create_multicast_filter and vmac_set_multicast_list

13 years agoclose win0 when no addr
zyw [Wed, 15 Dec 2010 06:55:50 +0000 (14:55 +0800)]
close win0 when no addr

13 years agoupdata gpu driver & lcdc priority
杜坤明 [Wed, 15 Dec 2010 04:02:08 +0000 (12:02 +0800)]
updata gpu driver & lcdc priority

13 years agork29: clock: 临时将core电压调高到1.4v,提高系统稳定性
黄涛 [Wed, 15 Dec 2010 01:43:43 +0000 (09:43 +0800)]
rk29: clock: 临时将core电压调高到1.4v,提高系统稳定性

13 years agofix p1003 irq
sakura [Tue, 14 Dec 2010 10:31:29 +0000 (18:31 +0800)]
fix p1003 irq

13 years agofix p1003 irq
sakura [Tue, 14 Dec 2010 10:16:28 +0000 (18:16 +0800)]
fix p1003 irq

13 years agofix p1003 irq
sakura [Tue, 14 Dec 2010 10:13:38 +0000 (18:13 +0800)]
fix p1003 irq

13 years agowifi: add wifi virtual card detect support
lbt [Tue, 14 Dec 2010 06:22:47 +0000 (14:22 +0800)]
wifi: add wifi virtual card detect support

13 years agork29: vpu_mem: add /proc/vpu_mem module
陈恒明 [Tue, 14 Dec 2010 06:20:01 +0000 (22:20 -0800)]
rk29: vpu_mem: add /proc/vpu_mem module

13 years agork29: clock: add hdmi support
黄涛 [Tue, 14 Dec 2010 06:04:55 +0000 (14:04 +0800)]
rk29: clock: add hdmi support

13 years agoadd rk29xx vmac driver
lyx [Tue, 14 Dec 2010 04:43:35 +0000 (20:43 -0800)]
add rk29xx vmac driver

13 years agoremove vpu_mem warning
陈恒明 [Tue, 14 Dec 2010 02:34:56 +0000 (18:34 -0800)]
remove vpu_mem warning

13 years agocamera: add auto focus function for ov5642
ddl [Mon, 13 Dec 2010 12:33:48 +0000 (20:33 +0800)]
camera: add auto focus function for ov5642

13 years agoopen rk29 sdmmc for dma use
lhh [Mon, 13 Dec 2010 12:35:53 +0000 (20:35 +0800)]
open rk29 sdmmc for dma use

13 years agochange freq of gpu to 312M
杜坤明 [Mon, 13 Dec 2010 08:47:31 +0000 (16:47 +0800)]
change freq of gpu to 312M

13 years agomodify fb for switch to hdmi
zyw [Mon, 13 Dec 2010 04:57:33 +0000 (12:57 +0800)]
modify fb for switch to hdmi

13 years agomodify fb win1 buf alloc
zyw [Mon, 13 Dec 2010 04:42:51 +0000 (12:42 +0800)]
modify fb win1 buf alloc

13 years agowifi: 1. use dma transfer for sdmmc1 controller
lbt [Sun, 12 Dec 2010 10:31:11 +0000 (18:31 +0800)]
wifi: 1. use dma transfer for sdmmc1 controller
      2. optimization for bcm4329 Makefile

13 years agork29sdk: defconfig add wm8900
黄涛 [Sat, 11 Dec 2010 04:29:00 +0000 (12:29 +0800)]
rk29sdk: defconfig add wm8900

13 years agoadd delay more sdmmc
lhh [Sat, 11 Dec 2010 04:18:23 +0000 (12:18 +0800)]
add delay more sdmmc

13 years agono battery ic set and sdmmc timeout add more
lhh [Sat, 11 Dec 2010 03:48:24 +0000 (11:48 +0800)]
no battery ic set and sdmmc timeout add more

13 years agork29: L2 cache设置变更。根据IC部的建议,810~972频率,data ram latency设为6 cycles
黄涛 [Fri, 10 Dec 2010 10:05:40 +0000 (18:05 +0800)]
rk29: L2 cache设置变更。根据IC部的建议,810~972频率,data ram latency设为6 cycles

13 years agork29: timer: use periph sync timer
黄涛 [Fri, 10 Dec 2010 08:34:24 +0000 (16:34 +0800)]
rk29: timer: use periph sync timer

13 years agomodify lcd freq
zyw [Fri, 10 Dec 2010 08:31:04 +0000 (16:31 +0800)]
modify lcd freq

13 years agoupdata rk29 battery for ti
lhh [Fri, 10 Dec 2010 07:42:40 +0000 (15:42 +0800)]
updata rk29 battery for ti

13 years agork29: add L2 cache setup
黄涛 [Fri, 10 Dec 2010 07:11:32 +0000 (15:11 +0800)]
rk29: add L2 cache setup

13 years agoclock: fix aclk_periph parent setup
黄涛 [Fri, 10 Dec 2010 07:05:05 +0000 (15:05 +0800)]
clock: fix aclk_periph parent setup

13 years agoMerge branch 'develop' of lhh@10.10.10.29:/home/rockchip/kernel into develop
lhh [Fri, 10 Dec 2010 06:24:03 +0000 (14:24 +0800)]
Merge branch 'develop' of lhh@10.10.10.29:/home/rockchip/kernel into develop

13 years agoupdate rk29 sdmmc
lhh [Fri, 10 Dec 2010 06:23:18 +0000 (14:23 +0800)]
update rk29 sdmmc

13 years agork29sdk: 支持内存大小配置,默认512MiB
黄涛 [Fri, 10 Dec 2010 05:17:42 +0000 (13:17 +0800)]
rk29sdk: 支持内存大小配置,默认512MiB

13 years agork29 l1 cache lize size is 64 bytes
黄涛 [Fri, 10 Dec 2010 04:49:51 +0000 (12:49 +0800)]
rk29 l1 cache lize size is 64 bytes

13 years agoLinux 2.6.32.27
Greg Kroah-Hartman [Thu, 9 Dec 2010 21:29:45 +0000 (13:29 -0800)]
Linux 2.6.32.27

13 years agox86: uv: xpc NULL deref when mesq becomes empty
Robin Holt [Wed, 16 Dec 2009 00:47:57 +0000 (16:47 -0800)]
x86: uv: xpc NULL deref when mesq becomes empty

commit 15b87d67ff3dc042bee42f991858d6b121b3b3ca upstream.

Under heavy load conditions, our set of xpc messages may become exhausted.
 The code handles this correctly with the exception of the management code
which hits a NULL pointer dereference.

Signed-off-by: Robin Holt <holt@sgi.com>
Cc: Jack Steiner <steiner@sgi.com>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoX86: uv: xpc_make_first_contact hang due to not accepting ACTIVE state
Robin Holt [Wed, 16 Dec 2009 00:47:58 +0000 (16:47 -0800)]
X86: uv: xpc_make_first_contact hang due to not accepting ACTIVE state

commit dbd2918ec65c35f36bb102c88eafe87be0552f6f upstream.

Many times while the initial connection is being made, the contacted
partition will send back both the ACTIVATING and the ACTIVE
remote_act_state changes in very close succescion.  The 1/4 second delay
in the make first contact loop is large enough to nearly always miss the
ACTIVATING state change.

Since either state indicates the remote partition has acknowledged our
state change, accept either.

Signed-off-by: Robin Holt <holt@sgi.com>
Cc: Jack Steiner <steiner@sgi.com>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agox86: uv: XPC receive message reuse triggers invalid BUG_ON()
Robin Holt [Wed, 16 Dec 2009 00:47:59 +0000 (16:47 -0800)]
x86: uv: XPC receive message reuse triggers invalid BUG_ON()

commit 046d6c563b1c6226bbf0f84e5b2413ad8ab921a1 upstream.

This was a difficult bug to trip.  XPC was in the middle of sending an
acknowledgement for a received message.

In xpc_received_payload_uv():
.
        ret = xpc_send_gru_msg(ch->sn.uv.cached_notify_gru_mq_desc, msg,
                               sizeof(struct xpc_notify_mq_msghdr_uv));
        if (ret != xpSuccess)
                XPC_DEACTIVATE_PARTITION(&xpc_partitions[ch->partid], ret);

        msg->hdr.msg_slot_number += ch->remote_nentries;

at the point in xpc_send_gru_msg() where the hardware has dispatched the
acknowledgement, the remote side is able to reuse the message structure
and send a message with a different slot number.  This problem is made
worse by interrupts.

The adjustment of msg_slot_number and the BUG_ON in
xpc_handle_notify_mq_msg_uv() which verifies the msg_slot_number is
consistent are only used for debug purposes.  Since a fix for this that
preserves the debug functionality would either have to infringe upon the
payload or allocate another structure just for debug, I decided to remove
it entirely.

Signed-off-by: Robin Holt <holt@sgi.com>
Cc: Jack Steiner <steiner@sgi.com>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoUV - XPC: pass nasid instead of nid to gru_create_message_queue
Robin Holt [Wed, 16 Dec 2009 00:48:00 +0000 (16:48 -0800)]
UV - XPC: pass nasid instead of nid to gru_create_message_queue

commit 57e6d258b1e41cd7ceb26fa43ce116939d8440b1 upstream.

Currently, the UV xpc code is passing nid to the gru_create_message_queue
instead of nasid as it expects.

Signed-off-by: Robin Holt <holt@sgi.com>
Signed-off-by: Jack Steiner <steiner@sgi.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agonet sched: fix some kernel memory leaks
Eric Dumazet [Mon, 16 Aug 2010 20:04:22 +0000 (20:04 +0000)]
net sched: fix some kernel memory leaks

commit 1c40be12f7d8ca1d387510d39787b12e512a7ce8 upstream.

We leak at least 32bits of kernel memory to user land in tc dump,
because we dont init all fields (capab ?) of the dumped structure.

Use C99 initializers so that holes and non explicit fields are zeroed.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Cc: dann frazier <dannf@debian.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoact_nat: use stack variable
Changli Gao [Tue, 29 Jun 2010 23:07:09 +0000 (23:07 +0000)]
act_nat: use stack variable

commit 504f85c9d05f7c605306e808f0d835fe11bfd18d upstream.

act_nat: use stack variable

structure tc_nat isn't too big for stack, so we can put it in stack.

Signed-off-by: Changli Gao <xiaosuo@gmail.com>
Cc: dann frazier <dannf@debian.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agonmi: fix clock comparator revalidation
Heiko Carstens [Thu, 25 Nov 2010 08:52:45 +0000 (09:52 +0100)]
nmi: fix clock comparator revalidation

commit e8129c642155616d9e2160a75f103e127c8c3708 upstream.

On each machine check all registers are revalidated. The save area for
the clock comparator however only contains the upper most seven bytes
of the former contents, if valid.
Therefore the machine check handler uses a store clock instruction to
get the current time and writes that to the clock comparator register
which in turn will generate an immediate timer interrupt.
However within the lowcore the expected time of the next timer
interrupt is stored. If the interrupt happens before that time the
handler won't be called. In turn the clock comparator won't be
reprogrammed and therefore the interrupt condition stays pending which
causes an interrupt loop until the expected time is reached.

On NOHZ machines this can result in unresponsive machines since the
time of the next expected interrupted can be a couple of days in the
future.

To fix this just revalidate the clock comparator register with the
expected value.
In addition the special handling for udelay must be changed as well.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agonet: Limit socket I/O iovec total length to INT_MAX.
David S. Miller [Thu, 28 Oct 2010 18:41:55 +0000 (11:41 -0700)]
net: Limit socket I/O iovec total length to INT_MAX.

commit 8acfe468b0384e834a303f08ebc4953d72fb690a upstream.

This helps protect us from overflow issues down in the
individual protocol sendmsg/recvmsg handlers.  Once
we hit INT_MAX we truncate out the rest of the iovec
by setting the iov_len members to zero.

This works because:

1) For SOCK_STREAM and SOCK_SEQPACKET sockets, partial
   writes are allowed and the application will just continue
   with another write to send the rest of the data.

2) For datagram oriented sockets, where there must be a
   one-to-one correspondance between write() calls and
   packets on the wire, INT_MAX is going to be far larger
   than the packet size limit the protocol is going to
   check for and signal with -EMSGSIZE.

Based upon a patch by Linus Torvalds.

Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agonet: Truncate recvfrom and sendto length to INT_MAX.
Linus Torvalds [Sat, 30 Oct 2010 23:43:10 +0000 (16:43 -0700)]
net: Truncate recvfrom and sendto length to INT_MAX.

commit 253eacc070b114c2ec1f81b067d2fed7305467b0 upstream.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agords: Integer overflow in RDS cmsg handling
Dan Rosenberg [Wed, 17 Nov 2010 06:37:16 +0000 (06:37 +0000)]
rds: Integer overflow in RDS cmsg handling

commit 218854af84038d828a32f061858b1902ed2beec6 upstream.

In rds_cmsg_rdma_args(), the user-provided args->nr_local value is
restricted to less than UINT_MAX.  This seems to need a tighter upper
bound, since the calculation of total iov_size can overflow, resulting
in a small sock_kmalloc() allocation.  This would probably just result
in walking off the heap and crashing when calling rds_rdma_pages() with
a high count value.  If it somehow doesn't crash here, then memory
corruption could occur soon after.

Signed-off-by: Dan Rosenberg <drosenberg@vsecurity.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoeconet: fix CVE-2010-3850
Phil Blundell [Wed, 24 Nov 2010 19:49:53 +0000 (11:49 -0800)]
econet: fix CVE-2010-3850

commit 16c41745c7b92a243d0874f534c1655196c64b74 upstream.

Add missing check for capable(CAP_NET_ADMIN) in SIOCSIFADDR operation.

Signed-off-by: Phil Blundell <philb@gnu.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoeconet: disallow NULL remote addr for sendmsg(), fixes CVE-2010-3849
Phil Blundell [Wed, 24 Nov 2010 19:49:19 +0000 (11:49 -0800)]
econet: disallow NULL remote addr for sendmsg(), fixes CVE-2010-3849

commit fa0e846494792e722d817b9d3d625a4ef4896c96 upstream.

Later parts of econet_sendmsg() rely on saddr != NULL, so return early
with EINVAL if NULL was passed otherwise an oops may occur.

Signed-off-by: Phil Blundell <philb@gnu.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agox86-32: Fix dummy trampoline-related inline stubs
H. Peter Anvin [Wed, 18 Aug 2010 18:42:23 +0000 (11:42 -0700)]
x86-32: Fix dummy trampoline-related inline stubs

commit 8848a91068c018bc91f597038a0f41462a0f88a4 upstream.

Fix dummy inline stubs for trampoline-related functions when no
trampolines exist (until we get rid of the no-trampoline case
entirely.)

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Cc: Joerg Roedel <joerg.roedel@amd.com>
Cc: Borislav Petkov <borislav.petkov@amd.com>
LKML-Reference: <4C6C294D.3030404@zytor.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agox86, mm: Fix CONFIG_VMSPLIT_1G and 2G_OPT trampoline
Hugh Dickins [Wed, 25 Aug 2010 05:44:12 +0000 (22:44 -0700)]
x86, mm: Fix CONFIG_VMSPLIT_1G and 2G_OPT trampoline

commit b7d460897739e02f186425b7276e3fdb1595cea7 upstream.

rc2 kernel crashes when booting second cpu on this CONFIG_VMSPLIT_2G_OPT
laptop: whereas cloning from kernel to low mappings pgd range does need
to limit by both KERNEL_PGD_PTRS and KERNEL_PGD_BOUNDARY, cloning kernel
pgd range itself must not be limited by the smaller KERNEL_PGD_BOUNDARY.

Signed-off-by: Hugh Dickins <hughd@google.com>
LKML-Reference: <alpine.LSU.2.00.1008242235120.2515@sister.anvils>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Cc: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agox86-32: Separate 1:1 pagetables from swapper_pg_dir
Joerg Roedel [Mon, 16 Aug 2010 12:38:33 +0000 (14:38 +0200)]
x86-32: Separate 1:1 pagetables from swapper_pg_dir

commit fd89a137924e0710078c3ae855e7cec1c43cb845 upstream.

This patch fixes machine crashes which occur when heavily exercising the
CPU hotplug codepaths on a 32-bit kernel. These crashes are caused by
AMD Erratum 383 and result in a fatal machine check exception. Here's
the scenario:

1. On 32-bit, the swapper_pg_dir page table is used as the initial page
table for booting a secondary CPU.

2. To make this work, swapper_pg_dir needs a direct mapping of physical
memory in it (the low mappings). By adding those low, large page (2M)
mappings (PAE kernel), we create the necessary conditions for Erratum
383 to occur.

3. Other CPUs which do not participate in the off- and onlining game may
use swapper_pg_dir while the low mappings are present (when leave_mm is
called). For all steps below, the CPU referred to is a CPU that is using
swapper_pg_dir, and not the CPU which is being onlined.

4. The presence of the low mappings in swapper_pg_dir can result
in TLB entries for addresses below __PAGE_OFFSET to be established
speculatively. These TLB entries are marked global and large.

5. When the CPU with such TLB entry switches to another page table, this
TLB entry remains because it is global.

6. The process then generates an access to an address covered by the
above TLB entry but there is a permission mismatch - the TLB entry
covers a large global page not accessible to userspace.

7. Due to this permission mismatch a new 4kb, user TLB entry gets
established. Further, Erratum 383 provides for a small window of time
where both TLB entries are present. This results in an uncorrectable
machine check exception signalling a TLB multimatch which panics the
machine.

There are two ways to fix this issue:

        1. Always do a global TLB flush when a new cr3 is loaded and the
        old page table was swapper_pg_dir. I consider this a hack hard
        to understand and with performance implications

        2. Do not use swapper_pg_dir to boot secondary CPUs like 64-bit
        does.

This patch implements solution 2. It introduces a trampoline_pg_dir
which has the same layout as swapper_pg_dir with low_mappings. This page
table is used as the initial page table of the booting CPU. Later in the
bringup process, it switches to swapper_pg_dir and does a global TLB
flush. This fixes the crashes in our test cases.

-v2: switch to swapper_pg_dir right after entering start_secondary() so
that we are able to access percpu data which might not be mapped in the
trampoline page table.

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
LKML-Reference: <20100816123833.GB28147@aftab>
Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agocrypto: padlock - Fix AES-CBC handling on odd-block-sized input
Herbert Xu [Thu, 4 Nov 2010 18:38:39 +0000 (14:38 -0400)]
crypto: padlock - Fix AES-CBC handling on odd-block-sized input

commit c054a076a1bd4731820a9c4d638b13d5c9bf5935 upstream.

On certain VIA chipsets AES-CBC requires the input/output to be
a multiple of 64 bytes.  We had a workaround for this but it was
buggy as it sent the whole input for processing when it is meant
to only send the initial number of blocks which makes the rest
a multiple of 64 bytes.

As expected this causes memory corruption whenever the workaround
kicks in.

Reported-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agox25: Prevent crashing when parsing bad X.25 facilities
Dan Rosenberg [Fri, 12 Nov 2010 20:44:42 +0000 (12:44 -0800)]
x25: Prevent crashing when parsing bad X.25 facilities

commit 5ef41308f94dcbb3b7afc56cdef1c2ba53fa5d2f upstream.

Now with improved comma support.

On parsing malformed X.25 facilities, decrementing the remaining length
may cause it to underflow.  Since the length is an unsigned integer,
this will result in the loop continuing until the kernel crashes.

This patch adds checks to ensure decrementing the remaining length does
not cause it to wrap around.

Signed-off-by: Dan Rosenberg <drosenberg@vsecurity.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoV4L/DVB: ivtvfb: prevent reading uninitialized stack memory
Dan Rosenberg [Wed, 15 Sep 2010 21:44:22 +0000 (18:44 -0300)]
V4L/DVB: ivtvfb: prevent reading uninitialized stack memory

commit 405707985594169cfd0b1d97d29fcb4b4c6f2ac9 upstream.

The FBIOGET_VBLANK device ioctl allows unprivileged users to read 16
bytes of uninitialized stack memory, because the "reserved" member of
the fb_vblank struct declared on the stack is not altered or zeroed
before being copied back to the user.  This patch takes care of it.

Signed-off-by: Dan Rosenberg <dan.j.rosenberg@gmail.com>
Signed-off-by: Andy Walls <awalls@md.metrocast.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agocan-bcm: fix minor heap overflow
Oliver Hartkopp [Wed, 10 Nov 2010 12:10:30 +0000 (12:10 +0000)]
can-bcm: fix minor heap overflow

commit 0597d1b99fcfc2c0eada09a698f85ed413d4ba84 upstream.

On 64-bit platforms the ASCII representation of a pointer may be up to 17
bytes long. This patch increases the length of the buffer accordingly.

http://marc.info/?l=linux-netdev&m=128872251418192&w=2

Reported-by: Dan Rosenberg <drosenberg@vsecurity.com>
Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
CC: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agomemory corruption in X.25 facilities parsing
andrew hendry [Wed, 3 Nov 2010 12:54:53 +0000 (12:54 +0000)]
memory corruption in X.25 facilities parsing

commit a6331d6f9a4298173b413cf99a40cc86a9d92c37 upstream.

Signed-of-by: Andrew Hendry <andrew.hendry@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agox25: Patch to fix bug 15678 - x25 accesses fields beyond end of packet.
John Hughes [Thu, 8 Apr 2010 04:29:25 +0000 (21:29 -0700)]
x25: Patch to fix bug 15678 - x25 accesses fields beyond end of packet.

commit f5eb917b861828da18dc28854308068c66d1449a upstream.

Here is a patch to stop X.25 examining fields beyond the end of the packet.

For example, when a simple CALL ACCEPTED was received:

10 10 0f

x25_parse_facilities was attempting to decode the FACILITIES field, but this
packet contains no facilities field.

Signed-off-by: John Hughes <john@calva.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoInput: i8042 - add Sony VAIO VPCZ122GX to nomux list
Dmitry Torokhov [Thu, 4 Nov 2010 16:12:44 +0000 (09:12 -0700)]
Input: i8042 - add Sony VAIO VPCZ122GX to nomux list

[Note that the mainline will not have this particular fix but rather
will blacklist entire VAIO line based off DMI board name. For stable
I am being a bit more cautious and blacklist one particular product.]

Trying to query/activate active multiplexing mode on this VAIO makes
both keyboard and touchpad inoperable. Futher kernels will blacklist
entire VAIO line, however here we blacklist just one particular model.

Reported-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>