[PATCH 05/14] w1: continue slave search where previous left off

2013-12-28 Thread David Fries
Search will detect at most max_slave_count devices per run, if there are more pick up the next search where the previous left off. Signed-off-by: David Fries Cc: Evgeniy Polyakov --- drivers/w1/w1.c | 18 +++--- drivers/w1/w1.h |3 +++ 2 files changed, 18 insertions(+), 3

[PATCH 00/14] w1: async netlink, search, fixes, and improvements

2013-12-28 Thread David Fries
This patch series aims to extend and improve the netlink interface to the one wire system. Netlink is exposed as a socket interface which is normally assumed to be asynchronous which only blocks waiting on incoming packets or a fulls end buffer, but were executed on the calling thread. A bus

[PATCH 13/14] w1: use family_data instead of rom in w1_slave

2013-12-28 Thread David Fries
The first line printed from w1_slave gives the context of the w1 device. So does the second line, but if the CRC check failed, the second line contains the last successful result. It is confusing when it prints the temperature next to the line that might be a previous conversion and has nothing

[PATCH 11/14] w1: ds2490 USB setup fixes

2013-12-28 Thread David Fries
Calling usb_reset_configuration after usb_set_interface resets the interface that was just selected, so call reset first. Using alternative 3 greatly speeds the one wire search. alt 0 or 1, 10ms int, 23.16 seconds alt 2 or 3, 1ms int, 2.99 to 3.05 seconds Use usb_interrupt_msg not usb_bulk_msg

[PATCH 12/14] w1: ds2490 fix and enable hardware search

2013-12-28 Thread David Fries
The hardware search was failing without the COMM_RST flag. Enabled the flag and rewrote the function to handle more than one buffer of results and to continuing where the search left off. Remove hardware search note from the limitations now that it works. The "w1: ds2490 USB setup fixes" change

[PATCH 04/14] w1: increase w1_max_slave_count, allow write access

2013-12-28 Thread David Fries
w1_max_slave_count is only used to abort the search early or take a fast search (when 1), so there isn't any reason to not allow it to be updated through sysfs. Memory is not allocated based on the current value and 10 is a rather low base number, increasing to 64, and printing a message the

[PATCH 08/14] connector: add portid to unicast in addition to broadcasting

2013-12-28 Thread David Fries
This allows replying only to the requestor portid while still supporting broadcasting. Pass 0 to portid for the previous behavior. Signed-off-by: David Fries Cc: Evgeniy Polyakov --- Documentation/connector/cn_test.c |2 +- drivers/connector/cn_proc.c| 18

[PATCH 09/14] w1: reply only to the requester portid

2013-12-28 Thread David Fries
Unicast one wire replies back to the sender portid to avoid multiple programs getting each other's messages, especially as the response can't be uniquely identified with the sequence coming from the requesting program when both programs generate the same id. Continue to broadcast events such as

[PATCH 06/14] w1: new netlink commands, add/remove/list slaves

2013-12-28 Thread David Fries
Introduce new commands to add, remove, and list slave devices through the netlink interface. This can be useful to skip the search on a static network. They could previously only be added or removed through automatic search or sysfs, and this allows a program to only use netlink. Only allocate

[PATCH 10/14] w1: ds2490 reduce magic numbers

2013-12-28 Thread David Fries
Use a #define for the usb vendor request type, clear the status byte and use that instead of a magic offset in checking if idle. Signed-off-by: David Fries Cc: Evgeniy Polyakov --- drivers/w1/masters/ds2490.c | 23 +++ 1 file changed, 15 insertions(+), 8 deletions(-)

[PATCH 07/14] w1: process w1 netlink commands in w1_process thread

2013-12-28 Thread David Fries
Netlink is a socket interface and is expected to be asynchronous. Clients can now make w1 requests without blocking by making use of the w1_master thread to process netlink commands which was previously only used for doing an automatic bus search. Signed-off-by: David Fries Cc: Evgeniy Polyakov

[PATCH 02/14] w1: fixup search to support abort from netlink

2013-12-28 Thread David Fries
Before 63706172f33 "rework kthread_stop()" kthread_should_stop() always returned false when called from a non-kthread task, after it would oops as a non-kthread didn't have that structure and netlink was calling search from a thread which wasn't a kthread. 9d1817cab2f030 "w1: fix oops when

[PATCH 14/14] w1: format for DocBook and fixes

2013-12-28 Thread David Fries
Switch the code documentation format style to DocBook format, enable DocBook documentation generation, and fix some comments. Signed-off-by: David Fries Cc: Evgeniy Polyakov --- Documentation/DocBook/Makefile |2 +- Documentation/DocBook/w1.tmpl | 101 +

[PATCH 03/14] w1: Only wake up the search process if it is going to be searching

2013-12-28 Thread David Fries
It's valid to set the search count to 0 to stop searching, so don't wake up the search thread to not search. Signed-off-by: David Fries Cc: Evgeniy Polyakov --- drivers/w1/w1.c |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/w1/w1.c b/drivers/w1/w1.c index

[PATCH 01/14] w1: fix w1_send_slave dropping a slave id

2013-12-28 Thread David Fries
Previous logic, if (avail > 8) { store slave; return; } send data; clear; The logic error is, if there isn't space send the buffer and clear, but the slave wasn't added to the now empty buffer loosing that slave id. It also should have been "if (avail >= 8)" because when it is 8,

