OpenVZ-legacy
  1. OpenVZ-legacy

linux-2.6.32-openvz

Public
AuthorCommitMessageCommit dateIssues
Pavel EmelyanovPavel Emelyanov
5fd638726a6OpenVZ kernel 2.6.32-budarin releasedNamed after Nikolai Mikhailovich Budarin - a Russian cosmonaut Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Pavel EmelyanovPavel Emelyanov
25ded1908b2MMerged linux-2.6.32.15Conflicts: Makefile Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Kinsbursky StanislavPavel EmelyanovKinsbursky Stanislav
7e99ed1bc34CPT: Replace legacy net statistics with netns onehttp://bugzilla.openvz.org/show_bug.cgi?id=1543 Signed-off-by: Stanislav Kinsbursky <skinsbursky@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Kinsbursky StanislavPavel EmelyanovKinsbursky Stanislav
ad21fa5e96fNET: register net sysfs kobject inside containerAdding of net kobject was supressed if network namespace is not "init_net". Check for "init_net" is removed. http://bugzilla.openvz.org/show_bug.cgi?id=1534 Signed-off-by: Stanislav Kinsbursky <skinsbursky@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Andrey VaginPavel EmelyanovAndrey Vagin
9783d9e288ecpt: fix refcounting of tty and pid on setting tty to processhttp://bugzilla.openvz.org/show_bug.cgi?id=1544 Signed-off-by: Andrey Vagin <avagin@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Pavel EmelyanovPavel Emelyanov
b2fecd288e7mm: Fix oops in do_wp_pagehttp://bugzilla.openvz.org/show_bug.cgi?id=1541 Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Greg Kroah-HartmanGreg Kroah-Hartman
c5f1e1aaadcLinux 2.6.32.15
Greg Kroah-HartmanGreg Kroah-Hartman
22c0d01812bRevert "modules: fix incorrect percpu usage"This reverts commit ea0a09acd81c6d52c77d80f0d4089795df7bcb58. It should not have been applied to the .32 kernel tree. Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Greg Kroah-HartmanGreg Kroah-Hartman
78a74485e7bRevert "lockdep: fix incorrect percpu usage"This reverts commit b6b3dcd55e2327a968833ff3f22eda3b8dd7ef9e. It should not have been applied to the .32 kernel tree Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Pavel EmelyanovPavel Emelyanov
e7399c239faOpenVZ kernel 2.6.32-belyayev releasedNamed after Pavel Ivanovich Belyayev - a Russian cosmonaut Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Kir KolyshkinPavel EmelyanovKir Kolyshkin
f11aece8614Fix/enlarge description of CONFIG_SYSFS_DEPRECATED_DYNCommit f40134386 adds this option, unfortunately the description has a high ratio of typos per word, plus it is incomplete. Fix both issues. Signed-off-by: Kir Kolyshkin <kir@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Cyrill GorcunovPavel EmelyanovCyrill Gorcunov
537027d8abbmm: SLUB -- implement show_slab_infoNote that we had to introduce cache_chain_lock spinlock, otherwise we could touch entity being removed. Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Cyrill GorcunovPavel EmelyanovCyrill Gorcunov
0eb474428f7mm: SLAB -- use static cache_chain/_lock initializersThere is no need to initialize cache_chain list and spinlock dynamically. Which save some cpu cycles on the kernel startup. Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Pavel EmelyanovPavel Emelyanov
9bab2719739MMerged linux-2.6.32.14Conflicts: Makefile fs/notify/inotify/inotify_fsnotify.c fs/notify/inotify/inotify_user.c fs/proc/array.c include/linux/sched.h Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Greg Kroah-HartmanGreg Kroah-Hartman
7b7a917a0d6Linux 2.6.32.14
Greg Kroah-HartmanGreg Kroah-Hartman
763f2ee657bRevert "parisc: Set PCI CLS early in boot."This reverts the following patch, which shouldn't have been applied to the .32 stable tree as it causes problems. commit 5fd4514bb351b5ecb0da3692fff70741e5ed200c upstream. Set the PCI CLS early in the boot process to prevent device failures. In pcibios_set_master use the new pci_cache_line_size instead of a hard-coded value. Signed-off-by: Carlos O'Donell <carlos@codesourcery.com>...
Herbert XuGreg Kroah-HartmanHerbert Xu
0ddd11675c9crypto: authenc - Add EINPROGRESS checkcommit 180ce7e81030e1ef763d58f97f9ab840ff57d848 upstream. When Steffen originally wrote the authenc async hash patch, he correctly had EINPROGRESS checks in place so that we did not invoke the original completion handler with it. Unfortuantely I told him to remove it before the patch was applied. As only MAY_BACKLOG request completion handlers are required to handle EINPROGRESS completions, ...
Luis R. RodriguezGreg Kroah-HartmanLuis R. Rodriguez
4ee20bc28f7Revert "ath9k: fix lockdep warning when unloading module" on stable kernelsJohannes' patch 34e8950 titled: mac80211: allow station add/remove to sleep changed the way mac80211 adds and removes peers. The new sta_add() / sta_remove() callbacks allowed the driver callbacks to sleep. Johannes also ported ath9k to use sta_add() / sta_remove() via the patch 4ca7786 titled: ath9k: convert to new station add/remove callbacks but this patch forgot to address a change in...
Ryusuke KonishiGreg Kroah-HartmanRyusuke Konishi
7823f8d6300nilfs2: fix sync silent failurecommit 973bec34bfc1bc2465646181653d67f767d418c8 upstream. As of 32a88aa1, __sync_filesystem() will return 0 if s_bdi is not set. And nilfs does not set s_bdi anywhere. I noticed this problem by the warning introduced by the recent commit 5129a469 ("Catch filesystem lacking s_bdi"). WARNING: at fs/super.c:959 vfs_kern_mount+0xc5/0x14e() Hardware name: PowerEdge 2850 Modules linked in: nilf...
Kees CookGreg Kroah-HartmanKees Cook
734c542a8aammap_min_addr check CAP_SYS_RAWIO only for writecommit 4ae69e6b718589abe97c9625ccbb1e0bc95a8c0e upstream. Redirecting directly to lsm, here's the patch discussed on lkml: http://lkml.org/lkml/2010/4/22/219 The mmap_min_addr value is useful information for an admin to see without being root ("is my system vulnerable to kernel NULL pointer attacks?") and its setting is trivially easy for an attacker to determine by calling mmap() in PAGE_SIZ...
Tomas HenzlGreg Kroah-HartmanTomas Henzl
9e79d5307f9megaraid_sas: fix for 32bit appscommit b3dc1a212e5167984616445990c76056034f8eeb upstream. It looks like this patch - commit 7b2519afa1abd1b9f63aa1e90879307842422dae Author: Yang, Bo <Bo.Yang@lsi.com> Date: Tue Oct 6 14:52:20 2009 -0600 [SCSI] megaraid_sas: fix 64 bit sense pointer truncation has caused a problem for 32bit programs with 64bit os - http://bugzilla.kernel.org/show_bug.cgi?id=15001 fix by converting t...
David HowellsGreg Kroah-HartmanDavid Howells
58e4a597dc9CacheFiles: Fix error handling in cachefiles_determine_cache_security()commit 7ac512aa8237c43331ffaf77a4fd8b8d684819ba upstream. cachefiles_determine_cache_security() is expected to return with a security override in place. However, if set_create_files_as() fails, we fail to do this. In this case, we should just reinstate the security override that was set by the caller. Furthermore, if set_create_files_as() fails, we should dispose of the new credentials we w...
Christian LamparterGreg Kroah-HartmanChristian Lamparter
7bb08a1cac8p54: disable channels with incomplete calibration data setscommit 93a59d7527147e3656664aa3179f8d19de256081 upstream. James Grossmann [1] reported that p54 spews out confusing messages instead of preventing the mayhem from happening. the reason is that "p54: generate channel list dynamically" is not perfect. It didn't discard incomplete channel data sets and therefore p54 advertised to support them as well. [1]: http://marc.info/?l=linux-wireless&m=1...
Wey-Yi GuyGreg Kroah-HartmanWey-Yi Guy
79ec1d305feiwlwifi: clear all the stop_queue flag after load firmwarecommit a9e10fb9b1c6ad16e73cf2656951fce3a817611e upstream. All the queues are awake and ready to use after loading firmware, for firmware reload case, if any queues was stopped before reload, mac80211 will wake those queues after restart hardware, so make sure all the flag used to keep track of the queue status are reset correctly. Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com> Signed-off-...
Robin HoltGreg Kroah-HartmanRobin Holt
92d664daf9drevert "procfs: provide stack information for threads" and its fixup commitscommit 34441427aab4bdb3069a4ffcda69a99357abcb2e upstream. Originally, commit d899bf7b ("procfs: provide stack information for threads") attempted to introduce a new feature for showing where the threadstack was located and how many pages are being utilized by the stack. Commit c44972f1 ("procfs: disable per-task stack usage on NOMMU") was applied to fix the NO_MMU case. Commit 89240ba0 ("x86...
KOSAKI MotohiroGreg Kroah-HartmanKOSAKI Motohiro
c8c4c2f04baproc: partially revert "procfs: provide stack information for threads"commit 1306d603fcf1f6682f8575d1ff23631a24184b21 upstream. Commit d899bf7b (procfs: provide stack information for threads) introduced to show stack information in /proc/{pid}/status. But it cause large performance regression. Unfortunately /proc/{pid}/status is used ps command too and ps is one of most important component. Because both to take mmap_sem and page table walk are heavily operati...
Vitaliy KulikovGreg Kroah-HartmanVitaliy Kulikov
2df40553416ALSA: hda - New Intel HDA controllercommit c602c8ad45d6ee6ad91fc544513cc96f70790983 upstream. Added a PCI controller id on new Dell laptops. Signed-off-by: Vitaliy Kulikov <Vitaliy.Kulikov@idt.com> Cc: AmenophisIII <AmenophisIII@gmx.at> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Dan RosenbergGreg Kroah-HartmanDan Rosenberg
cca8198578bBtrfs: check for read permission on src file in the clone ioctlcommit 5dc6416414fb3ec6e2825fd4d20c8bf1d7fe0395 upstream. The existing code would have allowed you to clone a file that was only open for writing Signed-off-by: Chris Mason <chris.mason@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Andreas HerrmannGreg Kroah-HartmanAndreas Herrmann
f46c7299a93x86, amd: Check X86_FEATURE_OSVW bit before accessing OSVW MSRscommit f01487119dda3d9f58c9729c7361ecc50a61c188 upstream. If host CPU is exposed to a guest the OSVW MSRs are not guaranteed to be present and a GP fault occurs. Thus checking the feature flag is essential. Signed-off-by: Andreas Herrmann <andreas.herrmann3@amd.com> LKML-Reference: <20100427101348.GC4489@alberich.amd.com> Signed-off-by: H. Peter Anvin <hpa@linux.intel.com> Signed-off-by: Greg...
Frank ArnoldGreg Kroah-HartmanFrank Arnold
798e99d3581x86, cacheinfo: Turn off L3 cache index disable feature in virtualized environmentscommit 7f284d3cc96e02468a42e045f77af11e5ff8b095 upstream. When running a quest kernel on xen we get: BUG: unable to handle kernel NULL pointer dereference at 0000000000000038 IP: [<ffffffff8142f2fb>] cpuid4_cache_lookup_regs+0x2ca/0x3df PGD 0 Oops: 0000 [#1] SMP last sysfs file: CPU 0 Modules linked in: Pid: 0, comm: swapper Tainted: G W 2.6.34-rc3 #1 /HVM domU RIP: 0010:[<ffffffff81...
Borislav PetkovGreg Kroah-HartmanBorislav Petkov
b53d27ff66ex86, k8: Fix build error when K8_NB is disabledcommit ade029e2aaacc8965a548b0b0f80c5bee97ffc68 upstream. K8_NB depends on PCI and when the last is disabled (allnoconfig) we fail at the final linking stage due to missing exported num_k8_northbridges. Add a header stub for that. Signed-off-by: Borislav Petkov <borislav.petkov@amd.com> LKML-Reference: <20100503183036.GJ26107@aftab> Signed-off-by: H. Peter Anvin <hpa@zytor.com> Signed-off-by:...
Hugh DickinsGreg Kroah-HartmanHugh Dickins
7ff4b9ccdacprofile: fix stats and data leakagecommit 16a2164bb03612efe79a76c73da6da44445b9287 upstream. If the kernel is large or the profiling step small, /proc/profile leaks data and readprofile shows silly stats, until readprofile -r has reset the buffer: clear the prof_buffer when it is vmalloc()ed. Signed-off-by: Hugh Dickins <hughd@google.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Greg Kroah-H...
Pavel EmelyanovGreg Kroah-HartmanPavel Emelyanov
d8ca15afb83inotify: don't leak user struct on inotify releasecommit b3b38d842fa367d862b83e7670af4e0fd6a80fc0 upstream. inotify_new_group() receives a get_uid-ed user_struct and saves the reference on group->inotify_data.user. The problem is that free_uid() is never called on it. Issue seem to be introduced by 63c882a0 (inotify: reimplement inotify using fsnotify) after 2.6.30. Signed-off-by: Pavel Emelyanov <xemul@openvz.org> Eric Paris <eparis@paris...
Eric ParisGreg Kroah-HartmanEric Paris
c606e701ef4inotify: race use after free/double free in inotify inode markscommit e08733446e72b983fed850fc5d8bd21b386feb29 upstream. There is a race in the inotify add/rm watch code. A task can find and remove a mark which doesn't have all of it's references. This can result in a use after free/double free situation. Task A Task B ------------ ----------- inotify_new_watch() allocate a mark (refcnt == 1) add it to the idr inotify_rm_watch() ino...
Daniel T ChenGreg Kroah-HartmanDaniel T Chen
bbd7e6ac769ALSA: hda: Fix 0 dB for Lenovo models using Conexant CX20549 (Venice)commit 0ebf9e3692d640917fb792a7494d05e1f5b1058f upstream. Reference: http://mailman.alsa-project.org/pipermail/alsa-devel/2010-May/027525.html As reported on the mailing list, we also need to cap to the 0 dB offset for Lenovo models, else the sound will be distorted. Reported-and-Tested-by: Tim Starling <tstarling@wikimedia.org> Signed-off-by: Daniel T Chen <crimsun@ubuntu.com> Signed-off-by...
Takashi IwaiGreg Kroah-HartmanTakashi Iwai
2a3097f24a0ALSA: ice1724 - Fix ESI Maya44 capture source controlcommit 8213466596bf10b75887754773ee13c10cf86f5c upstream. The capture source control of maya44 was wrongly coded with the bit shift instead of the bit mask. Also, the slot for line-in was wrongly assigned (slot 5 instead of 4). Reported-by: Alex Chernyshoff <alexdsp@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Valentin LongchampGreg Kroah-HartmanValentin Longchamp
5eb1c77df31serial: imx.c: fix CTS trigger level lower to avoid lost charscommit 1c5250d6163dac28be3afabdfb6c723f107051b7 upstream. The imx CTS trigger level is left at its reset value that is 32 chars. Since the RX FIFO has 32 entries, when CTS is raised, the FIFO already is full. However, some serial port devices first empty their TX FIFO before stopping when CTS is raised, resulting in lost chars. This patch sets the trigger level lower so that other chars arriv...
Jeff LaytonGreg Kroah-HartmanJeff Layton
cfbca0d1ae3cifs: guard against hardlinking directoriescommit 3d69438031b00c601c991ab447cafb7d5c3c59a6 upstream. When we made serverino the default, we trusted that the field sent by the server in the "uniqueid" field was actually unique. It turns out that it isn't reliably so. Samba, in particular, will just put the st_ino in the uniqueid field when unix extensions are enabled. When a share spans multiple filesystems, it's quite possible that th...
Paul MackerrasGreg Kroah-HartmanPaul Mackerras
73ef533de75powerpc/perf_event: Fix oops due to perf_event_do_pending callcommit 0fe1ac48bef018bed896307cd12f6ca9b5e704ab upstream. Anton Blanchard found that large POWER systems would occasionally crash in the exception exit path when profiling with perf_events. The symptom was that an interrupt would occur late in the exit path when the MSR[RI] (recoverable interrupt) bit was clear. Interrupts should be hard-disabled at this point but they were enabled. Because ...
Gerald SchaeferGreg Kroah-HartmanGerald Schaefer
fa157eec79eptrace: fix return value of do_syscall_trace_enter()commit 545c174d1f093a462b4bb9131b23d5ea72a600e1 upstream. strace may change the system call number, so regs->gprs[2] must not be read before tracehook_report_syscall_entry(). This fixes a bug where "strace -f" will hang after a vfork(). Signed-off-by: Gerald Schaefer <gerald.schaefer@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com> Signed-off-by: Greg Kroah-Hartman <greg...
Nicolas FerreGreg Kroah-HartmanNicolas Ferre
ee7a0b92fccmmc: atmel-mci: remove data error interrupt after xfercommit abc2c9fdf636c4335a8d72ac3c5ae152bca44b68 upstream. Disable data error interrupts while we are actually recording that there is not such errors. This will prevent, in some cases, the warning message printed at new request queuing (in atmci_start_request()). Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com> Cc: Haavard Skinnemoen <hskinnemoen@atmel.com> Cc: <linux-mmc@vger.kernel.o...
Nicolas FerreGreg Kroah-HartmanNicolas Ferre
eac2ef18972mmc: atmel-mci: prevent kernel oops while removing cardcommit 009a891b22395fc86e5f34057d79fffee4509ab5 upstream. The removing of an SD card in certain circumstances can lead to a kernel oops if we do not make sure that the "data" field of the host structure is valid. This patch adds a test in atmci_dma_cleanup() function and also calls atmci_stop_dma() before throwing away the reference to data. Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel....
Nicolas FerreGreg Kroah-HartmanNicolas Ferre
85e346fae9bmmc: atmel-mci: fix two parameters swappedcommit ebb1fea9b3adf25d7e2f643c614163af4f93a17f upstream. Two parameters were swapped in the calls to atmci_init_slot(). Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com> Reported-by: Anders Grahn <anders.grahn@hd-wireless.se> Cc: Haavard Skinnemoen <hskinnemoen@atmel.com> Cc: <linux-mmc@vger.kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torval...
Alex ChiangGreg Kroah-HartmanAlex Chiang
e053045d37aACPI: sleep: eliminate duplicate entries in acpisleep_dmi_table[]commit 7d6fb7bd1919517937ec390f6ca2d7bcf4f89fb6 upstream. Duplicate entries ended up acpisleep_dmi_table[] by accident. They don't hurt functionality, but they are ugly, so let's get rid of them. Signed-off-by: Alex Chiang <achiang@canonical.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
FUJITA TomonoriGreg Kroah-HartmanFUJITA Tomonori
c7c781e8307dma-mapping: fix dma_sync_single_range_*commit f33d7e2d2d113a63772bbc993cdec3b5327f0ef1 upstream. dma_sync_single_range_for_cpu() and dma_sync_single_range_for_device() use a wrong address with a partial synchronization. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <tor...
Mel GormanGreg Kroah-HartmanMel Gorman
38f2212686dhugetlbfs: kill applications that use MAP_NORESERVE with SIGBUS instead of OOM-killercommit 4a6018f7f4f1075c1a5403b5ec0ee7262187b86c upstream. Ordinarily, application using hugetlbfs will create mappings with reserves. For shared mappings, these pages are reserved before mmap() returns success and for private mappings, the caller process is guaranteed and a child process that cannot get the pages gets killed with sigbus. An application that uses MAP_NORESERVE gets no reserva...
Michael HennerichGreg Kroah-HartmanMichael Hennerich
ec9dd41fc73fbdev: bfin-t350mcqb-fb: fix fbmem allocation with blanking linescommit de145b44b95b9d3212a82d1c0f29b09778ef33c5 upstream. The current allocation does not include the memory required for blanking lines. So avoid memory corruption when multiple devices are using the DMA memory near each other. Signed-off-by: Michael Hennerich <michael.hennerich@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Andrew Morton <akpm@linux-foundation...
Oliver NeukumGreg Kroah-HartmanOliver Neukum
7b7be5f379bhp_accel: fix race in device removalcommit 06efbeb4a47b6f865e1c9d175ab9d6e90b69ae9e upstream. The work queue has to be flushed after the device has been made inaccessible. The patch closes a window during which a work queue might remain active after the device is removed and would then lead to ACPI calls with undefined behavior. Signed-off-by: Oliver Neukum <oneukum@suse.de> Acked-by: Eric Piel <eric.piel@tremplin-utc.net> Ack...
Bjørn MorkGreg Kroah-HartmanBjørn Mork
5f4213d39b4ipv4: udp: fix short packet and bad checksum loggingcommit ccc2d97cb7c798e785c9f198de243e2b59f7073b upstream. commit 2783ef23 moved the initialisation of saddr and daddr after pskb_may_pull() to avoid a potential data corruption. Unfortunately also placing it after the short packet and bad checksum error paths, where these variables are used for logging. The result is bogus output like [92238.389505] UDP: short packet: From 2.0.0.0:65535 237...
Pavel EmelyanovPavel Emelyanov
509eb1f29c4OpenVZ kernel 2.6.32-balandin releasedNamed after Aleksandr Nikolayevich Balandin - a Russian cosmonaut. Signed-off-by: Pavel Emelyanov <xemul@openvz.org>