Linux 2.6.17.14
Subsystems (12)
We (the -stable team) are announcing the release of the 2.6.17.14 kernel.
Unless something major comes up, this is the last release of the 2.6.17 kernel branch.
I'll also be replying to this message with a copy of the patch between 2.6.17.13 and 2.6.17.14, as it is small enough to do so.
The updated 2.6.17.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.17.y.git
and can be browsed at the normal kernel.org git web browser:
www.kernel.org/git/
thanks,
greg k-h
--------
Makefile | 2 - arch/sparc64/kernel/time.c | 2 - arch/sparc64/mm/init.c | 3 -- drivers/ide/ide-iops.c | 4 ++ drivers/input/mouse/logips2pp.c | 3 -- drivers/media/dvb/dvb-core/dvb_net.c | 3 +- drivers/media/dvb/frontends/cx24123.c | 4 +- drivers/media/video/msp3400-driver.c | 2 + drivers/media/video/msp3400-driver.h | 1 drivers/media/video/msp3400-kthreads.c | 7 ++-- drivers/mmc/mmc_block.c | 49 ++------------------------------- drivers/net/pcmcia/xirc2ps_cs.c | 18 +++++++++--- drivers/pci/quirks.c | 1 drivers/scsi/ahci.c | 6 ++++ fs/ext3/inode.c | 2 - fs/lockd/svcsubs.c | 15 ++++++---- fs/nfs/file.c | 8 ++++- fs/nfs/nfs4proc.c | 10 +++--- fs/sysfs/file.c | 5 --- include/linux/nfs_fs.h | 6 +++- include/linux/sunrpc/xprt.h | 2 - net/sched/cls_basic.c | 2 - 22 files changed, 73 insertions(+), 82 deletions(-)
Summary of changes from v2.6.17.13 to v2.6.17.14
================================================
Ang Way Chuang:
dvb-core: Proper handling ULE SNDU length of 0 (CVE-2006-4623)
Badari Pulavarty:
ext3 sequential read regression fix
Chuck Lever:
SUNRPC: avoid choosing an IPMI port for RPC traffic
David Miller:
PKT_SCHED: cls_basic: Use unsigned int when generating handle
David S. Miller:
SPARC64: Fix serious bug in sched_clock() on sparc64 Fix sparc64 ramdisk handling
Greg Kroah-Hartman:
Linux 2.6.17.14
Hans Verkuil:
V4L: Fix msp343xG handling regression
Hidetoshi Seto:
sysfs: remove duplicated dput in sysfs_update_file
Joerg Ahrens:
xirc2ps_cs: Cannot reset card in atomic context
Linus Torvalds:
Add PIIX4 APCI quirk for the 440MX chipset too
Michael-Luke Jones:
Backport: Old IDE, fix SATA detection for cabling
Nikita Danilov:
NFS: Fix a potential deadlock in nfs_release_page
Pierre Ossman:
MMC: Always use a sector size of 512 bytes
Roberto Castagnola:
Input: logips2pp - fix button mapping for MX300
Tejun Heo:
ahci: do not fail softreset if PHY reports no device
Trond Myklebust:
LOCKD: Fix a deadlock in nlm_traverse_files()
NFS: More page cache revalidation fixups
Yeasah Pell:
DVB: cx24123: fix PLL divisor setup
Makefile +1 -1
@@ -1,7 +1,7 @@ VERSION = 2 PATCHLEVEL = 6 SUBLEVEL = 17 -EXTRAVERSION = .13 +EXTRAVERSION = .14 NAME=Crazed Snow-Weasel # *DOCUMENTATION*
arch/sparc64/kernel/time.c +1 -1
@@ -1105,7 +1105,7 @@ static struct time_interpolator sparc64_ };/* The quotient formula is taken from the IA64 port. */ -#define SPARC64_NSEC_PER_CYC_SHIFT 30UL +#define SPARC64_NSEC_PER_CYC_SHIFT 10ULvoid __init time_init (void ) {unsigned long clock =sparc64_init_timers ();
arch/sparc64/mm/init.c +1 -2
@@ -902,8 +902,7 @@ #ifdef CONFIG_BLK_DEV_INITRDif (sparc_ramdisk_image || sparc_ramdisk_image64) {unsigned long ramdisk_image = sparc_ramdisk_image ? sparc_ramdisk_image : sparc_ramdisk_image64; -if (ramdisk_image >= (unsigned long )_end -2 *PAGE_SIZE ) - ramdisk_image -=KERNBASE ; + ramdisk_image -=KERNBASE ; initrd_start = ramdisk_image + phys_base; initrd_end = initrd_start + sparc_ramdisk_size;if (initrd_end > end_of_phys_memory) {
drivers/ide/ide-iops.c +4 -0
@@ -597,6 +597,10 @@ u8 eighty_ninty_three (ide_drive_t *driv {if (HWIF (drive)->udma_four ==0 )return 0 ; + +/* Check for SATA but only if we are ATA5 or higher */ +if (drive->id->hw_config ==0 && (drive->id->major_rev_num &0x7FE0 )) +return 1 ;if (!(drive->id->hw_config &0x6000 ))return 0 ;#ifndef CONFIG_IDEDMA_IVB
drivers/input/mouse/logips2pp.c +1 -2
@@ -238,8 +238,7 @@ static struct ps2pp_info *get_model_info {100 ,PS2PP_KIND_MX ,/* MX510 */ PS2PP_WHEEL |PS2PP_SIDE_BTN |PS2PP_TASK_BTN | PS2PP_EXTRA_BTN | PS2PP_NAV_BTN }, - { 111, PS2PP_KIND_MX, /* MX300 */ - PS2PP_WHEEL | PS2PP_EXTRA_BTN | PS2PP_TASK_BTN }, + { 111, PS2PP_KIND_MX, PS2PP_WHEEL | PS2PP_SIDE_BTN }, /* MX300 reports task button as side */ { 112, PS2PP_KIND_MX, /* MX500 */PS2PP_WHEEL |PS2PP_SIDE_BTN |PS2PP_TASK_BTN | PS2PP_EXTRA_BTN | PS2PP_NAV_BTN },
drivers/media/dvb/dvb-core/dvb_net.c +2 -1
@@ -492,7 +492,8 @@ #endif }else priv->ule_dbit =0 ; -if (priv->ule_sndu_len >32763 ) { +if (priv->ule_sndu_len >32763 || + priv->ule_sndu_len < ((priv->ule_dbit) ?4 :4 +ETH_ALEN )) {printk (KERN_WARNING "%lu: Invalid ULE SNDU length %u. " "Resyncing.\n" , priv->ts_count, priv->ule_sndu_len); priv->ule_sndu_len =0 ;
drivers/media/dvb/frontends/cx24123.c +2 -2
@@ -579,8 +579,8 @@ static int cx24123_pll_calculate(struct ndiv = ( ((p->frequency * vco_div *10 ) / (2 *XTAL /1000 )) /32 ) &0x1ff ; adiv = ( ((p->frequency * vco_div *10 ) / (2 *XTAL /1000 )) %32 ) &0x1f ; -if (adiv ==0 ) - ndiv++; +if (adiv ==0 && ndiv >0 ) + ndiv--;/* control bits 11, refdiv 11, charge pump polarity 1, charge pump current, ndiv, adiv */ state->pllarg = (3 <<19 ) | (3 <<17 ) | (1 <<16 ) | (pump <<14 ) | (ndiv <<5 ) | adiv;
drivers/media/video/msp3400-driver.c +2 -0
@@ -942,6 +942,8 @@ static int msp_attach(struct i2c_adapter state->has_virtual_dolby_surround = msp_revision =='G' && msp_prod_lo ==1 ;/* Has Virtual Dolby Surround & Dolby Pro Logic: only in msp34x2 */ state->has_dolby_pro_logic = msp_revision =='G' && msp_prod_lo ==2 ; +/* The msp343xG supports BTSC only and cannot do Automatic Standard Detection. */ + state->force_btsc = msp_family ==3 && msp_revision =='G' && msp_prod_hi ==3 ; state->opmode = opmode;if (state->opmode ==OPMODE_AUTO ) {
drivers/media/video/msp3400-driver.h +1 -0
@@ -64,6 +64,7 @@ struct msp_state {u8 has_sound_processing;u8 has_virtual_dolby_surround;u8 has_dolby_pro_logic; +u8 force_btsc;int radio;int opmode;
drivers/media/video/msp3400-kthreads.c +4 -3
@@ -949,11 +949,12 @@ int msp34xxg_thread(void *data)/* setup the chip*/ msp34xxg_reset (client); - state->std = state->radio ?0x40 : msp_standard; -if (state->std !=1 ) - goto unmute; + state->std = state->radio ?0x40 : + (state->force_btsc && msp_standard ==1 ) ?32 : msp_standard;/* start autodetect */ msp_write_dem (client,0x20 , state->std); +if (state->std !=1 ) + goto unmute;/* watch autodetect */ v4l_dbg (1 , msp_debug, client,"started autodetect, waiting for result\n" );
drivers/mmc/mmc_block.c +4 -45
56 lines not on this page · raw message
drivers/net/pcmcia/xirc2ps_cs.c +14 -4
@@ -345,6 +345,7 @@ typedef struct local_info_t {void __iomem *dingo_ccr;/* only used for CEM56 cards */ unsigned last_ptr_value;/* last packets transmitted value */ const char *manf_str; +struct work_struct tx_timeout_task; } local_info_t;/****************
@@ -352,6 +353,7 @@ typedef struct local_info_t {*/ static int do_start_xmit (struct sk_buff *skb,struct net_device *dev);static void do_tx_timeout (struct net_device *dev); +static void xirc2ps_tx_timeout_task (void *data);static struct net_device_stats *do_get_stats (struct net_device *dev);static void set_addresses (struct net_device *dev);static void set_multicast_list (struct net_device *dev);
@@ -589,6 +591,7 @@ xirc2ps_probe(struct pcmcia_device *link#ifdef HAVE_TX_TIMEOUT dev->tx_timeout = do_tx_timeout; dev->watchdog_timeo =TX_TIMEOUT ; +INIT_WORK (&local->tx_timeout_task, xirc2ps_tx_timeout_task, dev);#endif return xirc2ps_config (link);
@@ -1341,17 +1344,24 @@ xirc2ps_interrupt(int irq, void *dev_id,/*====================================================================*/ static void -do_tx_timeout (struct net_device *dev) +xirc2ps_tx_timeout_task (void *data) { -local_info_t *lp =netdev_priv (dev); -printk (KERN_NOTICE "%s: transmit timed out\n" , dev->name); - lp->stats.tx_errors++; +struct net_device *dev = data;/* reset the card */ do_reset (dev,1 ); dev->trans_start = jiffies;netif_wake_queue (dev); } +static void +do_tx_timeout (struct net_device *dev) +{ +local_info_t *lp =netdev_priv (dev); + lp->stats.tx_errors++; +printk (KERN_NOTICE "%s: transmit timed out\n" , dev->name); +schedule_work (&lp->tx_timeout_task); +} +static int do_start_xmit (struct sk_buff *skb,struct net_device *dev) {
drivers/pci/quirks.c +1 -0
@@ -390,6 +390,7 @@ static void __devinit quirk_piix4_acpi(spiix4_io_quirk (dev,"PIIX4 devres J" ,0x7c ,1 <<20 ); }DECLARE_PCI_FIXUP_HEADER (PCI_VENDOR_ID_INTEL ,PCI_DEVICE_ID_INTEL_82371AB_3 , quirk_piix4_acpi ); +DECLARE_PCI_FIXUP_HEADER (PCI_VENDOR_ID_INTEL ,PCI_DEVICE_ID_INTEL_82443MX_3 , quirk_piix4_acpi );/* * ICH4, ICH4-M, ICH5, ICH5-M ACPI: Three IO regions pointed to by longwords at
drivers/scsi/ahci.c +6 -0
@@ -548,6 +548,12 @@ static int ahci_softreset(struct ata_porDPRINTK ("ENTER\n" ); +if (!sata_dev_present (ap)) { +DPRINTK ("PHY reports no device\n" ); + *class =ATA_DEV_NONE ; +return 0 ; + } +/* prepare for SRST (AHCI-1.1 10.4.1) */ rc =ahci_stop_engine (ap);if (rc) {
fs/ext3/inode.c +1 -1
@@ -926,7 +926,7 @@ int ext3_get_blocks_handle(handle_t *hanset_buffer_new (bh_result); got_it:map_bh (bh_result, inode->i_sb,le32_to_cpu (chain[depth-1 ].key)); -if (blocks_to_boundary ==0 ) +if (count > blocks_to_boundary)set_buffer_boundary (bh_result); err = count;/* Clean up and exit */
fs/lockd/svcsubs.c +9 -6
@@ -238,19 +238,22 @@ static int nlm_traverse_files(struct nlm_host *host, int action) {struct nlm_file *file, **fp; -int i; +int i, ret =0 ;mutex_lock (&nlm_file_mutex);for (i =0 ; i <FILE_NRHASH ; i++) { fp = nlm_files + i;while ((file = *fp) !=NULL ) { + file->f_count++; +mutex_unlock (&nlm_file_mutex); +/* Traverse locks, blocks and shares of this file * and update file->f_locks count */ -if (nlm_inspect_file (host, file, action)) { -mutex_unlock (&nlm_file_mutex); -return 1 ; - } +if (nlm_inspect_file (host, file, action)) + ret =1 ; +mutex_lock (&nlm_file_mutex); + file->f_count--;/* No more references to this file. Let go of it. */ if (!file->f_blocks && !file->f_locks && !file->f_shares && !file->f_count) {
@@ -263,7 +266,7 @@ nlm_traverse_files(struct nlm_host *host } }mutex_unlock (&nlm_file_mutex); -return 0 ; +return ret; }/*
fs/nfs/file.c +7 -1
@@ -325,7 +325,13 @@ static void nfs_invalidate_page(struct pstatic int nfs_release_page (struct page *page,gfp_t gfp) { -return !nfs_wb_page (page->mapping->host, page); +if (gfp & __GFP_FS) +return !nfs_wb_page (page->mapping->host, page); +else +/* +* Avoid deadlock on nfs_wait_on_request(). +*/ +return 0 ; }struct address_space_operations nfs_file_aops = {
fs/nfs/nfs4proc.c +5 -5
@@ -185,15 +185,15 @@ static void renew_lease(const struct nfsspin_unlock (&clp->cl_lock); } -static void update_changeattr (struct inode *inode,struct nfs4_change_info *cinfo) +static void update_changeattr (struct inode *dir,struct nfs4_change_info *cinfo) { -struct nfs_inode *nfsi =NFS_I (inode); +struct nfs_inode *nfsi =NFS_I (dir); -spin_lock (&inode->i_lock); - nfsi->cache_validity |=NFS_INO_INVALID_ATTR ; +spin_lock (&dir->i_lock); + nfsi->cache_validity |=NFS_INO_INVALID_ATTR |NFS_INO_REVAL_PAGECACHE |NFS_INO_INVALID_DATA ;if (cinfo->before == nfsi->change_attr && cinfo->atomic) nfsi->change_attr = cinfo->after; -spin_unlock (&inode->i_lock); +spin_unlock (&dir->i_lock); }struct nfs4_opendata {
fs/sysfs/file.c +0 -5
@@ -483,11 +483,6 @@ int sysfs_update_file(struct kobject * k (victim->d_parent->d_inode == dir->d_inode)) { victim->d_inode->i_mtime =CURRENT_TIME ;fsnotify_modify (victim); - -/** -* Drop reference from initial sysfs_get_dentry(). -*/ -dput (victim); res =0 ; } elsed_drop (victim );
include/linux/nfs_fs.h +5 -1
@@ -234,8 +234,12 @@ static inline int nfs_caches_unstable(ststatic inline void nfs_mark_for_revalidate (struct inode *inode) { +struct nfs_inode *nfsi =NFS_I (inode); +spin_lock (&inode->i_lock); -NFS_I (inode)->cache_validity |=NFS_INO_INVALID_ATTR |NFS_INO_INVALID_ACCESS ; + nfsi->cache_validity |=NFS_INO_INVALID_ATTR |NFS_INO_INVALID_ACCESS ; +if (S_ISDIR (inode->i_mode)) + nfsi->cache_validity |=NFS_INO_REVAL_PAGECACHE |NFS_INO_INVALID_DATA ;spin_unlock (&inode->i_lock); }
include/linux/sunrpc/xprt.h +1 -1
@@ -37,7 +37,7 @@ extern unsigned int xprt_max_resvport;#define RPC_MIN_RESVPORT (1U)#define RPC_MAX_RESVPORT (65535U) -#define RPC_DEF_MIN_RESVPORT (650U) +#define RPC_DEF_MIN_RESVPORT (665U)#define RPC_DEF_MAX_RESVPORT (1023U)/*
net/sched/cls_basic.c +1 -1
@@ -197,7 +197,7 @@ static int basic_change(struct tcf_protoif (handle) f->handle = handle;else { -int i =0x80000000 ; +unsigned int i =0x80000000 ; do { if (++head->hgenerator == 0x7FFFFFFF) head->hgenerator = 1;
On 17-10-2006 00:04, Greg KH wrote:
...
net/sched/cls_basic.c static int basic_change(struct tcf_proto · line 203
Quoted 13 lines
net/sched/cls_basic.c +1
-1@@ -197,7 +197,7 @@ static int basic_change(struct tcf_protoif (handle) f->handle = handle;else { -int i =0x80000000 ; +unsigned int i =0x80000000 ; do { if (++head->hgenerator == 0x7FFFFFFF) head->hgenerator = 1;
} while (--i > 0 && basic_get(tp, head->hgenerator));
if (i <= 0) {...
I know it should be seen earlier but maybe somebody should make it less funny at a next chance:
if (i == 0) {Jarek P.