Re: Git puzzle

2013-12-28 Thread Jason Cooper
On Sun, Dec 29, 2013 at 01:27:05AM -0500, Gene Heskett wrote: > On Sunday 29 December 2013, Jason Cooper wrote: ... > >You may want to try the opposite approach. x86_64_defconfig, then add > >just what is necessary to boot and reproduce the bug. > > Did that, then added some stuff for my hdwe,

Re: Git puzzle

2013-12-28 Thread Gene Heskett
On Sunday 29 December 2013, Jason Cooper wrote: >Gene, > >On Sun, Dec 29, 2013 at 12:11:26AM -0500, Gene Heskett wrote: >> On Saturday 28 December 2013, Jason Cooper wrote: >> >On Sat, Dec 28, 2013 at 09:41:40PM -0500, Gene Heskett wrote: >... > >> >> working toward 3.8.3 which doesn't, and I have

Re: Git puzzle

2013-12-28 Thread Jason Cooper
On Sun, Dec 29, 2013 at 12:42:00AM -0500, Gene Heskett wrote: > On Sunday 29 December 2013, Jason Cooper wrote: ... > >You may want to try the opposite approach. x86_64_defconfig, then add > >just what is necessary to boot and reproduce the bug. > > Oh-oh, and where in this new tree do I find

Re: Git puzzle

2013-12-28 Thread Gene Heskett
On Sunday 29 December 2013, Jason Cooper wrote: >Gene, > >On Sun, Dec 29, 2013 at 12:11:26AM -0500, Gene Heskett wrote: >> On Saturday 28 December 2013, Jason Cooper wrote: >> >On Sat, Dec 28, 2013 at 09:41:40PM -0500, Gene Heskett wrote: >... > >> >> working toward 3.8.3 which doesn't, and I have

Re: Git puzzle

2013-12-28 Thread Jason Cooper
Gene, On Sun, Dec 29, 2013 at 12:11:26AM -0500, Gene Heskett wrote: > On Saturday 28 December 2013, Jason Cooper wrote: > >On Sat, Dec 28, 2013 at 09:41:40PM -0500, Gene Heskett wrote: ... > >> working toward 3.8.3 which doesn't, and I have the disk space chowned > >> to me, what is the exact

Re: Git puzzle

2013-12-28 Thread Gene Heskett
On Saturday 28 December 2013, Jason Cooper wrote: >Hey Gene, > >On Sat, Dec 28, 2013 at 09:41:40PM -0500, Gene Heskett wrote: >> Hey guys, I need to setup a bisect using git but the man pages aren't >> giving me what I need to know. Mainly I have no clue what the URL for >> the git repos looks

Re: Git puzzle

2013-12-28 Thread Jason Cooper
Gene, On Sat, Dec 28, 2013 at 11:35:47PM -0500, Jason Cooper wrote: > On Sat, Dec 28, 2013 at 09:41:40PM -0500, Gene Heskett wrote: ... > > working toward 3.8.3 which doesn't, and I have the disk space chowned > > to me, what is the exact syntax to pull a clone of 3.8.2, and then do > > a bisect

Re: Git puzzle

2013-12-28 Thread Jason Cooper
Hey Gene, On Sat, Dec 28, 2013 at 09:41:40PM -0500, Gene Heskett wrote: > Hey guys, I need to setup a bisect using git but the man pages aren't > giving me what I need to know. Mainly I have no clue what the URL for the > git repos looks like, I've been downloading and building the tarballs

Re: [PATCH 2/2] ACPI / hotplug / driver core: Handle containers in a special way

2013-12-28 Thread Greg Kroah-Hartman
On Fri, Dec 27, 2013 at 11:28:34PM +0100, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > ACPI container devices require special hotplug handling, at least > on some systems, since generally user space needs to carry out > system-specific cleanup before it makes sense to offline devices

Re: [PATCH][tentative] PCI / ACPI: Rework PCI host bridge removal to avoid sysfs warnings

2013-12-28 Thread Greg Kroah-Hartman
On Sun, Dec 29, 2013 at 12:20:22AM +0100, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > The device_del(_bridge->dev) in pci_stop_root_bus() is > problematic, because it causes all sysfs directories below > the host bridge to be removed recursively and when > pci_remove_root_bus()

Re: [PATCH 0/2] ACPI / hotplug / driver core: Special handling for container devices

2013-12-28 Thread Greg Kroah-Hartman
On Fri, Dec 27, 2013 at 11:21:59PM +0100, Rafael J. Wysocki wrote: > Hi Greg, > > The following series of 2 patches (patch [2/2] in particular) make changes > needed to handle hot-removal of system container devices (represented by > ACPI container and module device objects) on Fujitsu systems.

[PATCH 3.2 122/185] ASoC: wm8731: fix dsp mode configuration

2013-12-28 Thread Ben Hutchings
3.2.54-rc1 review patch. If anyone has any objections, please let me know. -- From: Bo Shen commit b4af6ef99a60c5b56df137d7accd81ba1ee1254e upstream. According to WM8731 "PD, Rev 4.9 October 2012" datasheet, when it works in DSP mode A, LRP = 1, while works in DSP mode B, LRP

[PATCH 3.2 008/185] alarmtimer: return EINVAL instead of ENOTSUPP if rtcdev doesn't exist

