OpenVZ-legacy
  1. OpenVZ-legacy

linux-2.6.20-openvz

Public
AuthorCommitMessageCommit dateIssues
OpenVZ teamPavelOpenVZ team
d597d705f20linux-2.6.20-ovz007 released
Pavel EmelianovPavel Emelianov
9e114710b7c[NET] Compilation fixes in ipv6 after 2.6.20.12 merge
Pavel EmelianovPavel Emelianov
85134c1598eRemoved trash after resolving conflicts
OpenVZ teamPavel EmelianovOpenVZ team
39b96cefdb3MMerge 2.6.20.12 /linux/kernel/git/stable/linux-2.6.20.y
OpenVZ teamPavelOpenVZ team
9c49279c5d9linux-2.6.20-ovz006 released
Pavel EmelianovPavel Emelianov
cd9ad98e6c9Make x86_64 aware of lib/msr-on-cpu
Pavel EmelianovPavel Emelianov
ab7ea93101bMove (rd|wr)msr_on_cpu to arch/386/lib/ like in ms alreadyThis hels i386 to compile.
Vasily TarasovPavel EmelianovVasily Tarasov
ccb6ae73da7[BC] ioprio: account for requests in driverPreviously we didn't take into account beancounter's requests that are already in driver. Now we consider beancounter as empty (no requests in it) only if there are no requests in CFQ _and_ in driver. This patch improves fairness dramatically and fixes bug #81508
Vasily TarasovPavel EmelianovVasily Tarasov
549653879b8[BC] ioprio: BC slice scaling fixNow slice is CFQ BC timeslice is scaled from X to 2*X ms.
Vasily TarasovPavel EmelianovVasily Tarasov
01a86474cc6[BC] ioprio: range of ioprios were checked incorrectlyFix ioprio range check: ioprio range is 0..7
Pavel EmelianovPavel Emelianov
b29ae563d7c[SCHED] cleanup: removed unused variablestruct rq *rq was used before fairsched patch to compare tasks with rq->idle. With fairsched idle task is bound to pcpu, not vcpu and thus struct rq *rq is simply not needed.
Alexandr AndreevPavel EmelianovAlexandr Andreev
a572b2713d4[SCHED] Select some vcpu instead of idle even if all vcpus are hot We have to use oldest vcpu if all vcpu's are hot. In current kernel an idle_vcpu is used and CPU can idle instead of doing some job.Bug #79676
Alexey KuznetsovPavel EmelianovAlexey Kuznetsov
dd76a77f032[CPT] restore rcv queue on netlink sockets and unbound netlink socketsCode restoring queues was forgotten. This fixes bug #79723. Unbound sockets were restored incorrectly, they were outbound to some post, which prevented subsequent bind by application. This fixes bug #79724. The patch overrides previous patch with subj: "[CPT] restore rcv queue on netlink sockets", which fixed only bug #79723.
Andrey MirkinPavel EmelianovAndrey Mirkin
ec603b673a0[CPT] retry checkpointing if VE has active netlink callbackReturn -EAGAIN instead of -EBUSY if netlink socket has active callback. In this case we will try to freeze VE 3 times. From 2.6.18-rh5
Alexey KuznetsovPavel EmelianovAlexey Kuznetsov
a8a5b5a97e1[CPT] thread groups with exited leader did not migrateThe bug is simple and stupid, it is very strange nobody saw this. When thread group leader exits, its mm/files/fs/namespace are released but zombie process remain frozen until all the threads exit. Restore was not able to restore such configuration. Solution is simple: when chackpointing save not real (NULL) mm/files/fs/namespace, but mm/files/fs/namespace of this thread group.
Konstantin KhorenkoPavel EmelianovKonstantin Khorenko
78c59128a18[VZDQ] prohibit chown of a file if owner doesn't have ugid structProhibit chown a file if its owner does not have ugid record. This might happen if we somehow exceeded the UID/GID (e.g. set ugidlimit less than number of users). Bug #79553
Pavel EmelianovPavel Emelianov
0cff11b2ae7[NETLINK] VE netlink message should go into VE logWhen parsing netlink arguments kernel may printk that some bytes left unparsed. Make this info appear in VE log, instead of global one.
Vasily AverinPavel EmelianovVasily Averin
06b3d3c12d9[TUN] prohibit tun persistent mode inside VEprohibit tun persistent mode inside VE, until resolved via ve hooks. Bug #79612
Konstantin KhorenkoPavel EmelianovKonstantin Khorenko
bb07d74cdf5[MEMINFO] sysctl for selecting UsedMem sourceAdds sysctl to choose base ubc parameter for memory usage inside a VE. Sets PRIVVMPAGES beancounter to be used by default instead of OOMGUARPAGES. Bug #78088
Vasily TarasovPavel EmelianovVasily Tarasov
6ca10829e87[IOPRIO] forced dispatching when CONFIG_UBC_IO_PRIO offIf CONFIG_UBC_IO_PRIO is off, then no beancounters are in active list, consequently we have a bug in forced dispatching case. http://bugzilla.openvz.org/show_bug.cgi?id=528
Vasily TarasovPavel EmelianovVasily Tarasov
838585b4809[IOPRIO] Oops on IO-prioritization disablingIf io-prioritization is suddenly turned off via /sys/block/<dev>/queue/iosched/virt_mode cfqq owner BC does not equal current io context. It is right to get beancounter obtained from queue, but not from current IO context.
Pavel EmelianovPavel Emelianov
63dde2d38a1[BC] Leak of privvmpages on zero page mapsThis was obviously forgotten. Each mmap of /dev/zero causes this leak. Bug #80246
Sergey VlasovPavel EmelianovSergey Vlasov
b0e1cd77701[NETLINK] Fix for Alexey's netlink lookup recursion fixWhen CONFIG_IP_MULTIPLE_TABLES is enabled, the code in nl_fib_lookup() needs to initialize the res.r field before fib_res_put(&res) - unlike fib_lookup(), a direct call to ->tb_lookup does not set this field.
Alexey KuznetsovPavel EmelianovAlexey Kuznetsov
f8559bb55f5[PATCH] stack overflow in netlink (mainstream) !!! Exploitable from VE !!! Reply to NETLINK_FIB_LOOKUP messages were misrouted back to kernel, which resulted in infinite recursion and stack overflow. The bug is present in all kernel versions since the feature appeared. (linux 2.6.13, Jun 20th, 2005, commit 246955fe4c38bd706ae30e37c64892c94213775d, [NETLINK]: fib_lookup() via netlink) The patch also makes some minimal cleanup: 1. R...
Alexey KuznetsovPavel EmelianovAlexey Kuznetsov
82feedbcb16[PATCH] Invalid return value of execve() resulting in oopses (mainstream)When elf loader fails to map executable (due to memory shortage or because binary is malformed), it can return 0. Normally, this is invisible because process is killed with SIGKILL and it never returns to user space. But if exec() is called from kernel thread (hotplug, whatever) consequences are more interesting and vary depending on architecture. i386. Nothing especially interesting, execve(...
Alexey DobriyanPavel EmelianovAlexey Dobriyan
c92ef5e3e03[PATCH] Make speedstep centrino cpufreq driver use wr/rdmsr_on_cpu()speedstep-centrino cpufreq driver was using set_cpus_allowed() and checks for smp_processor_id() to confine itself to given CPU. In presence of VCPU freature this doesn't work. Switch to rdmsr_on_cpu/wrmsr_on_cpu() infrastructure. Closes http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=420708
Thorsten SchifferdeckerPavel EmelianovThorsten Schifferdecker
80c1fb5fcae[CPT] tux is missing on vanilla kernelsTaken from 2.6.18 kernel: Compilation bug was introduced by http://git.openvz.org/?p=linux-2.6.18-openvz;a=commitdiff;h=f90c2c318467829ecde43919ad38f326527f533b fixes http://bugzilla.openvz.org/show_bug.cgi?id=545
Pavel EmelianovPavel Emelianov
fbf0847a5ce[CPT] Compiltaion fixes for check_utrace()This call is about to be in after utrace is merged, but right now we don't have one. Compile it out. http://bugzilla.openvz.org/show_bug.cgi?id=549
Alexandr AndreevPavel EmelianovAlexandr Andreev
fd40d9010ec[SYSRQ] show correct sysrq help message. Patch for 2.6.18 and 2.6.20(#81612)
Kir KolyshkinPavel EmelianovKir Kolyshkin
5565fd11b2a[BC] fix make oldconfig for sparc64 archThis is a hunk that was forgotten in commit ab1011203e9e5a72bc741496052fe46123933712 and done wrong in commit d37f2e1187f6587bd76719612a15b4b2b68e1e87. It fixes the following issue: scripts/kconfig/conf -o arch/sparc64/Kconfig arch/sparc64/Kconfig:460: can't open file "kernel/ub/Kconfig"
Alexandr AndreevPavel EmelianovAlexandr Andreev
87c38f33824[NMI] Set correct default watchdog type in case of CONFIG_NMI_WATCHDOG=yOne of previous patches was a little bit incorrect. It declared NMI_DEFAULT as NMI_IO_APIC in case of CONFIG_NMI_WATCHDOG=y. But NMI_DEFAULT type has special meaning and it mustn't be mixed with any other types or we'll get wrong driver logic - in our case we initialazed wdog as NMI_IO_APIC, and switched it's type to NMI_LOCAL_APIC in check_nmi_watchdog(). (#78179)
Alexandr AndreevPavel EmelianovAlexandr Andreev
b19c16bb429[UBC] replace CONFIG_USER_RESOURCE by CONFIG_BEANCOUNTERShttp://bugzilla.openvz.org/show_bug.cgi?id=562
Alexandr AndreevPavel EmelianovAlexandr Andreev
fb9775e938fGet correct udplite_statisticsThe old output was global stats.
Alexandr AndreevPavel EmelianovAlexandr Andreev
cd6e8fc1033[UBC] compile with CONFIG_BEANCOUNTERS=n
Pavel EmelianovPavel Emelianov
345fb05ee24[VZDQ] Don't call sleeping operations under inode_lockThe calltrace vzdq_aquotq_lookup iget5_locked() get_new_inode() `- spin_lock(&inode_lock); find_inode() ->set() /* == vzdq_aquotq_lookset */ vdq_aquot_lookset() user_get_super() `- down_read(...) is bad as it may sleep with inode_lock taken. Move all the sleeping operations out of this lock. (#79124)
Vasily TarasovPavel EmelianovVasily Tarasov
1873d6d2f81[PATCH] ubiprio: various compilation fixes
Chris WrightChris Wright
fcfbb42bd47Linux 2.6.20.12
Jordan CrouseChris WrightJordan Crouse
f66e4a9471d[PATCH] GEODE-AES: Allow in-place operations [CVE-2007-2451]Allow in-place crypto operations. Also remove the coherent user flag (we use it automagically now), and by default use the user written key rather then the HW hidden key - this makes crypto just work without any special considerations, and thats OK, since its our only usage model. Signed-off-by: Jordan Crouse <jordan.crouse@amd.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Sign...CVE-2007
Greg Kroah-HartmanGreg Kroah-Hartman
6b99a1744abLinux 2.6.20.11
Bartlomiej ZolnierkiewiczGreg Kroah-HartmanBartlomiej Zolnierkiewicz
481576e9872Revert "adjust legacy IDE resource setting (v2)"Revert "adjust legacy IDE resource setting (v2)" This reverts commit ed8ccee0918ad063a4741c0656fda783e02df627. It causes hang on boot for some users and we don't yet know why: http://bugzilla.kernel.org/show_bug.cgi?id=7562 http://lkml.org/lkml/2007/4/20/404 http://lkml.org/lkml/2007/3/25/113 Just reverse it for 2.6.21-final, having broken X server is somehow better than unbootable system....
Jens AxboeGreg Kroah-HartmanJens Axboe
3720eda544ecfq-iosched: fix alias + front merge bugThere's a really rare and obscure bug in CFQ, that causes a crash in cfq_dispatch_insert() due to rq == NULL. One example of that is seen here: http://lkml.org/lkml/2007/4/15/41 Neil correctly diagnosed the situation for how this can happen, read that analysis here: http://lkml.org/lkml/2007/4/25/57 This looks like it requires md to trigger, even though it should potentially be possible to ...
Wang ZhenyuGreg Kroah-HartmanWang Zhenyu
ab02a65798eAGPGART: intel_agp: fix G965 GTT size detect[AGPGART] intel_agp: fix G965 GTT size detect On G965, I810_PGETBL_CTL is a mmio offset, but we wrongly take it as pci config space offset in detecting GTT size. This one line patch fixs this. Signed-off-by: Wang Zhenyu <zhenyu.z.wang@intel.com> Signed-off-by: Dave Jones <davej@redhat.com> Cc: Chuck Ebbert <cebbert@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Tommi KyntolaGreg Kroah-HartmanTommi Kyntola
27797cc764bALSA: intel8x0 - Fix speaker output after S2RAM[ALSA] intel8x0 - Fix speaker output after S2RAM Fixed the mute speaker problem after S2RAM on some laptops: http://bugme.osdl.org/show_bug.cgi?id=6181 Signed-off-by: Tommi Kyntola <tommi.kyntola@ray.fi> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@suse.cz> Cc: Chuck Ebbert <cebbert@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Jean DelvareGreg Kroah-HartmanJean Delvare
87b814c9a7ehwmon/w83627ehf: Fix the fan5 clock divider writeUsers have been complaining about the w83627ehf driver flooding their logs with debug messages like: w83627ehf 9191-0a10: Increasing fan 4 clock divider from 64 to 128 or: w83627ehf 9191-0290: Increasing fan 4 clock divider from 4 to 8 The reason is that we failed to actually write the LSB of the encoded clock divider value for that fan, causing the next read to report the same old value ag...
Jeff MahoneyGreg Kroah-HartmanJeff Mahoney
1b3bac165e2reiserfs: fix xattr root locking/refcount bugThe listxattr() and getxattr() operations are only protected by a read lock. As a result, if either of these operations run in parallel, a race condition exists where the xattr_root will end up being cached twice, which results in the leaking of a reference and a BUG() on umount. This patch refactors get_xa_root(), __get_xa_root(), and create_xa_root(), into one get_xa_root() function that ta...
Balbir SinghGreg Kroah-HartmanBalbir Singh
2b2c594d5faTaskstats fix the structure members alignment issueWe broke the the alignment of members of taskstats to the 8 byte boundary with the CSA patches. In the current kernel, the taskstats structure is not suitable for use by 32 bit applications in a 64 bit kernel. On x86_64 Offsets of taskstats' members (64 bit kernel, 64 bit application) @taskstats'offsetof[@taskstats'indices] = ( 0, # version 4, # ac_exitcode ...
Christoph LameterGreg Kroah-HartmanChristoph Lameter
637fc7e479apage migration: fix NR_FILE_PAGES accountingNR_FILE_PAGES must be accounted for depending on the zone that the page belongs to. If we replace the page in the radix tree then we may have to shift the count to another zone. Suggested-by: Ethan Solomita <solo@google.com> Cc: Martin Bligh <mbligh@mbligh.org> Signed-off-by: Christoph Lameter <clameter@sgi.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Greg Kroa...
Taku IzumiGreg Kroah-HartmanTaku Izumi
aad6bcca0b1Fix possible NULL pointer access in 8250 serial driverI encountered the following kernel panic. The cause of this problem was NULL pointer access in check_modem_status() in 8250.c. I confirmed this problem is fixed by the attached patch, but I don't know this is the correct fix. sadc[4378]: NaT consumption 2216203124768 [1] Modules linked in: binfmt_misc dm_mirror dm_mod thermal processor fan container button sg e100 eepro100 mii ehci_hcd ohci_...
Hugh DickinsGreg Kroah-HartmanHugh Dickins
8505260d098fix OOM killing processes wrongly thought MPOL_BINDI only have CONFIG_NUMA=y for build testing: surprised when trying a memhog to see lots of other processes killed with "No available memory (MPOL_BIND)". memhog is killed correctly once we initialize nodemask in constrained_alloc(). Signed-off-by: Hugh Dickins <hugh@veritas.com> Acked-by: Christoph Lameter <clameter@sgi.com> Acked-by: William Irwin <bill.irwin@oracle.com> Acked-by: KAMEZAWA H...
Benjamin HerrenschmidtGreg Kroah-HartmanBenjamin Herrenschmidt
b438299c937fix bogon in /dev/mem mmap'ing on nommuWhile digging through my MAP_FIXED changes, I found that rather obvious bug in /dev/mem mmap implementation for nommu archs. get_unmapped_area() is expected to return an address, not a pfn. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Acked-By: David Howells <dhowells@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gre...