Linux 2.6.25.18
Subsystems (17)
We (the -stable team) are announcing the release of the 2.6.25.18 kernel.
It contains lots of bugfixes, all over the map. Any users of the 2.6.25 kernel series should upgrade to this version. For details on the fixes, see the changelog entries and the diffstat below.
I'll also be replying to this message with a copy of the patch between 2.6.25.17 and 2.6.25.18
The updated 2.6.25.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.25.y.git
and can be browsed at the normal kernel.org git web browser:
http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.25.y.git;a=summarythanks,
greg k-h
------------
Makefile | 2 arch/x86/kernel/hpet.c | 19 ++++-- arch/x86/kernel/io_delay.c | 8 ++ arch/x86/kernel/vmi_32.c | 2 drivers/acpi/ec.c | 2 drivers/acpi/processor_perflib.c | 2 drivers/i2c/i2c-dev.c | 4 + drivers/mmc/card/block.c | 4 + drivers/net/niu.c | 56 ++++++++++++++++++ drivers/spi/pxa2xx_spi.c | 116 ++++++++++++++++++++++++++++++--------- drivers/usb/core/hcd.c | 3 - include/asm-generic/rtc.h | 12 +--- include/linux/clockchips.h | 2 include/net/netlink.h | 2 kernel/time/clockevents.c | 3 - kernel/time/ntp.c | 2 kernel/time/tick-broadcast.c | 78 +++++++++++++++++++------- kernel/time/tick-common.c | 1 kernel/time/tick-internal.h | 2 kernel/time/tick-oneshot.c | 44 ++++++++++++-- net/ipv4/udp.c | 57 +++++++++++-------- net/ipv6/ip6_output.c | 64 ++++++++++----------- net/ipv6/udp.c | 6 +- net/sctp/associola.c | 9 +-- net/sctp/sm_make_chunk.c | 15 +++-- 25 files changed, 371 insertions(+), 144 deletions(-)
Andrew Morton (1):
drivers/mmc/card/block.c: fix refcount leak in mmc_block_open()
Chuck Ebbert (1):
x86: add io delay quirk for Presario F700
Geoff Levand (1):
USB: fix hcd interrupt disabling
Greg Kroah-Hartman (1):
Linux 2.6.25.18
Herbert Xu (1):
udp: Fix rcv socket locking
Ingo Molnar (1):
rtc: fix deadlock
Maciej W. Rozycki (1):
ntp: fix calculation of the next jiffie to trigger RTC sync
Mike Rapoport (1):
pxa2xx_spi: fix build breakage
Milan Broz (1):
ACPI: Fix thermal shutdowns
Ned Forrester (2):
pxa2xx_spi: dma bugfixes
pxa2xx_spi: chipselect bugfixes
Neil Horman (1):
ipv6: Fix OOPS in ip6_dst_lookup_tail().
Santwona Behera (1):
niu: panic on reset
Sven Wegener (1):
i2c-dev: Return correct error code on class_create() failure
Thomas Gleixner (9):
clockevents: prevent endless loop in periodic broadcast handler
clockevents: enforce reprogram in oneshot setup
clockevents: prevent multiple init/shutdown
clockevents: prevent endless loop lockup
HPET: make minimum reprogramming delta useful
clockevents: broadcast fixup possible waiters
x86: HPET fix moronic 32/64bit thinko
x86: HPET: read back compare register before reading counter
clockevents: remove WARN_ON which was used to gather information
Vegard Nossum (1):
netlink: fix overrun in attribute iteration
Venkatesh Pallipadi (1):
clockevents: prevent clockevent event_handler ending up handler_noop
Vlad Yasevich (2):
sctp: do not enable peer features if we can't do them.
sctp: Fix oops when INIT-ACK indicates that peer doesn't support AUTH
Zachary Amsden (1):
x86: Fix broken LDT access in VMI
Zhao Yakui (1):
ACPI: Avoid bogus EC timeout when EC is in Polling mode
Makefile +1 -1
@@ -1,7 +1,7 @@ VERSION = 2 PATCHLEVEL = 6 SUBLEVEL = 25 -EXTRAVERSION = .17 +EXTRAVERSION = .18 NAME = Funky Weasel is Jiggy wit it # *DOCUMENTATION*
arch/x86/kernel/hpet.c +13 -6
@@ -222,8 +222,8 @@ static void hpet_legacy_clockevent_register(void)/* Calculate the min / max delta */ hpet_clockevent.max_delta_ns =clockevent_delta2ns (0x7FFFFFFF , &hpet_clockevent); - hpet_clockevent.min_delta_ns =clockevent_delta2ns (0x30 , - &hpet_clockevent); +/* 5 usec minimum reprogramming delta. */ + hpet_clockevent.min_delta_ns =5000 ;/* * Start hpet with the boot cpu mask and make it
@@ -282,15 +282,22 @@ static void hpet_legacy_set_mode(enum clock_event_mode mode, }static int hpet_legacy_next_event (unsigned long delta, -struct clock_event_device *evt) +struct clock_event_device *evt) { -unsigned long cnt; +u32 cnt; cnt =hpet_readl (HPET_COUNTER ); - cnt += delta; + cnt += (u32 ) delta;hpet_writel (cnt,HPET_T0_CMP ); -return ((long )(hpet_readl (HPET_COUNTER ) - cnt ) >0 ) ? -ETIME :0 ; +/* +* We need to read back the CMP register to make sure that +* what we wrote hit the chip before we compare it to the +* counter. +*/ +WARN_ON ((u32 )hpet_readl (HPET_T0_CMP ) != cnt); + +return (s32)((u32 )hpet_readl (HPET_COUNTER ) - cnt) >=0 ? -ETIME :0 ; }/*
arch/x86/kernel/io_delay.c +8 -0
@@ -92,6 +92,14 @@ static struct dmi_system_id __initdata io_delay_0xed_port_dmi_table[] = { DMI_MATCH(DMI_BOARD_NAME, "30BF") } }, + { + .callback = dmi_io_delay_0xed_port, + .ident = "Presario F700", + .matches = { +DMI_MATCH (DMI_BOARD_VENDOR ,"Quanta" ), + DMI_MATCH(DMI_BOARD_NAME, "30D3") + } + }, { } };
arch/x86/kernel/vmi_32.c +1 -1
@@ -234,7 +234,7 @@ static void vmi_write_ldt_entry(struct desc_struct *dt, int entry, const void *desc) {u32 *ldt_entry = (u32 *)desc; - vmi_ops.write_idt_entry (dt, entry, ldt_entry[0 ], ldt_entry[1 ]); + vmi_ops.write_ldt_entry (dt, entry, ldt_entry[0 ], ldt_entry[1 ]); } static void vmi_load_sp0(struct tss_struct *tss,
drivers/acpi/ec.c +2 -0
@@ -228,6 +228,8 @@ static int acpi_ec_wait(struct acpi_ec *ec, enum ec_event event, int force_poll)if (acpi_ec_check_status (ec, event)) goto end; } +if (acpi_ec_check_status (ec,event)) +return 0 ; } pr_err(PREFIX "acpi_ec_wait timeout," " status = %d, expect_event = %d\n",
drivers/acpi/processor_perflib.c +1 -1
@@ -70,7 +70,7 @@ static DEFINE_MUTEX(performance_mutex);* 0 -> cpufreq low level drivers initialized -> consider _PPC values * 1 -> ignore _PPC totally -> forced by user through boot param */ -static unsigned int ignore_ppc =-1 ; +static int ignore_ppc =-1 ;module_param (ignore_ppc, uint,0644 );MODULE_PARM_DESC (ignore_ppc,"If the frequency of your machine gets wrongly" \"limited by BIOS, this should help" );
drivers/i2c/i2c-dev.c +3 -1
@@ -574,8 +574,10 @@ static int __init i2c_dev_init(void) goto out; i2c_dev_class =class_create (THIS_MODULE ,"i2c-dev" ); -if (IS_ERR (i2c_dev_class)) +if (IS_ERR (i2c_dev_class)) { + res =PTR_ERR (i2c_dev_class); goto out_unreg_chrdev; + } res =i2c_add_driver (&i2cdev_driver);if (res)
drivers/mmc/card/block.c +3 -1
@@ -103,8 +103,10 @@ static int mmc_blk_open(struct inode *inode, struct file *filp)check_disk_change (inode->i_bdev); ret =0 ; -if ((filp->f_mode &FMODE_WRITE ) && md->read_only) +if ((filp->f_mode &FMODE_WRITE ) && md->read_only) { +mmc_blk_put (md); ret = -EROFS ; + } }return ret;
drivers/net/niu.c +56 -0
68 lines not on this page · raw message
drivers/spi/pxa2xx_spi.c +91 -25
180 lines not on this page · raw message
drivers/usb/core/hcd.c +2 -1
@@ -1877,7 +1877,8 @@ int usb_add_hcd(struct usb_hcd *hcd,* with IRQF_SHARED. As usb_hcd_irq() will always disable * interrupts we can remove it here. */ - irqflags &= ~IRQF_DISABLED ; +if (irqflags &IRQF_SHARED ) + irqflags &= ~IRQF_DISABLED ;snprintf (hcd->irq_descr,sizeof (hcd->irq_descr),"%s:usb%d" , hcd->driver->description, hcd->self.busnum);
include/asm-generic/rtc.h +4 -8
@@ -17,6 +17,7 @@#include <linux/mc146818rtc.h> #include <linux/rtc.h> #include <linux/bcd.h> +#include <linux/delay.h> #define RTC_PIE 0x40/* periodic interrupt enable */ #define RTC_AIE 0x20/* alarm interrupt enable */
@@ -45,7 +46,6 @@ static inline unsigned char rtc_is_updating(void)static inline unsigned int get_rtc_time (struct rtc_time *time) { -unsigned long uip_watchdog = jiffies;unsigned char ctrl;unsigned long flags;
@@ -55,19 +55,15 @@ static inline unsigned int get_rtc_time(struct rtc_time *time)/* * read RTC once any update in progress is done. The update -* can take just over 2ms. We wait 10 to 20ms. There is no need to +* can take just over 2ms. We wait 20ms. There is no need to * to poll-wait (up to 1s - eeccch) for the falling edge of RTC_UIP. * If you need to know *exactly* when a second has started, enable * periodic update complete interrupts, (via ioctl) and then * immediately read /dev/rtc which will block until you get the IRQ. * Once the read clears, read the RTC time (again via ioctl). Easy. */ - -if (rtc_is_updating () !=0 ) -while (jiffies - uip_watchdog <2 *HZ /100 ) { -barrier (); -cpu_relax (); - } +if (rtc_is_updating ()) +mdelay (20 );/* * Only the values that we read from the RTC are set. We leave
include/linux/clockchips.h +2 -0
@@ -127,6 +127,8 @@ extern int clockevents_register_notifier(struct notifier_block *nb);extern int clockevents_program_event (struct clock_event_device *dev,ktime_t expires,ktime_t now); +extern void clockevents_handle_noop (struct clock_event_device *dev); +#ifdef CONFIG_GENERIC_CLOCKEVENTS extern void clockevents_notify (unsigned long reason,void *arg);#else
include/net/netlink.h +1 -1
@@ -704,7 +704,7 @@ static inline int nla_len(const struct nlattr *nla)*/ static inline int nla_ok (const struct nlattr *nla,int remaining) { -return remaining >=sizeof (*nla) && +return remaining >= (int )sizeof (*nla) && nla->nla_len >=sizeof (*nla) && nla->nla_len <= remaining; }
kernel/time/clockevents.c +1 -2
@@ -177,7 +177,7 @@ void clockevents_register_device(struct clock_event_device *dev)/* * Noop handler when we shut down an event device */ -static void clockevents_handle_noop (struct clock_event_device *dev) +void clockevents_handle_noop (struct clock_event_device *dev) { }
@@ -199,7 +199,6 @@ void clockevents_exchange_device(struct clock_event_device *old,* released list and do a notify add later. */ if (old) { - old->event_handler = clockevents_handle_noop;clockevents_set_mode (old,CLOCK_EVT_MODE_UNUSED );list_del (&old->list);list_add (&old->list, &clockevents_released);
kernel/time/ntp.c +1 -1
@@ -205,7 +205,7 @@ static void sync_cmos_clock(unsigned long dummy)if (abs (now.tv_nsec - (NSEC_PER_SEC /2 )) <= tick_nsec /2 ) fail =update_persistent_clock (now); - next.tv_nsec = (NSEC_PER_SEC /2 ) - now.tv_nsec; + next.tv_nsec = (NSEC_PER_SEC /2 ) - now.tv_nsec - (TICK_NSEC /2 );if (next.tv_nsec <=0 ) next.tv_nsec +=NSEC_PER_SEC ;
kernel/time/tick-broadcast.c +58 -20
126 lines not on this page · raw message
kernel/time/tick-common.c +1 -0
@@ -159,6 +159,7 @@ static void tick_setup_device(struct tick_device *td, }else { handler = td->evtdev->event_handler; next_event = td->evtdev->next_event; + td->evtdev->event_handler = clockevents_handle_noop; } td->evtdev = newdev;
kernel/time/tick-internal.h +2 -0
@@ -17,6 +17,8 @@ extern void tick_handle_periodic(struct clock_event_device *dev);extern void tick_setup_oneshot (struct clock_event_device *newdev,void (*handler)(struct clock_event_device *),ktime_t nextevt); +extern int tick_dev_program_event (struct clock_event_device *dev, +ktime_t expires,int force);extern int tick_program_event (ktime_t expires,int force);extern void tick_oneshot_notify (void );extern int tick_switch_to_oneshot (void (*handler)(struct clock_event_device *));
kernel/time/tick-oneshot.c +38 -6
69 lines not on this page · raw message
net/ipv4/udp.c +33 -24
88 lines not on this page · raw message
net/ipv6/ip6_output.c +32 -32
71 lines not on this page · raw message
net/ipv6/udp.c +3 -3
@@ -373,7 +373,7 @@ static int __udp6_lib_mcast_deliver(struct sk_buff *skb, struct in6_addr *saddr, uh->source, saddr, dif))) {struct sk_buff *buff =skb_clone (skb,GFP_ATOMIC );if (buff) { -bh_lock_sock_nested (sk2); +bh_lock_sock (sk2);if (!sock_owned_by_user (sk2))udpv6_queue_rcv_skb (sk2, buff);else
@@ -381,7 +381,7 @@ static int __udp6_lib_mcast_deliver(struct sk_buff *skb, struct in6_addr *saddr,bh_unlock_sock (sk2); } } -bh_lock_sock_nested (sk); +bh_lock_sock (sk);if (!sock_owned_by_user (sk))udpv6_queue_rcv_skb (sk, skb);else
@@ -499,7 +499,7 @@ int __udp6_lib_rcv(struct sk_buff *skb, struct hlist_head udptable[],/* deliver */ -bh_lock_sock_nested (sk); +bh_lock_sock (sk);if (!sock_owned_by_user (sk))udpv6_queue_rcv_skb (sk, skb);else
net/sctp/associola.c +5 -4
@@ -588,11 +588,12 @@ struct sctp_transport *sctp_assoc_add_peer(struct sctp_association *asoc,/* Check to see if this is a duplicate. */ peer =sctp_assoc_lookup_paddr (asoc, addr);if (peer) { +/* An UNKNOWN state is only set on transports added by +* user in sctp_connectx() call. Such transports should be +* considered CONFIRMED per RFC 4960, Section 5.4. +*/ if (peer->state ==SCTP_UNKNOWN ) { -if (peer_state ==SCTP_ACTIVE ) - peer->state =SCTP_ACTIVE ; -if (peer_state ==SCTP_UNCONFIRMED ) - peer->state =SCTP_UNCONFIRMED ; + peer->state =SCTP_ACTIVE ; }return peer; }
net/sctp/sm_make_chunk.c +9 -6
@@ -1886,11 +1886,13 @@ static void sctp_process_ext_param(struct sctp_association *asoc,/* if the peer reports AUTH, assume that he * supports AUTH. */ - asoc->peer.auth_capable =1 ; +if (sctp_auth_enable) + asoc->peer.auth_capable =1 ;break ;case SCTP_CID_ASCONF :case SCTP_CID_ASCONF_ACK : - asoc->peer.asconf_capable =1 ; +if (sctp_addip_enable) + asoc->peer.asconf_capable =1 ;break ;default :break ;
@@ -2319,12 +2321,10 @@ clean_up:/* Release the transport structures. */ list_for_each_safe (pos, temp, &asoc->peer.transport_addr_list) { transport = list_entry(pos, struct sctp_transport, transports); -list_del_init (pos); -sctp_transport_free (transport); +if (transport->state !=SCTP_ACTIVE ) +sctp_assoc_rm_peer (asoc, transport); } - asoc->peer.transport_count =0 ; - nomem:return 0 ; }
@@ -2454,6 +2454,9 @@ static int sctp_process_param(struct sctp_association *asoc,break ;case SCTP_PARAM_SET_PRIMARY : +if (!sctp_addip_enable) + goto fall_through; + addr_param = param.v +sizeof (sctp_addip_param_t); af =sctp_get_af_specific (param_type2af (param.p->type));