2013-12-28 Thread Ben Hutchings
3.2.54-rc1 review patch. If anyone has any objections, please let me know. -- From: KOSAKI Motohiro commit 98d6f4dd84a134d942827584a3c5f67ffd8ec35f upstream. Fedora Ruby maintainer reported latest Ruby doesn't work on Fedora Rawhide on ARM.

[PATCH 3.2 006/185] rt2400pci: fix RSSI read

2013-12-28 Thread Ben Hutchings
3.2.54-rc1 review patch. If anyone has any objections, please let me know. -- From: Stanislaw Gruszka commit 2bf127a5cc372b9319afcbae10b090663b621c8b upstream. RSSI value is provided on word3 not on word2. Signed-off-by: Stanislaw Gruszka Signed-off-by: John W. Linville

[PATCH 3.2 003/185] USB: mos7840: fix tiocmget error handling

2013-12-28 Thread Ben Hutchings
3.2.54-rc1 review patch. If anyone has any objections, please let me know. -- From: Johan Hovold commit a91ccd26e75235d86248d018fe3779732bcafd8d upstream. Make sure to return errors from tiocmget rather than rely on uninitialised stack data. Signed-off-by: Johan Hovold

[PATCH] vt: fix potential dual con_driver register for conswitchp

2013-12-28 Thread Wang YanQing
We should check whether conswitchp is registered before add it to registered_con_driver in con_init, or it will cause dual con_driver register for conswitchp. Although I haven't met it in reality, but I think it could happen for Embeded devices, who register platform con_driver earlier than call

[PATCH 3.2 111/185] ARM: footbridge: fix VGA initialisation

2013-12-28 Thread Ben Hutchings
3.2.54-rc1 review patch. If anyone has any objections, please let me know. -- From: Russell King commit 43659222e7a0113912ed02f6b2231550b3e471ac upstream. It's no good setting vga_base after the VGA console has been initialised, because if we do that we get this: Unable to

[PATCH 3.2 170/185] ipv6: fix possible seqlock deadlock in ip6_finish_output2

2013-12-28 Thread Ben Hutchings
3.2.54-rc1 review patch. If anyone has any objections, please let me know. -- From: Hannes Frederic Sowa [ Upstream commit 7f88c6b23afbd31545c676dea77ba9593a1a14bf ] IPv6 stats are 64 bits and thus are protected with a seqlock. By not disabling bottom-half we could deadlock

[PATCH 3.2 163/185] ipv6: fix leaking uninitialized port number of offender sockaddr

2013-12-28 Thread Ben Hutchings
3.2.54-rc1 review patch. If anyone has any objections, please let me know. -- From: Hannes Frederic Sowa [ Upstream commit 1fa4c710b6fe7b0aac9907240291b6fe6aafc3b8 ] Offenders don't have port numbers, so set it to 0. Signed-off-by: Hannes Frederic Sowa Signed-off-by: David

[PATCH 3.2 145/185] selinux: handle TCP SYN-ACK packets correctly in selinux_ip_postroute()

2013-12-28 Thread Ben Hutchings
3.2.54-rc1 review patch. If anyone has any objections, please let me know. -- From: Paul Moore commit 446b802437f285de68ffb8d6fac3c44c3cab5b04 upstream. In selinux_ip_postroute() we perform access checks based on the packet's security label. For locally generated traffic we

[PATCH 3.2 179/185] xfs: underflow bug in xfs_attrlist_by_handle()

2013-12-28 Thread Ben Hutchings
3.2.54-rc1 review patch. If anyone has any objections, please let me know. -- From: Dan Carpenter commit 31978b5cc66b8ba8a7e8eef60b12395d41b7b890 upstream. If we allocate less than sizeof(struct attrlist) then we end up corrupting memory or doing a ZERO_PTR_SIZE dereference.

[PATCH 3.2 178/185] aacraid: prevent invalid pointer dereference

2013-12-28 Thread Ben Hutchings
3.2.54-rc1 review patch. If anyone has any objections, please let me know. -- From: Mahesh Rajashekhara commit b4789b8e6be3151a955ade74872822f30e8cd914 upstream. It appears that driver runs into a problem here if fibsize is too small because we allocate user_srbcmd with

[PATCH 3.2 004/185] usb: Disable USB 2.0 Link PM before device reset.

2013-12-28 Thread Ben Hutchings
3.2.54-rc1 review patch. If anyone has any objections, please let me know. -- From: Sarah Sharp commit dcc01c0864823f91c3bf3ffca6613e2351702b87 upstream. Before the USB core resets a device, we need to disable the L1 timeout for the roothub, if USB 2.0 Link PM is enabled.

[PATCH 3.2 174/185] KVM: perform an invalid memslot step for gpa base change

2013-12-28 Thread Ben Hutchings
3.2.54-rc1 review patch. If anyone has any objections, please let me know. -- From: Marcelo Tosatti commit 12d6e7538e2d418c08f082b1b44ffa5fb7270ed8 upstream. PPC must flush all translations before the new memory slot is visible. Signed-off-by: Marcelo Tosatti Signed-off-by:

[PATCH 3.2 147/185] sched: Avoid throttle_cfs_rq() racing with period_timer stopping

