Linux 2.6.15.1
Subsystems (9)
We (the -stable team) are announcing the release of the 2.6.15.1 kernel.
The diffstat and short summary of the fixes are below.
I'll also be replying to this message with a copy of the patch between 2.6.15 and 2.6.15.1, as it is small enough to do so.
The updated 2.6.15.y git tree can be found at:
rsync://rsync.kernel.org/pub/scm/linux/kernel/git/chrisw/linux-2.6.15.y.git
and can be browsed at the normal kernel.org git web browser:
www.kernel.org/git/
thanks,
-chris
--------
Makefile | 2 arch/ppc/boot/simple/Makefile | 2 arch/sparc64/Kconfig | 2 arch/sparc64/kernel/entry.S | 7 -- arch/sparc64/kernel/systbls.S | 2 drivers/char/moxa.c | 2 drivers/net/skge.c | 80 +++++++++++++++++++------------- drivers/video/aty/atyfb_base.c | 2 drivers/video/console/vgacon.c | 8 ++- fs/ufs/super.c | 4 + kernel/workqueue.c | 16 ++++-- net/bridge/br_stp_if.c | 2 net/bridge/netfilter/ebt_ip.c | 3 + net/core/net-sysfs.c | 28 +++++++---- net/ipv4/netfilter/ip_nat_helper_pptp.c | 59 +++++++++++------------ net/netlink/af_netlink.c | 4 - 16 files changed, 131 insertions(+), 92 deletions(-)
Summary of changes from v2.6.15 to v2.6.15.1
==============================================
Adrian Bunk:
arch/sparc64/Kconfig: fix HUGETLB_PAGE_SIZE_64K dependencies
Alan Cox:
moxa serial: add proper capability check
Andrey Borzenkov:
fix /sys/class/net/<if>/wireless without dev->get_wireless_stats
Bart De Schuymer:
Don't match tcp/udp source/destination port for IP fragments
Chris Wright:
Linux 2.6.15.1
David S. Miller:
Fix sys_fstat64() entry in 64-bit syscall table.
Evgeniy Polyakov:
UFS: inode->i_sem is not released in error path
Kirill Korotaev:
netlink oops fix due to incorrect error code
Luis F. Ortiz:
Fix onboard video on SPARC Blade 100 for 2.6.{13,14,15}Martin Murray:
Fix DoS in netlink_rcv_skb() (CVE-2006-0035)
Nathan Lynch:
fix workqueue oops during cpu offline
Patrick McHardy:
Fix crash in ip_nat_pptp (CVE-2006-0036)
Fix another crash in ip_nat_pptp (CVE-2006-0037)Peter Korsgaard:
ppc32: Re-add embed_config.c to ml300/ep405
Richard Mortimer:
Fix ptrace/strace
Samuel Thibault:
vgacon: fix doublescan mode
Stephen Hemminger:
BRIDGE: Fix faulty check in br_stp_recalculate_bridge_id()
skge: handle out of memory on ring changes
Makefile +1 -1
@@ -1,7 +1,7 @@ VERSION = 2 PATCHLEVEL = 6 SUBLEVEL = 15 -EXTRAVERSION = +EXTRAVERSION = .1 NAME=Sliding Snow Leopard # *DOCUMENTATION*
arch/ppc/boot/simple/Makefile +2 -0
@@ -190,6 +190,8 @@ boot-$(CONFIG_REDWOOD_5) += embed_config boot-$(CONFIG_REDWOOD_6) += embed_config.o boot-$(CONFIG_8xx) += embed_config.o boot-$(CONFIG_8260) += embed_config.o +boot-$(CONFIG_EP405) += embed_config.o +boot-$(CONFIG_XILINX_ML300) += embed_config.o boot-$(CONFIG_BSEIP) += iic.o boot-$(CONFIG_MBX) += iic.o pci.o qspan_pci.o boot-$(CONFIG_MV64X60) += misc-mv64x60.o
arch/sparc64/Kconfig +1 -1
@@ -179,7 +179,7 @@ config HUGETLB_PAGE_SIZE_512K bool "512K" config HUGETLB_PAGE_SIZE_64K - depends on !SPARC64_PAGE_SIZE_4MB && !SPARC64_PAGE_SIZE_512K + depends on !SPARC64_PAGE_SIZE_4MB && !SPARC64_PAGE_SIZE_512KB bool "64K" endchoice
arch/sparc64/kernel/entry.S +2 -5
@@ -1657,13 +1657,10 @@ ret_sys_call: /* Check if force_successful_syscall_return() * was invoked. */ - ldub [%curptr + TI_SYS_NOERROR], %l0 - brz,pt %l0, 1f - nop - ba,pt %xcc, 80f + ldub [%curptr + TI_SYS_NOERROR], %l2 + brnz,a,pn %l2, 80f stb %g0, [%curptr + TI_SYS_NOERROR] -1: cmp %o0, -ERESTART_RESTARTBLOCK bgeu,pn %xcc, 1f andcc %l0, (_TIF_SYSCALL_TRACE|_TIF_SECCOMP|_TIF_SYSCALL_AUDIT), %l6
arch/sparc64/kernel/systbls.S +1 -1
@@ -98,7 +98,7 @@ sys_call_table: .word sys_umount, sys_setgid, sys_getgid, sys_signal, sys_geteuid /*50*/ .word sys_getegid, sys_acct, sys_memory_ordering, sys_nis_syscall, sys_ioctl .word sys_reboot, sys_nis_syscall, sys_symlink, sys_readlink, sys_execve -/*60*/ .word sys_umask, sys_chroot, sys_newfstat, sys_stat64, sys_getpagesize +/*60*/ .word sys_umask, sys_chroot, sys_newfstat, sys_fstat64, sys_getpagesize .word sys_msync, sys_vfork, sys_pread64, sys_pwrite64, sys_nis_syscall /*70*/ .word sys_nis_syscall, sys_mmap, sys_nis_syscall, sys64_munmap, sys_mprotect .word sys_madvise, sys_vhangup, sys_nis_syscall, sys_mincore, sys_getgroups
drivers/char/moxa.c +2 -0
@@ -1661,6 +1661,8 @@ int MoxaDriverIoctl(unsigned int cmd, uncase MOXA_FIND_BOARD :case MOXA_LOAD_C320B :case MOXA_LOAD_CODE : +if (!capable (CAP_SYS_RAWIO )) +return -EPERM ;break ; }
drivers/net/skge.c +48 -32
181 lines not on this page · raw message
drivers/video/aty/atyfb_base.c +1 -1
@@ -403,7 +403,7 @@ static struct { { PCI_CHIP_MACH64GM, "3D RAGE XL (Mach64 GM, AGP)", 230, 83, 63, ATI_CHIP_264XL }, { PCI_CHIP_MACH64GN, "3D RAGE XL (Mach64 GN, AGP)", 230, 83, 63, ATI_CHIP_264XL }, { PCI_CHIP_MACH64GO, "3D RAGE XL (Mach64 GO, PCI-66/BGA)", 230, 83, 63, ATI_CHIP_264XL }, - { PCI_CHIP_MACH64GR, "3D RAGE XL (Mach64 GR, PCI-33MHz)", 230, 83, 63, ATI_CHIP_264XL }, + { PCI_CHIP_MACH64GR, "3D RAGE XL (Mach64 GR, PCI-33MHz)", 235, 83, 63, ATI_CHIP_264XL | M64F_SDRAM_MAGIC_PLL }, { PCI_CHIP_MACH64GL, "3D RAGE XL (Mach64 GL, PCI)", 230, 83, 63, ATI_CHIP_264XL }, { PCI_CHIP_MACH64GS, "3D RAGE XL (Mach64 GS, PCI)", 230, 83, 63, ATI_CHIP_264XL },
drivers/video/console/vgacon.c +7 -1
@@ -503,10 +503,16 @@ static int vgacon_doresize(struct vc_dat {unsigned long flags;unsigned int scanlines = height * c->vc_font.height; -u8 scanlines_lo, r7, vsync_end, mode; +u8 scanlines_lo, r7, vsync_end, mode, max_scan;spin_lock_irqsave (&vga_lock, flags); +outb_p (VGA_CRTC_MAX_SCAN , vga_video_port_reg); + max_scan =inb_p (vga_video_port_val); + +if (max_scan &0x80 ) + scanlines <<=1 ; +outb_p (VGA_CRTC_MODE , vga_video_port_reg); mode =inb_p (vga_video_port_val);
fs/ufs/super.c +3 -1
@@ -1296,8 +1296,10 @@ static ssize_t ufs_quota_write(struct su blk++; } out: -if (len == towrite) +if (len == towrite) { +up (&inode->i_sem);return err; + }if (inode->i_size < off+len-towrite)i_size_write (inode, off+len-towrite); inode->i_version++;
kernel/workqueue.c +10 -6
@@ -29,7 +29,8 @@#include <linux/kthread.h> /* -* The per-CPU workqueue (if single thread, we always use cpu 0's). +* The per-CPU workqueue (if single thread, we always use the first +* possible cpu). * * The sequence counters are for flush_scheduled_work(). It wants to wait * until until all currently-scheduled works are completed, but it doesn't
@@ -69,6 +70,8 @@ struct workqueue_struct {static DEFINE_SPINLOCK (workqueue_lock);static LIST_HEAD (workqueues); +static int singlethread_cpu; +/* If it's single threaded, it isn't in the list of workqueues. */ static inline int is_single_threaded (struct workqueue_struct *wq) {
@@ -102,7 +105,7 @@ int fastcall queue_work(struct workqueueif (!test_and_set_bit (0 , &work->pending)) {if (unlikely (is_single_threaded (wq))) - cpu =any_online_cpu (cpu_online_map); + cpu = singlethread_cpu;BUG_ON (!list_empty (&work->entry));__queue_work (per_cpu_ptr (wq->cpu_wq, cpu), work); ret =1 ;
@@ -118,7 +121,7 @@ static void delayed_work_timer_fn(unsignint cpu =smp_processor_id ();if (unlikely (is_single_threaded (wq))) - cpu =any_online_cpu (cpu_online_map); + cpu = singlethread_cpu;__queue_work (per_cpu_ptr (wq->cpu_wq, cpu), work); }
@@ -267,7 +270,7 @@ void fastcall flush_workqueue(struct worif (is_single_threaded (wq)) {/* Always use first cpu's area. */ -flush_cpu_workqueue (per_cpu_ptr (wq->cpu_wq,any_online_cpu (cpu_online_map))); +flush_cpu_workqueue (per_cpu_ptr (wq->cpu_wq, singlethread_cpu)); }else {int cpu;
@@ -320,7 +323,7 @@ struct workqueue_struct *__create_workqulock_cpu_hotplug ();if (singlethread) {INIT_LIST_HEAD (&wq->list); - p =create_workqueue_thread (wq,any_online_cpu (cpu_online_map)); + p =create_workqueue_thread (wq, singlethread_cpu);if (!p) destroy =1 ;else
@@ -374,7 +377,7 @@ void destroy_workqueue(struct workqueue_/* We don't need the distraction of CPUs appearing and vanishing. */ lock_cpu_hotplug ();if (is_single_threaded (wq)) -cleanup_workqueue_thread (wq,any_online_cpu (cpu_online_map)); +cleanup_workqueue_thread (wq, singlethread_cpu);else {for_each_online_cpu (cpu)cleanup_workqueue_thread (wq, cpu);
@@ -543,6 +546,7 @@ static int __devinit workqueue_cpu_callbvoid init_workqueues (void ) { + singlethread_cpu =first_cpu (cpu_possible_map);hotcpu_notifier (workqueue_cpu_callback,0 ); keventd_wq =create_workqueue ("events" );BUG_ON (!keventd_wq);
net/bridge/br_stp_if.c +1 -1
@@ -158,7 +158,7 @@ void br_stp_recalculate_bridge_id(structlist_for_each_entry (p, &br->port_list, list) {if (addr == br_mac_zero || -compare_ether_addr (p->dev->dev_addr, addr) <0 ) +memcmp (p->dev->dev_addr, addr,ETH_ALEN ) <0 ) addr = p->dev->dev_addr; }
net/bridge/netfilter/ebt_ip.c +3 -0
@@ -15,6 +15,7 @@#include <linux/netfilter_bridge/ebtables.h> #include <linux/netfilter_bridge/ebt_ip.h> #include <linux/ip.h> +#include <net/ip.h> #include <linux/in.h> #include <linux/module.h>
@@ -51,6 +52,8 @@ static int ebt_filter_ip(const struct skif (!(info->bitmask &EBT_IP_DPORT ) && !(info->bitmask &EBT_IP_SPORT ))return EBT_MATCH ; +if (ntohs (ih->frag_off) &IP_OFFSET ) +return EBT_NOMATCH ; pptr =skb_header_pointer (skb, ih->ihl*4 ,sizeof (_ports), &_ports);if (pptr ==NULL )
net/core/net-sysfs.c +19 -9
@@ -16,6 +16,7 @@#include <net/sock.h> #include <linux/rtnetlink.h> #include <linux/wireless.h> +#include <net/iw_handler.h> #define to_class_dev (obj) container_of(obj,struct class_device,kobj)#define to_net_dev (class) container_of(class, struct net_device, class_dev)
@@ -313,13 +314,19 @@ static ssize_t wireless_show(struct clas char *)) {struct net_device *dev =to_net_dev (cd); -const struct iw_statistics *iw; +const struct iw_statistics *iw =NULL ;ssize_t ret = -EINVAL ;read_lock (&dev_base_lock); -if (dev_isalive (dev) && dev->get_wireless_stats - && (iw = dev->get_wireless_stats (dev)) !=NULL ) - ret = (*format)(iw, buf); +if (dev_isalive (dev)) { +if (dev->wireless_handlers && + dev->wireless_handlers->get_wireless_stats) + iw = dev->wireless_handlers->get_wireless_stats (dev); +else if (dev->get_wireless_stats) + iw = dev->get_wireless_stats (dev); +if (iw !=NULL ) + ret = (*format)(iw, buf); + }read_unlock (&dev_base_lock);return ret;
@@ -420,7 +427,8 @@ void netdev_unregister_sysfs(struct net_sysfs_remove_group (&class_dev->kobj, &netstat_group);#ifdef WIRELESS_EXT -if (net->get_wireless_stats) +if (net->get_wireless_stats || (net->wireless_handlers && + net->wireless_handlers->get_wireless_stats))sysfs_remove_group (&class_dev->kobj, &wireless_group);#endif class_device_del (class_dev);
@@ -453,10 +461,12 @@ int netdev_register_sysfs(struct net_dev goto out_unreg;#ifdef WIRELESS_EXT -if (net->get_wireless_stats && - (ret =sysfs_create_group (&class_dev->kobj, &wireless_group))) - goto out_cleanup; - +if (net->get_wireless_stats || (net->wireless_handlers && + net->wireless_handlers->get_wireless_stats)) { + ret =sysfs_create_group (&class_dev->kobj, &wireless_group); +if (ret) + goto out_cleanup; + }return 0 ; out_cleanup:if (net->get_stats)
net/ipv4/netfilter/ip_nat_helper_pptp.c +28 -31
125 lines not on this page · raw message
net/netlink/af_netlink.c +2 -2
@@ -402,7 +402,7 @@ static int netlink_create(struct socket groups = nl_table[protocol].groups;netlink_unlock_table (); -if ((err =__netlink_create (sock, protocol) <0 )) +if ((err =__netlink_create (sock, protocol)) <0 ) goto out_module; nlk =nlk_sk (sock->sk);
@@ -1422,7 +1422,7 @@ static int netlink_rcv_skb(struct sk_bufwhile (skb->len >=nlmsg_total_size (0 )) { nlh = (struct nlmsghdr *) skb->data; -if (skb->len < nlh->nlmsg_len) +if (nlh->nlmsg_len <NLMSG_HDRLEN || skb->len < nlh->nlmsg_len)return 0 ; total_len =min (NLMSG_ALIGN (nlh->nlmsg_len), skb->len);
Quoted 6 lines · Chris Wright
We (the -stable team) are announcing the release of the 2.6.15.1 kernel.
The diffstat and short summary of the fixes are below.
I'll also be replying to this message with a copy of the patch between 2.6.15 and 2.6.15.1, as it is small enough to do so.
Hey.
Was there a fix for the 2.6.16 cfq issues? It's a bad idea for me to use AS on servers as it does weird things on the hardware we have (as I've previously reported).
Signature · 3 lines
"To the extent that we overreact, we proffer the terrorists the
greatest tribute."
- High Court Judge Michael KirbyQuoted 3 lines · * CaT ([email protected]) wrote:
Was there a fix for the 2.6.16 cfq issues? It's a bad idea for me to use AS on servers as it does weird things on the hardware we have (as I've previously reported).
There's one relevant fix queued up for next -stable from this thread:
http://marc.theaimsgroup.com/?t=113657885100003&r=1&w=2
Is that what you're referring to?
thanks,
-chris
Quoted 7 lines · Chris Wright
Quoted 3 lines · * CaT ([email protected]) wrote:
Was there a fix for the 2.6.16 cfq issues? It's a bad idea for me to use AS on servers as it does weird things on the hardware we have (as I've previously reported).
There's one relevant fix queued up for next -stable from this thread:
Cool.
Quoted 3 lines
http://marc.theaimsgroup.com/?t=113657885100003&r=1&w=2
Is that what you're referring to?
Yup, thanks. That's the bug I was referring to.
Signature · 3 lines
"To the extent that we overreact, we proffer the terrorists the
greatest tribute."
- High Court Judge Michael Kirby