OpenVZ-legacy
  1. OpenVZ-legacy

linux-2.6.27-openvz

Public
AuthorCommitMessageCommit dateIssues
Pavel EmelyanovPavel Emelyanov
bf671cd0003OpenVZ kernel 2.6.27-briullov releasedCalled after Karl Pavlovich Briullov - a Russian painter.
Pavel EmelyanovPavel Emelyanov
7ccd6ecf708MMerged linux-2.6.27.21
Pavel EmelyanovPavel Emelyanov
ef5d837fcabve: show task's vpid and veid even inside a containerGetting task real virtual :) pid is tricky in 2.6.26 and above... http://bugzilla.openvz.org/show_bug.cgi?id=1223 http://bugzilla.openvz.org/show_bug.cgi?id=1224 Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Denis V. LunevDenis V. Lunev
321e8ce0e18ubc: uncharging too much for TCPSNDBUFIt is not allowed to go to the label wait_for_memory with chargesize != 0 when this space is already placed to the skb. Signed-off-by: Denis V. Lunev <den@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Denis V. LunevDenis V. Lunev
c026b6b661bEndless loop in __sk_stream_wait_memory.[UBC]: Endless loop in __sk_stream_wait_memory. The loop in __sk_stream_wait_memory when tcp_sendmsg asks to wait for TCPSNDBUF space is endless when the timeout is not specified. The only way out is to queue a signal for that process. Lets return a status flag from ub_sock_snd_queue_add that UB space is available. This is enough to make a correct decision to leave the cycle. Signed-off-by: ...
Pavel EmelyanovPavel Emelyanov
136f4231fcdptrace: ban ptracing of a container init from inside the containerCurrent ptrace engine suffers from strange problems, one of which is described in bug #1222 - init results in T state after incorrect tracer detach. Fixing it is not that easy, but since ptracing init was never alowed before it's OK to ban this (for a while?). http://bugzilla.openvz.org/show_bug.cgi?id=1222 Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Konstantin KhlebnikovKonstantin Khlebnikov
7ed2832bcceVE: fix idle time accountingMake both account ways simmetic: idle time accounted as idle or iowait, depending on number tasks in iowait state. http://bugzilla.openvz.org/show_bug.cgi?id=1217 (#114633) Signed-off-by: Konstantin Khlebnikov <khlebnikov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Konstantin KhlebnikovKonstantin Khlebnikov
966af0a67f7cfq: revalidate cached async queueAsync queues are stored on struct cfq_bc_data and are cached on per-process struct cfq_io_context. The cached queue may be invalid due to io_page beancounter driven io-context switch. So, cfq_io_context gets cached queue, but corresponding cfq_bc and user_beancounter may be already destroyed -- all this leads to oops at get_beancounter in cfq_set_request. Add check for async queue owner and ...
Konstantin KhlebnikovKonstantin Khlebnikov
d42b8c49d65cfq link cfq_bc_data without bc io schedFixes oops at first IO with CONFIG_BC_IO_SCHED=n. The cfq_set_request wants to get ub by cfqq->cfq_bc->ub_iopriv, so save ref to ub0 there. Signed-off-by: Konstantin Khlebnikov <khlebnikov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Konstantin KhlebnikovKonstantin Khlebnikov
80cc33cb3c2NETLINK: disable netns broadcast filteringThere only one uevent_sock in init_net for all VE. Broadcasts allready filtered by exec_env compare, drop netns check. http://bugzilla.openvz.org/show_bug.cgi?id=1195 http://git.openvz.org/?p=linux-2.6.24-openvz;a=commit;h=0474535acfde6a Signed-off-by: Alexey Dobriyan <adobriyan@openvz.org> Signed-off-by: Konstantin Khlebnikov <khlebnikov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@ope...
Konstantin KhlebnikovKonstantin Khlebnikov
1ac0a047992pidns: zap ve process only when killing ve's init pid-nsThis prevents task genocide when zapping nested pid-ns in same ve, and affects ve0 only. Signed-off-by: Konstantin Khlebnikov <khlebnikov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Konstantin KhlebnikovKonstantin Khlebnikov
251b42da249pidns: lost task debug print uses wrong prototypePrint most interesting fields manually. http://bugzilla.openvz.org/show_bug.cgi?id=1181 Signed-off-by: Konstantin Khlebnikov <khlebnikov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Greg Kroah-HartmanGreg Kroah-Hartman
b3fa1152a4dLinux 2.6.27.21
Alan SternAlan Stern
2de0d862426USB: usbfs: keep async URBs until the device file is closedcommit 6ff10464096540e14d7575a72c50d0316d003714 upstream. The usbfs driver manages a list of completed asynchronous URBs. But it is too eager to free the entries on this list: destroy_async() gets called whenever an interface is unbound or a device is removed, and it deallocates the outstanding struct async entries for all URBs on that interface or device. This is wrong; the user program sho...
Moritz MuehlenhoffMoritz Muehlenhoff
b65a739eeb3USB: Updated unusual-devs entry for USB mass storage on Nokia 6233commit 716a9c8561d9c50ec454f4fbd39a265892feda2c upstream. Current firmware revision 5.60 still behaves the same, so update the quirk up a (non-existing) 99.99 revision. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=493415 Signed-off-by: Moritz Muehlenhoff <jmm@debian.org> Tested-by: Jan Heitkoetter <devnull@heitkoetter.net> Signed-off-by: Phil Dibowitz <phil@ipom.com> Signed-off-by: Greg ...
Jan DumonJan Dumon
95b638e93bfUSB: unusual_devs: Add support for GI 0431 SD-Card interfacecommit c497e715f93d148d751c055401568684eea0bf6b upstream. Enable the SD-Card interface on the GI 0431 HSUPA stick from Option. The unusual_devs.h entry is necessary because the device descriptor is vendor-specific. That prevents usb-storage from binding to it as an interface driver. T: Bus=07 Lev=01 Prnt=01 Port=01 Cnt=02 Dev#= 15 Spd=480 MxCh= 0 D: Ver= 2.00 Cls=ff(vend.) Sub=ff Prot=ff M...
Thomas BartosikThomas Bartosik
9412767a2e8USB: storage: Unusual USB device Prolific 2507 variation addedcommit 8a0845c51b2e300f5204a323b874f7f58ea0eff7 upstream. The "c-enter" USB to Toshiba 1.8" IDE enclosure needs special treatment to work flawlessly. This patch is absolutely trivial, as the integrated USB-IDE bridge is already identified to be an "unusual" device, only the bcdDevice is different (lower) to the bcdDeviceMin already included in the kernel. It is a Prolific 2507 bridge. T: Bus...ATAPI-6
Robert M. KenneyRobert M. Kenney
d423b3a40e8USB: serial: new cp2101 device idcommit c6535668798b0644e1af5934c2aec0e912280449 upstream. From: Robert M. Kenney <rmk@unh.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Michael HennerichMichael Hennerich
64e638e9661USB: serial: ftdi: enable UART detection on gnICE JTAG adaptors blacklist interface0commit b0d659002168146ec6b03d1ef062d8dcf05ff510 upstream. Signed-off-by: Michael Hennerich <michael.hennerich@analog.com> Signed-off-by: Bryan Wu <cooloney@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Axel WachtlerAxel Wachtler
c9641d3c6e3USB: serial: add FTDI USB/Serial converter devicescommit 7f82b6dd7015aabca2fd55fb690248f742cd67f3 upstream. Add the following devices to the USB FTDI SIO device table: Bus 001 Device 009: ID 03eb:2109 Atmel Corp. http://www.atmel.com/dyn/products/tools_card.asp?tool_id=4187 Bus 001 Device 008: ID 1cf1:0001 http://www.dresden-elektronik.de/shop/prod75.html Bus 001 Device 007: ID 1c1f:0004 http://www.dresden-elektronik.de/shop/prod64.h...
Dan WilliamsDan Williams
706417f3492USB: Option: let cdc-acm handle Sony Ericsson F3507g / Dell 5530commit 0cc6bfe901b946df125d8e37186d8e45f876457d upstream. The generic cdc-acm driver is now the best one to handle Sony Ericsson F3507g-based devices (which the Dell 5530 is a rebrand of), now that all the pieces are in place (ie, cac477e8f1038c41b6f29d3161ce351462ef3df7). Removing the IDs from option allows cdc-acm to handle the device. Signed-off-by: Dan Williams <dcbw@redhat.com> Signed-of...
Achilleas KotsisAchilleas Kotsis
e78b5fa6131USB: Add device id for Option GTM380 to option drivercommit e7f2f0d77a7b483a26054f29ba8393831b25a8a4 upstream. Option GTM380 in Modem mode uses Product ID 0x7201. This has been tested and works on production systems for over 6 months. Signed-off-by: Achilleas Kotsis <akots@exponent.gr> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Albert PauwAlbert Pauw
3d33fbacfb8USB: option.c: add ZTE 622 modem devicecommit 9ea19b82f3126da4e47d6b94563a3c2cd586f6e2 upstream. Please consider this small patch for the usb option-card driver. This patch adds the ZTE 622 usb modem device. Signed-off-by: Albert Pauw <albert.pauw@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Dirk HohndelDirk Hohndel
e4023ee7bb7USB: Add Vendor/Product ID for new CDMA U727 to option drivercommit 56a21827439a4d715b510bfaf488534e6f4ad2f8 upstream. * newer versions of the Novatel Wireless U727 CDMA 3G USB stick have a different Product ID (0x5010); adding this ID makes them work just fine with the option driver Signed-off-by: Dirk Hohndel <hohndel@infradead.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Karsten WieseKarsten Wiese
853998f496eUSB: EHCI: Fix isochronous URB leakcommit 508db8c954d55ed30f870d2c24d741ba6269d13c upstream. ehci-hcd uses usb_get_urb() and usb_put_urb() in an unbalanced way causing isochronous URB's kref.counts incrementing once per usb_submit_urb() call. The culprit is *usb being set to NULL when usb_put_urb() is called after URB is given back. Due to other fixes there is no need for ehci-hcd to deal with usb_get_urb() nor usb_put_urb() an...
Alan SternAlan Stern
b7f46712bb0USB: EHCI: expedite unlinks when the root hub is suspendedcommit 391016f6e2fe3b9979b4c6880a76e5e434d6947c upstream. This patch (as1225) fixes a bug in ehci-hcd. The condition for whether unlinked QHs can become IDLE should not be that the controller is halted, but rather that the controller isn't running. In other words when the root hub is suspended, the hardware doesn't own any QHs. This fixes a problem that can show up during hibernation: If a ...
Johns DanielJohns Daniel
d2bdb99d223powerpc: Remove extra semicolon in fsl_soc.cTSEC/MDIO will not work with older device trees because of a semicolon at the end of a macro resulting in an empty for loop body. This fix only applies to 2.6.28; this code is gone in 2.6.29, according to Grant Likely! Signed-off-by: Johns Daniel <johns.daniel@gmail.com> Acked-by: Grant Likely <grant.likely@secretlab.ca> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Joe KortyJoe Korty
55ec5cadc31Fix misreporting of #cores as #hyperthreads for Q9550Fix misreporting of #cores for the Intel Quad Core Q9550. For the Q9550, in x86_64 mode, /proc/cpuinfo mistakenly reports the #cores present as the #hyperthreads present. i386 mode was not examined but is assumed to have the same problem. A backport of the following three 2.6.29-rc1 patches fixes the problem: 066941bd4eeb159307a5d7d795100d0887c00442: [PATCH] x86: unmask CPUID levels on ...
Andy WallsAndy Walls
32145abccaeV4L/DVB (10218): cx23885: Fix Oops for mixed install of analog and digital only cardscommit cd8f894eacf13996d920fdd2aef1afc55156b191 upstream. Analog support for HVR-1250 has not been completed, but does exist for the HVR-1800. Since both cards use the same driver, it tries to create the analog dev for both devices, which is not possible. This causes a NULL error to show up in video_open and mpeg_open. -Mark Iterations through the cx23885_devlist must check for NULL pointe...2 Jira Issues
Mathieu Chouquet-StringerMathieu Chouquet-Stringer
bbb9a852a98thinkpad-acpi: fix module autoloading for older modelscommit b36a50f92d1c4300a88f606b4d2bbdc4f442a2d7 upstream. Looking at the source, there seems to be a missing * to match my DMI string. I mean for newer IBM and Lenovo's laptops you match either one of the following: MODULE_ALIAS("dmi:bvnIBM:*:svnIBM:*:pvrThinkPad*:rvnIBM:*"); MODULE_ALIAS("dmi:bvnLENOVO:*:svnLENOVO:*:pvrThinkPad*:rvnLENOVO:*"); While for older Thinkpads, you do this (for ins...
Martin SchwidefskyMartin Schwidefsky
00d64e04909S390: __div64_31 broken for CONFIG_MARCH_G5commit 4fa81ed27781a12f6303b9263056635ae74e3e21 upstream. The implementation of __div64_31 for G5 machines is broken. The comments in __div64_31 are correct, only the code does not do what the comments say. The part "If the remainder has overflown subtract base and increase the quotient" is only partially realized, the base is subtracted correctly but the quotient is only increased if the divi...
Davide LibenziDavide Libenzi
07d3c798afceventfd: remove fput() call from possible IRQ contextcommit 87c3a86e1c220121d0ced59d1a71e78ed9abc6dd upstream. Remove a source of fput() call from inside IRQ context. Myself, like Eric, wasn't able to reproduce an fput() call from IRQ context, but Jeff said he was able to, with the attached test program. Independently from this, the bug is conceptually there, so we might be better off fixing it. This patch adds an optimization similar to the ...
Mikulas PatockaMikulas Patocka
49838e7c80cdm io: respect BIO_MAX_PAGES limitcommit d659e6cc98766a1a61d6bdd283f95d149abd7719 upstream. dm-io calls bio_get_nr_vecs to get the maximum number of pages to use for a given device. It allocates one additional bio_vec to use internally but failed to respect BIO_MAX_PAGES, so fix this. This was the likely cause of: https://bugzilla.redhat.com/show_bug.cgi?id=173153 Signed-off-by: Mikulas Patocka <mpatocka@redhat.com> Signe...
Milan BrozMilan Broz
e6e775fcaefdm ioctl: validate name length when renamingcommit bc0fd67feba2e0770aad85393500ba77c6489f1c upstream. When renaming a mapped device validate the length of the new name. The rename ioctl accepted any correctly-terminated string enclosed within the data passed from userspace. The other ioctls enforce a size limit of DM_NAME_LEN. If the name is changed and becomes longer than that, the device can no longer be addressed by name. Fix it ...
Huang YingHuang Ying
e2c0fa5344ddm crypt: fix kcryptd_async_done parametercommit b2174eebd1fadb76454dad09a1dacbc17081e6b0 upstream. In the async encryption-complete function (kcryptd_async_done), the crypto_async_request passed in may be different from the one passed to crypto_ablkcipher_encrypt/decrypt. Only crypto_async_request->data is guaranteed to be same as the one passed in. The current kcryptd_async_done uses the passed-in crypto_async_request directly whi...
Tejun HeoTejun Heo
8b0249b6978ata_piix: add workaround for Samsung DB-P70commit e9c1670c2a14ef9cc20d86b24b829f3947aad34e upstream. Samsung DB-P70 somehow botched the first ICH9 SATA port. The board doesn't expose the first port but somehow SStatus reports link online while failing SRST protocol leading to repeated probe failures and thus long boot delay. Because the BIOS doesn't carry any identifying DMI information, the port can't be blacklisted safely. Fortuna...
Jiri SlabyJiri Slaby
94dc1155bafALSA: pcm_oss, fix locking typocommit 91054598f794fb5d8a0b1e747ff8e2e8fc2115b3 upstream. s/mutex_lock/mutex_unlock/ on 2 fail paths in snd_pcm_oss_proc_write. Probably a typo, lock should be unlocked when leaving the function. Signed-off-by: Jiri Slaby <jirislaby@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Jiri SlabyJiri Slaby
3e5c20fcaa5ALSA: mixart, fix lock imbalancecommit 82f5d57163abed2e5ff271d03217b6f90c616eb8 upstream. There is an omitted unlock in one snd_mixart_hw_params fail path. Fix it. Signed-off-by: Jiri Slaby <jirislaby@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Takashi IwaiTakashi Iwai
baf3c1642adALSA: hda - Fix DMA mask for ATI controllerscommit 09240cf429505891d6123ce14a29f58f2a60121e upstream. ATI controllers (at least some SB0600 models) appear buggy to handle 64bit DMA. As a workaround, reset GCAP bit0 and let the driver to use only 32bit DMA on these controllers. Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Takashi IwaiTakashi Iwai
9f020d792a2ALSA: Fix vunmap and free order in snd_free_sgbuf_pages()commit 6af845e4eb36fb91b322aaf77ec1cab2220a48ad upstream. In snd_free_sgbuf_pags(), vunmap() is called after releasing the SG pages, and it causes errors on Xen as Xen manages the pages differently. Although no significant errors have been reported on the actual hardware, this order should be fixed other way round, first vunmap() then free pages. Cc: Jan Beulich <jbeulich@novell.com> Signed-...
Benny HalevyBenny Halevy
f79630367acNFSD: provide encode routine for OP_OPENATTRcommit 84f09f46b4ee9e4e9b6381f8af31817516d2091b upstream. Although this operation is unsupported by our implementation we still need to provide an encode routine for it to merely encode its (error) status back in the compound reply. Thanks for Bill Baker at sun.com for testing with the Sun OpenSolaris' client, finding, and reporting this bug at Connectathon 2009. This bug was introduced in 2...
J. Bruce FieldsJ. Bruce Fields
f2b10ab15c8nfsd: nfsd should drop CAP_MKNOD for non-rootcommit 76a67ec6fb79ff3570dcb5342142c16098299911 upstream. Since creating a device node is normally an operation requiring special privilege, Igor Zhbanov points out that it is surprising (to say the least) that a client can, for example, create a device node on a filesystem exported with root_squash. So, make sure CAP_MKNOD is among the capabilities dropped when an nfsd thread handles a reque...
Linus TorvaldsLinus Torvalds
ae2bc4d2561Move cc-option to below arch-specific setupcommit d0115552cdb0b4d4146975889fee2e9355515c4b upstream. Sam Ravnborg says: "We have several architectures that plays strange games with $(CC) and $(CROSS_COMPILE). So we need to postpone any use of $(call cc-option..) until we have included the arch specific Makefile so we try with the correct $(CC) version." Requested-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Linus Torva...
Linus TorvaldsLinus Torvalds
3752057d854Add '-fwrapv' to gcc CFLAGScommit 68df3755e383e6fecf2354a67b08f92f18536594 upstream. This makes sure that gcc doesn't try to optimize away wrapping arithmetic, which the kernel occasionally uses for overflow testing, ie things like if (ptr + offset < ptr) which technically is undefined for non-unsigned types. See http://bugzilla.kernel.org/show_bug.cgi?id=12597 for details. Not all versions of gcc support it, so ...
Tony LuckTony Luck
9ab86a875ebBuild fix for __early_pfn_to_nid() undefined link errorcommit 334f85b647bc46ff4d27ace55aa65f44d6a2f4db upstream. ia64 only defines __early_pfn_to_nid() for SPARSEMEM && NUMA configurations, so the recent: commit: f2dbcfa738368c8a40d4a5f0b65dc9879577cb21 mm: clean up for early_pfn_to_nid() ends up with some link problems for certain configuration files. Fix arch/ia64/Kconfig to only define HAVE_ARCH_EARLY_PFN_TO_NID in the cases where we do pr...
Cyrill GorcunovCyrill Gorcunov
0d9b88d97a9bc: fix permissions on /proc/bcThe reading of /proc/bc/* is permitted for those only who has CAP_DAC_OVERRIDE and CAP_DAC_READ_SEARCH attributes set. We should not point files as "group" or "other" readable/executable since they are not. Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Greg Kroah-HartmanGreg Kroah-Hartman
5af6a275ed4Linux 2.6.27.20
Jean DelvareJean Delvare
f14b7f8d566hwmon: (it87) Properly decode -128 degrees C temperaturecommit e267d25005c861fe6afda343f044536342c9f8b4 upstream The it87 driver is reporting -128 degrees C as +128 degrees C. That's not a terribly likely temperature value but let's still get it right, especially when it simplifies the code. Signed-off-by: Jean Delvare <khali@linux-fr.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Ralf BaechleRalf Baechle
187203ae140MIPS: compat: Implement is_compat_task.commit 4302e5d53b9166d45317e3ddf0a7a9dab3efd43b upstream. This is a build fix required after "x86-64: seccomp: fix 32/64 syscall hole" (commit 5b1017404aea6d2e552e991b3fd814d839e9cd67). MIPS doesn't have the issue that was fixed for x86-64 by that patch. This also doesn't solve the N32 issue which is that N32 seccomp processes will be treated as non-compat processes thus only have access to ...
Jan KaraJan Kara
5b9c305d22fext4: Fix deadlock in ext4_write_begin() and ext4_da_write_begin()(cherry picked from commit ebd3610b110bbb18ea6f9f2aeed1e1068c537227) Functions ext4_write_begin() and ext4_da_write_begin() call grab_cache_page_write_begin() without AOP_FLAG_NOFS. Thus it can happen that page reclaim is triggered in that function and it recurses back into the filesystem (or some other filesystem). But this can lead to various problems as a transaction is already started at t...