2013-12-28 Thread Ben Hutchings
3.2.54-rc1 review patch. If anyone has any objections, please let me know. -- From: Ben Segall commit f9f9ffc237dd924f048204e8799da74f9ecf40cf upstream. throttle_cfs_rq() doesn't check to make sure that period_timer is running, and while update_curr/assign_cfs_runtime does, a

[PATCH 3.2 181/185] ftrace: Fix ftrace hash record update with notrace

2013-12-28 Thread Ben Hutchings
3.2.54-rc1 review patch. If anyone has any objections, please let me know. -- From: Steven Rostedt commit c842e975520f8ab09e293cc92f51a1f396251fd5 upstream. When disabling the "notrace" records, that means we want to trace them. If the notrace_hash is zero, it means that we

[PATCH 3.2 180/185] net: flow_dissector: fail on evil iph->ihl

2013-12-28 Thread Ben Hutchings
3.2.54-rc1 review patch. If anyone has any objections, please let me know. -- From: Jason Wang commit 6f092343855a71e03b8d209815d8c45bf3a27fcd upstream. We don't validate iph->ihl which may lead a dead loop if we meet a IPIP skb whose iph->ihl is zero. Fix this by failing

[PATCH 3.2 175/185] KVM: Fix iommu map/unmap to handle memory slot moves

2013-12-28 Thread Ben Hutchings
3.2.54-rc1 review patch. If anyone has any objections, please let me know. -- From: Alex Williamson commit e40f193f5bb022e927a57a4f5d5194e4f12ddb74 upstream. The iommu integration into memory slots expects memory slots to be added or removed and doesn't handle the move case.

[PATCH 3.2 005/185] usb: hub: Clear Port Reset Change during init/resume

2013-12-28 Thread Ben Hutchings
3.2.54-rc1 review patch. If anyone has any objections, please let me know. -- From: Julius Werner commit e92aee330837e4911553761490a8fb843f2053a6 upstream. This patch adds the Port Reset Change flag to the set of bits that are preemptively cleared on init/resume of a hub. In

[PATCH 3.2 009/185] USB:add new zte 3g-dongle's pid to option.c

2013-12-28 Thread Ben Hutchings
3.2.54-rc1 review patch. If anyone has any objections, please let me know. -- From: Rui li commit 0636fc507a976cdc40f21bdbcce6f0b98ff1dfe9 upstream. Signed-off-by: Rui li Signed-off-by: Greg Kroah-Hartman Signed-off-by: Ben Hutchings --- drivers/usb/serial/option.c | 17

[PATCH 3.2 014/185] ARM: sa11x0/assabet: ensure CS2 is configured appropriately

2013-12-28 Thread Ben Hutchings
3.2.54-rc1 review patch. If anyone has any objections, please let me know. -- From: Russell King commit f3964fe1c9d9a887d65faf594669852e4dec46e0 upstream. The CS2 region contains the Assabet board configuration and status registers, which are 32-bit. Unfortunately, some boot

[PATCH 3.2 002/185] NFSv4: Fix a use-after-free situation in _nfs4_proc_getlk()

2013-12-28 Thread Ben Hutchings
3.2.54-rc1 review patch. If anyone has any objections, please let me know. -- From: Trond Myklebust commit a6f951ddbdfb7bd87d31a44f61abe202ed6ce57f upstream. In nfs4_proc_getlk(), when some error causes a retry of the call to _nfs4_proc_getlk(), we can end up with Oopses of

[PATCH 3.2 172/185] HID: multitouch: validate indexes details

2013-12-28 Thread Ben Hutchings
3.2.54-rc1 review patch. If anyone has any objections, please let me know. -- From: Benjamin Tissoires commit 8821f5dc187bdf16cfb32ef5aa8c3035273fa79a upstream. When working on report indexes, always validate that they are in bounds. Without this, a HID device could report a

[PATCH 3.2 013/185] ALSA: 6fire: Fix probe of multiple cards

2013-12-28 Thread Ben Hutchings
3.2.54-rc1 review patch. If anyone has any objections, please let me know. -- From: Takashi Iwai commit 9b389a8a022110b4bc055a19b888283544d9eba6 upstream. The probe code of snd-usb-6fire driver overrides the devices[] pointer wrongly without checking whether it's already

[PATCH 3.2 164/185] atm: idt77252: fix dev refcnt leak

2013-12-28 Thread Ben Hutchings
3.2.54-rc1 review patch. If anyone has any objections, please let me know. -- From: Ying Xue [ Upstream commit b5de4a22f157ca345cdb3575207bf46402414bc1 ] init_card() calls dev_get_by_name() to get a network deceive. But it doesn't decrease network device reference count after

[PATCH 3.2 171/185] {pktgen, xfrm} Update IPv4 header total len and checksum after tranformation

2013-12-28 Thread Ben Hutchings
3.2.54-rc1 review patch. If anyone has any objections, please let me know. -- From: "fan.du" [ Upstream commit 3868204d6b89ea373a273e760609cb08020beb1a ] commit a553e4a6317b2cfc7659542c10fe43184ffe53da ("[PKTGEN]: IPSEC support") tried to support IPsec ESP transport

[PATCH 3.2 182/185] ftrace: Create ftrace_hash_empty() helper routine

2013-12-28 Thread Ben Hutchings
3.2.54-rc1 review patch. If anyone has any objections, please let me know. -- From: Steven Rostedt commit 06a51d9307380c78bb5c92e68fc80ad2c7d7f890 upstream. There are two types of hashes in the ftrace_ops; one type is the filter_hash and the other is the notrace_hash. Either

[PATCH 3.2 120/185] USB: pl2303: fixed handling of CS5 setting

2013-12-28 Thread Ben Hutchings
3.2.54-rc1 review patch. If anyone has any objections, please let me know. -- From: Colin Leitner commit a313249937820f8b1996133fc285efbd6aad2c5b upstream. This patch fixes the CS5 setting on the PL2303 USB-to-serial devices. CS5 has a value of 0 and the CSIZE setting has

[PATCH 3.2 018/185] powerpc/vio: use strcpy in modalias_show

2013-12-28 Thread Ben Hutchings
3.2.54-rc1 review patch. If anyone has any objections, please let me know. -- From: Prarit Bhargava commit 411cabf79e684171669ad29a0628c400b4431e95 upstream. Commit e82b89a6f19bae73fb064d1b3dd91fcefbb478f4 used strcat instead of strcpy which can result in an overflow of

[PATCH 3.2 015/185] usb: wusbcore: set the RPIPE wMaxPacketSize value correctly

2013-12-28 Thread Ben Hutchings
3.2.54-rc1 review patch. If anyone has any objections, please let me know. -- From: Thomas Pugliese commit 7b6bc07ab554e929c85d51b3d5b26cf7f12c6a3b upstream. For isochronous endpoints, set the RPIPE wMaxPacketSize value using wOverTheAirPacketSize from the endpoint companion

[PATCH 3.2 177/185] libertas: potential oops in debugfs

2013-12-28 Thread Ben Hutchings
3.2.54-rc1 review patch. If anyone has any objections, please let me know. -- From: Dan Carpenter commit a497e47d4aec37aaf8f13509f3ef3d1f6a717d88 upstream. If we do a zero size allocation then it will oops. Also we can't be sure the user passes us a NUL terminated string so

[PATCH 3.2 168/185] af_packet: block BH in prb_shutdown_retire_blk_timer()

2013-12-28 Thread Ben Hutchings
3.2.54-rc1 review patch. If anyone has any objections, please let me know. -- From: Veaceslav Falico [ Upstream commit ec6f809ff6f19fafba3212f6aff0dda71dfac8e8 ] Currently we're using plain spin_lock() in prb_shutdown_retire_blk_timer(), however the timer might fire right in

[PATCH 3.2 165/185] net: core: Always propagate flag changes to interfaces

2013-12-28 Thread Ben Hutchings
3.2.54-rc1 review patch. If anyone has any objections, please let me know. -- From: Vlad Yasevich [ Upstream commit d2615bf450694c1302d86b9cc8a8958edfe4c3a4 ] The following commit: b6c40d68ff6498b7f63ddf97cf0aa818d748dee7 net: only invoke dev->change_rx_flags when

[PATCH 3.2 149/185] net: Fix "ip rule delete table 256"

2013-12-28 Thread Ben Hutchings
3.2.54-rc1 review patch. If anyone has any objections, please let me know. -- From: Andreas Henriksson [ Upstream commit 13eb2ab2d33c57ebddc57437a7d341995fc9138c ] When trying to delete a table >= 256 using iproute2 the local table will be deleted. The table id is specified

[PATCH 3.2 173/185] crypto: ansi_cprng - Fix off by one error in non-block size request

2013-12-28 Thread Ben Hutchings
3.2.54-rc1 review patch. If anyone has any objections, please let me know. -- From: Neil Horman commit 714b33d15130cbb5ab426456d4e3de842d6c5b8a upstream. Stephan Mueller reported to me recently a error in random number generation in the ansi cprng. If several small requests

[PATCH 3.2 144/185] selinux: handle TCP SYN-ACK packets correctly in selinux_ip_output()

2013-12-28 Thread Ben Hutchings
3.2.54-rc1 review patch. If anyone has any objections, please let me know. -- From: Paul Moore commit 47180068276a04ed31d24fe04c673138208b07a9 upstream. In selinux_ip_output() we always label packets based on the parent socket. While this approach works in almost all cases,

[PATCH 3.2 155/185] isdnloop: use strlcpy() instead of strcpy()

2013-12-28 Thread Ben Hutchings
3.2.54-rc1 review patch. If anyone has any objections, please let me know. -- From: Dan Carpenter [ Upstream commit f9a23c84486ed350cce7bb1b2828abd1f6658796 ] These strings come from a copy_from_user() and there is no way to be sure they are NUL terminated. Signed-off-by:

[PATCH 3.2 001/185] selinux: correct locking in selinux_netlbl_socket_connect)

2013-12-28 Thread Ben Hutchings
3.2.54-rc1 review patch. If anyone has any objections, please let me know. -- From: Paul Moore commit 42d64e1add3a1ce8a787116036163b8724362145 upstream. The SELinux/NetLabel glue code has a locking bug that affects systems with NetLabel enabled, see the kernel error message

[PATCH 3.2 016/185] usb: wusbcore: change WA_SEGS_MAX to a legal value

2013-12-28 Thread Ben Hutchings
3.2.54-rc1 review patch. If anyone has any objections, please let me know. -- From: Thomas Pugliese commit f74b75e7f920c700636a669c7d16d12e9202 upstream. change WA_SEGS_MAX to a number that is legal according to the WUSB spec. Signed-off-by: Thomas Pugliese

[PATCH 3.2 160/185] net: add BUG_ON if kernel advertises msg_namelen > sizeof(struct sockaddr_storage)

2013-12-28 Thread Ben Hutchings
3.2.54-rc1 review patch. If anyone has any objections, please let me know. -- From: Hannes Frederic Sowa [ Upstream commit 68c6beb373955da0886d8f4f5995b3922ceda4be ] In that case it is probable that kernel code overwrote part of the stack. So we should bail out loudly here.

[PATCH 3.2 154/185] bonding: fix two race conditions in bond_store_updelay/downdelay

2013-12-28 Thread Ben Hutchings
3.2.54-rc1 review patch. If anyone has any objections, please let me know. -- From: Nikolay Aleksandrov [ Upstream commit b869ccfab1e324507fa3596e3e1308444fb68227 ] This patch fixes two race conditions between bond_store_updelay/downdelay and bond_store_miimon which could

[PATCH 3.2 017/185] powerpc/vio: Fix modalias_show return values

2013-12-28 Thread Ben Hutchings
3.2.54-rc1 review patch. If anyone has any objections, please let me know. -- From: Prarit Bhargava commit e82b89a6f19bae73fb064d1b3dd91fcefbb478f4 upstream. modalias_show() should return an empty string on error, not -ENODEV. This causes the following false and annoying

[PATCH 3.2 142/185] KVM: Improve create VCPU parameter (CVE-2013-4587)

2013-12-28 Thread Ben Hutchings
3.2.54-rc1 review patch. If anyone has any objections, please let me know. -- From: Andy Honig commit 338c7dbadd2671189cec7faf64c84d01071b3f96 upstream. In multiple functions the vcpu_id is used as an offset into a bitfield. Ag malicious user could specify a vcpu_id greater

[PATCH 3.2 019/185] dm: allocate buffer for messages with small number of arguments using GFP_NOIO

2013-12-28 Thread Ben Hutchings
3.2.54-rc1 review patch. If anyone has any objections, please let me know. -- From: Mikulas Patocka commit f36afb3957353d2529cb2b00f78fdccd14fc5e9c upstream. dm-mpath and dm-thin must process messages even if some device is suspended, so we allocate argv buffer with GFP_NOIO.

[PATCH 3.2 007/185] rt2x00: check if device is still available on rt2x00mac_flush()

2013-12-28 Thread Ben Hutchings
3.2.54-rc1 review patch. If anyone has any objections, please let me know. -- From: Stanislaw Gruszka commit 5671ab05cf2a579218985ef56595387932d78ee4 upstream. Fix random kernel panic with below messages when remove dongle. [ 2212.355447] BUG: unable to handle kernel NULL

[PATCH 3.2 138/185] hwmon: (w83l786ng) Fix fan speed control mode setting and reporting

2013-12-28 Thread Ben Hutchings
3.2.54-rc1 review patch. If anyone has any objections, please let me know. -- From: Brian Carnes commit cf7559bc053471f32373d71d04a9aa19e0b48d59 upstream. The wrong mask is used, which causes some fan speed control modes (pwmX_enable) to be incorrectly reported, and some

[PATCH 3.2 185/185] mmc: block: fix a bug of error handling in MMC driver

2013-12-28 Thread Ben Hutchings
3.2.54-rc1 review patch. If anyone has any objections, please let me know. -- From: KOBAYASHI Yoshitake commit c8760069627ad3b0dbbea170f0c4c58b16e18d3d upstream. Current MMC driver doesn't handle generic error (bit19 of device status) in write sequence. As a result, write

[PATCH 3.2 012/185] drivers/libata: Set max sector to 65535 for Slimtype DVD A DS8A9SH drive

2013-12-28 Thread Ben Hutchings
3.2.54-rc1 review patch. If anyone has any objections, please let me know. -- From: Shan Hai commit 0523f037f65dba10191b0fa9c51266f90ba64630 upstream. The "Slimtype DVD A DS8A9SH" drive locks up with following backtrace when the max sector is smaller than 65535 bytes, fix it

[PATCH 3.2 153/185] 6lowpan: Uncompression of traffic class field was incorrect

2013-12-28 Thread Ben Hutchings
3.2.54-rc1 review patch. If anyone has any objections, please let me know. -- From: Jukka Rissanen [ Upstream commit 1188f05497e7bd2f2614b99c54adfbe7413d5749 ] If priority/traffic class field in IPv6 header is set (seen when using ssh), the uncompression sets the TC and Flow

[PATCH 3.2 176/185] ARM: 7527/1: uaccess: explicitly check __user pointer when !CPU_USE_DOMAINS

2013-12-28 Thread Ben Hutchings
3.2.54-rc1 review patch. If anyone has any objections, please let me know. -- From: Russell King commit 8404663f81d212918ff85f493649a7991209fa04 upstream. The {get,put}_user macros don't perform range checking on the provided __user address when !CPU_HAS_DOMAINS. This patch

[PATCH 3.2 011/185] ahci: disabled FBS prior to issuing software reset

2013-12-28 Thread Ben Hutchings
3.2.54-rc1 review patch. If anyone has any objections, please let me know. -- From: xiangliang yu commit 89dafa20f3daab5b3e0c13d0068a28e8e64e2102 upstream. Tested with Marvell 88se9125, attached with one port mulitplier(5 ports) and one disk, we will get following boot log

[PATCH 3.2 183/185] ftrace: Check module functions being traced on reload

2013-12-28 Thread Ben Hutchings
3.2.54-rc1 review patch. If anyone has any objections, please let me know. -- From: "Steven Rostedt (Red Hat)" commit 8c4f3c3fa9681dc549cd35419b259496082fef8b upstream. There's been a nasty bug that would show up and not give much info. The bug displayed the following

[PATCH 3.2 135/185] dm bufio: initialize read-only module parameters

2013-12-28 Thread Ben Hutchings
3.2.54-rc1 review patch. If anyone has any objections, please let me know. -- From: Mikulas Patocka commit 4cb57ab4a2e61978f3a9b7d4f53988f30d61c27f upstream. Some module parameters in dm-bufio are read-only. These parameters inform the user about memory consumption. They are

[PATCH 3.2 146/185] drivers/rtc/rtc-at91rm9200.c: correct alarm over day/month wrap

2013-12-28 Thread Ben Hutchings
3.2.54-rc1 review patch. If anyone has any objections, please let me know. -- From: Linus Pizunski commit eb3c227289840eed95ddfb0516046f08d8993940 upstream. Update month and day of month to the alarm month/day instead of current day/month when setting the RTC alarm mask.

[PATCH 3.2 157/185] ipv4: fix possible seqlock deadlock

2013-12-28 Thread Ben Hutchings
3.2.54-rc1 review patch. If anyone has any objections, please let me know. -- From: Eric Dumazet [ Upstream commit c9e9042994d37cbc1ee538c500e9da1bb9d1bcdf ] ip4_datagram_connect() being called from process context, it should use IP_INC_STATS() instead of IP_INC_STATS_BH()

[PATCH 3.2 169/185] inet: fix possible seqlock deadlocks

2013-12-28 Thread Ben Hutchings
3.2.54-rc1 review patch. If anyone has any objections, please let me know. -- From: Eric Dumazet [ Upstream commit f1d8cba61c3c4b1eb88e507249c4cb8d635d9a76 ] In commit c9e9042994d3 ("ipv4: fix possible seqlock deadlock") I left another places where IP_INC_STATS_BH() were

[PATCH 3.2 128/185] ARM: 7913/1: fix framepointer check in unwind_frame

2013-12-28 Thread Ben Hutchings
3.2.54-rc1 review patch. If anyone has any objections, please let me know. -- From: Konstantin Khlebnikov commit 3abb6671a9c04479c4bd026798a05f857393b7e2 upstream. This patch fixes corner case when (fp + 4) overflows unsigned long, for example: fp = 0x -> fp + 4 == 3.

[PATCH 3.2 167/185] packet: fix use after free race in send path when dev is released

2013-12-28 Thread Ben Hutchings
3.2.54-rc1 review patch. If anyone has any objections, please let me know. -- From: Daniel Borkmann [ Upstream commit e40526cb20b5ee53419452e1f03d97092f144418 ] Salam reported a use after free bug in PF_PACKET that occurs when we're sending out frames on a socket bound device

[PATCH 3.2 139/185] hwmon: (w83l768ng) Fix fan speed control range

2013-12-28 Thread Ben Hutchings
3.2.54-rc1 review patch. If anyone has any objections, please let me know. -- From: Jean Delvare commit 33a7ab91d509fa33b4bcd3ce0038cc80298050da upstream. The W83L786NG stores the fan speed on 4 bits while the sysfs interface uses a 0-255 range. Thus the driver should scale

[PATCH 3.2 010/185] libata: Fix display of sata speed

2013-12-28 Thread Ben Hutchings
3.2.54-rc1 review patch. If anyone has any objections, please let me know. -- From: Gwendal Grignou commit 3e85c3ecbc520751324a191d23bb94873ed01b10 upstream. 6.0 Gbps link speed was not decoded properly: speed was reported at 3.0 Gbps only. Tested: On a machine where libata

[PATCH 3.2 141/185] futex: fix handling of read-only-mapped hugepages

2013-12-28 Thread Ben Hutchings
3.2.54-rc1 review patch. If anyone has any objections, please let me know. -- From: Linus Torvalds commit f12d5bfceb7e1f9051563381ec047f7f13956c3c upstream. The hugepage code had the exact same bug that regular pages had in commit 7485d0d3758e ("futexes: Remove rw parameter

[PATCH 3.2 136/185] ARM: pxa: tosa: fix keys mapping

2013-12-28 Thread Ben Hutchings
3.2.54-rc1 review patch. If anyone has any objections, please let me know. -- From: Dmitry Eremin-Solenikov commit 506cac15ac86f204b83e3cfccde73eeb4e7c5f34 upstream. When converting from tosa-keyboard driver to matrix keyboard, tosa keys received extra 1 column shift. Replace

[PATCH 3.2 152/185] bonding: don't permit to use ARP monitoring in 802.3ad mode

2013-12-28 Thread Ben Hutchings
3.2.54-rc1 review patch. If anyone has any objections, please let me know. -- From: Veaceslav Falico [ Upstream commit ec9f1d15db8185f63a2c3143dc1e90ba18541b08 ] Currently the ARP monitoring is not supported with 802.3ad, and it's prohibited to use it via the module params.

[PATCH 3.2 127/185] ARM: 7912/1: check stack pointer in get_wchan

2013-12-28 Thread Ben Hutchings
3.2.54-rc1 review patch. If anyone has any objections, please let me know. -- From: Konstantin Khlebnikov commit 1b15ec7a7427d4188ba91b9bbac696250a059d22 upstream. get_wchan() is lockless. Task may wakeup at any time and change its own stack, thus each next stack frame may be

[PATCH 3.2 126/185] crypto: scatterwalk - Use sg_chain_ptr on chain entries

2013-12-28 Thread Ben Hutchings
3.2.54-rc1 review patch. If anyone has any objections, please let me know. -- From: Tom Lendacky commit 389a5390583a18e45bc4abd4439291abec5e7a63 upstream. Now that scatterwalk_sg_chain sets the chain pointer bit the sg_page call in scatterwalk_sg_next hits a BUG_ON when

[PATCH 3.2 184/185] ftrace: Fix function graph with loading of modules

2013-12-28 Thread Ben Hutchings
3.2.54-rc1 review patch. If anyone has any objections, please let me know. -- From: "Steven Rostedt (Red Hat)" commit 8a56d7761d2d041ae5e8215d20b4167d8aa93f51 upstream. Commit 8c4f3c3fa9681 "ftrace: Check module functions being traced on reload" fixed module loading and

[PATCH 3.2 130/185] ALSA: memalloc.h - fix wrong truncation of dma_addr_t

2013-12-28 Thread Ben Hutchings
3.2.54-rc1 review patch. If anyone has any objections, please let me know. -- From: Stefano Panella commit 932e9dec380c67ec15ac3eb073bb55797d8b4801 upstream. When running a 32bit kernel the hda_intel driver is still reporting a 64bit dma_mask if the HW supports it.

[PATCH 3.2 117/185] USB: spcp8x5: correct handling of CS5 setting

2013-12-28 Thread Ben Hutchings
3.2.54-rc1 review patch. If anyone has any objections, please let me know. -- From: Colin Leitner commit 711fbdfbf2bc4827214a650afe3f64767a1aba16 upstream. This patch removes an erroneous check of CSIZE, which made it impossible to set CS5. Compiles clean, but couldn't test

[PATCH 3.2 162/185] net: clamp ->msg_namelen instead of returning an error

2013-12-28 Thread Ben Hutchings
3.2.54-rc1 review patch. If anyone has any objections, please let me know. -- From: Dan Carpenter [ Upstream commit db31c55a6fb245fdbb752a2ca4aefec89afabb06 ] If kmsg->msg_namelen > sizeof(struct sockaddr_storage) then in the original code that would lead to memory corruption

[PATCH 3.2 095/185] Staging: zram: Fix memory leak by refcount mismatch

2013-12-28 Thread Ben Hutchings
3.2.54-rc1 review patch. If anyone has any objections, please let me know. -- From: Rashika Kheria commit 1b672224d128ec2570eb37572ff803cfe452b4f7 upstream. As suggested by Minchan Kim and Jerome Marchand "The code in reset_store get the block device (bdget_disk()) but it

[PATCH 3.2 150/185] ipv6: use rt6_get_dflt_router to get default router in rt6_route_rcv

2013-12-28 Thread Ben Hutchings
3.2.54-rc1 review patch. If anyone has any objections, please let me know. -- From: Duan Jiong [ Upstream commit f104a567e673f382b09542a8dc3500aa689957b4 ] As the rfc 4191 said, the Router Preference and Lifetime values in a ::/0 Route Information Option should override the

[PATCH 3.2 099/185] ALSA: hda/realtek - Set pcbeep amp for ALC668

2013-12-28 Thread Ben Hutchings
3.2.54-rc1 review patch. If anyone has any objections, please let me know. -- From: Kailang Yang commit 9ad54547cf6f4410eba83bb95dfd2a0966718d6d upstream. Set the missing pcbeep default amp for ALC668. Signed-off-by: Kailang Yang Signed-off-by: Takashi Iwai Signed-off-by:

[PATCH 3.2 105/185] crypto: scatterwalk - Set the chain pointer indication bit

2013-12-28 Thread Ben Hutchings
3.2.54-rc1 review patch. If anyone has any objections, please let me know. -- From: Tom Lendacky commit 41da8b5adba77e22584f8b45f9641504fa885308 upstream. The scatterwalk_crypto_chain function invokes the scatterwalk_sg_chain function to chain two scatterlists, but the chain

[PATCH 3.2 110/185] net: update consumers of MSG_MORE to recognize MSG_SENDPAGE_NOTLAST

2013-12-28 Thread Ben Hutchings
3.2.54-rc1 review patch. If anyone has any objections, please let me know. -- From: Shawn Landden commit d3f7d56a7a4671d395e8af87071068a195257bf6 upstream. Commit 35f9c09fe (tcp: tcp_sendpages() should call tcp_push() once) added an internal flag MSG_SENDPAGE_NOTLAST, similar

[PATCH 3.2 140/185] hwmon: Prevent some divide by zeros in FAN_TO_REG()

2013-12-28 Thread Ben Hutchings
3.2.54-rc1 review patch. If anyone has any objections, please let me know. -- From: Dan Carpenter commit 3806b45ba4655147a011df03242cc197ab986c43 upstream. The "rpm * div" operations can overflow here, so this patch adds an upper limit to rpm to prevent that. Jean Delvare

  1   2   3   4   5   6   >