Linux 2.6.27.6
Subsystems (29)
We (the -stable team) are announcing the release of the 2.6.27.6 kernel.
It contains a wide range of bugfixes, and all users of the 2.6.27 kernel series are strongly encouraged to upgrade.
I'll also be replying to this message with a copy of the patch between 2.6.27.5 and 2.6.27.6
The updated 2.6.27.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.27.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.27.y.git;a=summarythanks,
greg k-h
------------
Documentation/cciss.txt | 2 Makefile | 2 arch/arm/mach-pxa/include/mach/reset.h | 9 + arch/arm/mach-pxa/reset.c | 9 + arch/arm/mach-pxa/spitz.c | 2 arch/arm/mach-pxa/tosa.c | 2 arch/arm/mm/cache-xsc3l2.c | 4 arch/x86/Kconfig | 20 ++++ arch/x86/kernel/setup.c | 41 ++++++++ arch/x86/kernel/tsc.c | 8 - drivers/acpi/dock.c | 5 - drivers/ata/libata-eh.c | 21 ++-- drivers/block/cciss.c | 28 +++++ drivers/block/cpqarray.c | 7 + drivers/dca/dca-core.c | 2 drivers/dma/ioat_dma.c | 11 +- drivers/dma/iovlock.c | 17 +-- drivers/hid/hidraw.c | 2 drivers/md/linear.c | 2 drivers/md/raid10.c | 2 drivers/mmc/core/core.c | 6 + drivers/mtd/chips/cfi_cmdset_0002.c | 13 -- drivers/mtd/chips/jedec_probe.c | 10 -- drivers/net/r8169.c | 134 ++++++++++++++-------------- drivers/net/wireless/iwlwifi/iwl-5000-hw.h | 7 + drivers/net/wireless/iwlwifi/iwl-5000.c | 63 +------------ drivers/net/wireless/iwlwifi/iwl-agn.c | 57 ++++++++--- drivers/net/wireless/iwlwifi/iwl-calib.c | 60 ++++++++++++ drivers/net/wireless/iwlwifi/iwl-core.c | 27 +---- drivers/net/wireless/iwlwifi/iwl-core.h | 8 + drivers/net/wireless/iwlwifi/iwl-dev.h | 15 +-- drivers/net/wireless/iwlwifi/iwl-power.c | 39 +++++++- drivers/net/wireless/iwlwifi/iwl-power.h | 4 drivers/net/wireless/iwlwifi/iwl-scan.c | 8 - drivers/net/wireless/iwlwifi/iwl3945-base.c | 7 + drivers/net/wireless/zd1211rw/zd_usb.c | 2 fs/ext3/super.c | 11 +- fs/hfs/catalog.c | 4 fs/jffs2/background.c | 10 +- fs/jffs2/compr_lzo.c | 15 +-- include/asm-generic/memory_model.h | 2 include/linux/mtd/cfi.h | 22 +++- include/net/af_unix.h | 1 kernel/cgroup.c | 1 mm/hugetlb.c | 49 +++++++++- mm/internal.h | 29 ++++++ mm/page_alloc.c | 28 ++++- net/unix/af_unix.c | 31 +++++- net/unix/garbage.c | 49 +++++++--- security/keys/internal.h | 1 security/keys/process_keys.c | 2 security/keys/request_key.c | 4 sound/pci/hda/patch_sigmatel.c | 15 +-- 53 files changed, 630 insertions(+), 300 deletions(-)
Alok Kataria (1):
x86: don't use tsc_khz to calculate lpj if notsc is passed
Andre Noll (1):
md: linear: Fix a division by zero bug for very small arrays.
Andrey Borzenkov (1):
cpqarry: fix return value of cpqarray_init()
Andy Whitcroft (2):
hugetlb: pull gigantic page initialisation out of the default path
hugetlbfs: handle pages higher order than MAX_ORDER
Arthur Jones (1):
ext3: wait on all pending commits in ext3_sync_fs
Dan Williams (2):
ARM: xsc3: fix xsc3_l2_inv_range
dca: fixup initialization dependency
Daniel Drake (1):
zd1211rw: Add 2 device IDs
David Howells (1):
KEYS: Make request key instantiate the per-user keyrings
David Woodhouse (1):
JFFS2: Fix lack of locking in thread_should_wake()
Dmitry Baryshkov (1):
ARM: 5300/1: fixup spitz reset during boot
Emmanuel Grumbach (2):
iwlwifi: allow association on radar channel in power save
iwlwifi: remove HT flags from RXON when not in HT anymore
Eric Sesterhenn (1):
hfs: fix namelength memory corruption (CVE-2008-5025)
Eric W. Biederman (1):
MTD: [NOR] Fix cfi_send_gen_cmd handling of x16 devices in x8 mode (v4)
Francois Romieu (3):
r8169: get ethtool settings through the generic mii helper
r8169: fix RxMissed register access
r8169: wake up the PHY of the 8168
Geert Uytterhoeven (1):
JFFS2: fix race condition in jffs2_lzo_compress()
Greg Kroah-Hartman (1):
Linux 2.6.27.6
Ingo Molnar (3):
x86: add DMI quirk for AMI BIOS which corrupts address 0xc000 during resume
x86: reserve low 64K on AMI and Phoenix BIOS boxen
x86: add X86_RESERVE_LOW_64KJiri Kosina (1):
HID: fix incorrent length condition in hidraw_write()
Li Zefan (1):
cgroups: fix invalid cgrp->dentry before cgroup has been completely removed
Maciej Sosnowski (3):
I/OAT: fix channel resources free for not allocated channels I/OAT: fix dma_pin_iovec_pages() error handling I/OAT: fix async_tx.callback checking
Matthew Ranostay (1):
ALSA: hda: make a STAC_DELL_EQ option
Mike Miller (3):
cciss: fix regression firmware not displayed in procfs
cciss: fix sysfs broken symlink regression
cciss: new hardware support
Miklos Szeredi (1):
net: unix: fix inflight counting bug in garbage collector
Neil Brown (1):
md: fix bug in raid10 recovery.
Pierre Ossman (1):
mmc: increase SD write timeout for crappy cards
Rafael J. Wysocki (1):
Fix __pfn_to_page(pfn) for CONFIG_DISCONTIGMEM=y
Reinette Chatre (1):
iwl3945: do not send scan command if channel count zero
Ron Rindjunsky (1):
iwlwifi: allow consecutive scans in unassociated state
Shaohua Li (1):
ACPI: dock: avoid check _STA method
Tejun Heo (1):
libata: fix last_reset timestamp handling
Tomas Winkler (4):
iwlwifi: don't fail if scan is issued too early
iwlwifi: use correct DMA_MASK
iwlwifi: fix suspend to RAM in iwlwifi
iwlwifi: generic init calibrations framework
Yinghai Lu (2):
x86: fix CONFIG_X86_RESERVE_LOW_64K=y
x86: fix macro with bad_bios_dmi_table
Zhu Yi (1):
iwl3945: fix deadlock on suspend
Documentation/cciss.txt +2 -0
@@ -26,6 +26,8 @@ This driver is known to work with the following cards: * SA P410i * SA P411 * SA P812 + * SA P712m + * SA P711m Detecting drive failures: -------------------------
Makefile +1 -1
@@ -1,7 +1,7 @@ VERSION = 2 PATCHLEVEL = 6 SUBLEVEL = 27 -EXTRAVERSION = .5 +EXTRAVERSION = .6 NAME = Trembling Tortoise # *DOCUMENTATION*
arch/arm/mach-pxa/include/mach/reset.h +6 -3
@@ -10,9 +10,12 @@extern unsigned int reset_status;extern void clear_reset_status (unsigned int mask); -/* -* register GPIO as reset generator +/** +* init_gpio_reset() - register GPIO as reset generator +* +* @gpio - gpio nr +* @output - set gpio as out/low instead of input during normal work */ -extern int init_gpio_reset (int gpio); +extern int init_gpio_reset (int gpio,int output);#endif /* __ASM_ARCH_RESET_H */
arch/arm/mach-pxa/reset.c +6 -3
@@ -20,7 +20,7 @@ static void do_hw_reset(void);static int reset_gpio =-1 ; -int init_gpio_reset (int gpio) +int init_gpio_reset (int gpio,int output) {int rc;
@@ -30,9 +30,12 @@ int init_gpio_reset(int gpio) goto out; } - rc =gpio_direction_input (gpio); +if (output) + rc =gpio_direction_output (gpio,0 ); +else + rc =gpio_direction_input (gpio);if (rc) { -printk (KERN_ERR "Can't configure reset_gpio for input\n" ); +printk (KERN_ERR "Can't configure reset_gpio\n" );gpio_free (gpio); goto out; }
arch/arm/mach-pxa/spitz.c +1 -1
@@ -548,7 +548,7 @@ static void spitz_restart(char mode)static void __init common_init (void ) { -init_gpio_reset (SPITZ_GPIO_ON_RESET ); +init_gpio_reset (SPITZ_GPIO_ON_RESET ,1 ); pm_power_off = spitz_poweroff; arm_pm_restart = spitz_restart;
arch/arm/mach-pxa/tosa.c +1 -1
@@ -781,7 +781,7 @@ static void __init tosa_init(void)gpio_set_wake (MFP_PIN_GPIO1 ,1 );/* We can't pass to gpio-keys since it will drop the Reset altfunc */ -init_gpio_reset (TOSA_GPIO_ON_RESET ); +init_gpio_reset (TOSA_GPIO_ON_RESET ,0 ); pm_power_off = tosa_poweroff; arm_pm_restart = tosa_restart;
arch/arm/mm/cache-xsc3l2.c +2 -2
@@ -97,7 +97,7 @@ static void xsc3_l2_inv_range(unsigned long start, unsigned long end)/* * Clean and invalidate partial last cache line. */ -if (end & (CACHE_LINE_SIZE -1 )) { +if (start < end && (end & (CACHE_LINE_SIZE -1 ))) {xsc3_l2_clean_pa (end & ~(CACHE_LINE_SIZE -1 ));xsc3_l2_inv_pa (end & ~(CACHE_LINE_SIZE -1 )); end &= ~(CACHE_LINE_SIZE -1 );
@@ -106,7 +106,7 @@ static void xsc3_l2_inv_range(unsigned long start, unsigned long end)/* * Invalidate all full cache lines between 'start' and 'end'. */ -while (start != end) { +while (start < end) {xsc3_l2_inv_pa (start); start +=CACHE_LINE_SIZE ; }
arch/x86/Kconfig +20 -0
@@ -1059,6 +1059,26 @@ config HIGHPTE low memory. Setting this option will put user-space page table entries in high memory. +config X86_RESERVE_LOW_64K + bool "Reserve low 64K of RAM on AMI/Phoenix BIOSen" + default y + help + Reserve the first 64K of physical RAM on BIOSes that are known + to potentially corrupt that memory range. A numbers of BIOSes are + known to utilize this area during suspend/resume, so it must not + be used by the kernel. + + Set this to N if you are absolutely sure that you trust the BIOS + to get all its memory reservations and usages right. + + If you have doubts about the BIOS (e.g. suspend/resume does not + work or there's kernel crashes after certain hardware hotplug + events) and it's not AMI or Phoenix, then you might want to enable + X86_CHECK_BIOS_CORRUPTION=y to allow the kernel to check typical + corruption patterns. + + Say Y if unsure. + config MATH_EMULATION bool prompt "Math emulation" if X86_32
arch/x86/kernel/setup.c +39 -2
62 lines not on this page · raw message
arch/x86/kernel/tsc.c +4 -4
@@ -639,10 +639,6 @@ void __init tsc_init(void) cpu_khz =calibrate_cpu ();#endif - lpj = ((u64 )tsc_khz *1000 ); -do_div (lpj,HZ ); - lpj_fine = lpj; -printk ("Detected %lu.%03lu MHz processor.\n" , (unsigned long )cpu_khz /1000 , (unsigned long )cpu_khz %1000 );
@@ -662,6 +658,10 @@ void __init tsc_init(void)/* now allow native_sched_clock() to use rdtsc */ tsc_disabled =0 ; + lpj = ((u64 )tsc_khz *1000 ); +do_div (lpj,HZ ); + lpj_fine = lpj; +use_tsc_delay ();/* Check and install the TSC clocksource */ dmi_check_system (bad_tsc_dmi_table);
drivers/acpi/dock.c +4 -1
@@ -604,14 +604,17 @@ static int handle_eject_request(struct dock_station *ds, u32 event)static void dock_notify (acpi_handle handle,u32 event,void *data) {struct dock_station *ds = data; +struct acpi_device *tmp;switch (event) {case ACPI_NOTIFY_BUS_CHECK : -if (!dock_in_progress (ds) &&dock_present (ds)) { +if (!dock_in_progress (ds) &&acpi_bus_get_device (ds->handle, + &tmp)) {begin_dock (ds);dock (ds);if (!dock_present (ds)) { printk(KERN_ERR PREFIX "Unable to dock!\n"); +complete_dock (ds);break ; } atomic_notifier_call_chain(&dock_notifier_list,
drivers/ata/libata-eh.c +11 -10
@@ -604,9 +604,6 @@ void ata_scsi_error(struct Scsi_Host *host)if (ata_ncq_enabled (dev)) ehc->saved_ncq_enabled |=1 << devno; } - -/* set last reset timestamp to some time in the past */ - ehc->last_reset = jiffies -60 *HZ ; } ap->pflags |=ATA_PFLAG_EH_IN_PROGRESS ;
@@ -2209,17 +2206,21 @@ int ata_eh_reset(struct ata_link *link, int classify,if (link->flags &ATA_LFLAG_NO_SRST ) softreset =NULL ; - now = jiffies; - deadline =ata_deadline (ehc->last_reset,ATA_EH_RESET_COOL_DOWN ); -if (time_before (now, deadline)) -schedule_timeout_uninterruptible (deadline - now); +/* make sure each reset attemp is at least COOL_DOWN apart */ +if (ehc->i.flags &ATA_EHI_DID_RESET ) { + now = jiffies; +WARN_ON (time_after (ehc->last_reset, now)); + deadline =ata_deadline (ehc->last_reset, +ATA_EH_RESET_COOL_DOWN ); +if (time_before (now, deadline)) +schedule_timeout_uninterruptible (deadline - now); + }spin_lock_irqsave (ap->lock, flags); ap->pflags |=ATA_PFLAG_RESETTING ;spin_unlock_irqrestore (ap->lock, flags);ata_eh_about_to_do (link,NULL ,ATA_EH_RESET ); - ehc->last_reset = jiffies;ata_link_for_each_dev (dev, link) {/* If we issue an SRST then an ATA drive (not ATAPI)
@@ -2285,7 +2286,6 @@ int ata_eh_reset(struct ata_link *link, int classify,/* * Perform reset */ - ehc->last_reset = jiffies;if (ata_is_host_link (link))ata_eh_freeze_port (ap);
@@ -2297,6 +2297,7 @@ int ata_eh_reset(struct ata_link *link, int classify, reset == softreset ? "soft" : "hard");/* mark that this EH session started with reset */ + ehc->last_reset = jiffies;if (reset == hardreset) ehc->i.flags |=ATA_EHI_DID_HARDRESET ;else
@@ -2404,7 +2405,7 @@ int ata_eh_reset(struct ata_link *link, int classify,/* reset successful, schedule revalidation */ ata_eh_done (link,NULL ,ATA_EH_RESET ); - ehc->last_reset = jiffies; + ehc->last_reset = jiffies;/* update to completion time */ ehc->i.action |=ATA_EH_REVALIDATE ; rc =0 ;
drivers/block/cciss.c +27 -1
@@ -96,6 +96,8 @@ static const struct pci_device_id cciss_pci_device_id[] = { {PCI_VENDOR_ID_HP, PCI_DEVICE_ID_HP_CISSE, 0x103C, 0x3245}, {PCI_VENDOR_ID_HP, PCI_DEVICE_ID_HP_CISSE, 0x103C, 0x3247}, {PCI_VENDOR_ID_HP, PCI_DEVICE_ID_HP_CISSE, 0x103C, 0x3249}, + {PCI_VENDOR_ID_HP, PCI_DEVICE_ID_HP_CISSE, 0x103C, 0x324A}, + {PCI_VENDOR_ID_HP, PCI_DEVICE_ID_HP_CISSE, 0x103C, 0x324B}, {PCI_VENDOR_ID_HP, PCI_ANY_ID, PCI_ANY_ID, PCI_ANY_ID, PCI_CLASS_STORAGE_RAID << 8, 0xffff << 8, 0}, {0,}
@@ -133,6 +135,8 @@ static struct board_type products[] = { {0x3245103C, "Smart Array P410i", &SA5_access}, {0x3247103C, "Smart Array P411", &SA5_access}, {0x3249103C, "Smart Array P812", &SA5_access}, + {0x324A103C, "Smart Array P712m", &SA5_access}, + {0x324B103C, "Smart Array P711m", &SA5_access}, {0xFFFF103C, "Unknown Smart Array", &SA5_access}, };
@@ -1365,6 +1369,7 @@ static void cciss_add_disk(ctlr_info_t *h, struct gendisk *disk, disk->first_minor = drv_index <<NWD_SHIFT ; disk->fops = &cciss_fops; disk->private_data = &h->drv[drv_index]; + disk->driverfs_dev = &h->pdev->dev;/* Set up queue information */ blk_queue_bounce_limit (disk->queue, h->pdev->dma_mask);
@@ -3403,7 +3408,8 @@ static int __devinit cciss_init_one(struct pci_dev *pdev,int i;int j =0 ;int rc; -int dac; +int dac, return_code; +InquiryData_struct *inq_buff =NULL ; i =alloc_cciss_hba ();if (i <0 )
@@ -3509,6 +3515,25 @@ static int __devinit cciss_init_one(struct pci_dev *pdev,/* Turn the interrupts on so we can service requests */ hba[i]->access.set_intr_mask (hba[i],CCISS_INTR_ON ); +/* Get the firmware version */ + inq_buff =kzalloc (sizeof (InquiryData_struct),GFP_KERNEL ); +if (inq_buff ==NULL ) { +printk (KERN_ERR "cciss: out of memory\n" ); + goto clean4; + } + + return_code =sendcmd_withirq (CISS_INQUIRY , i, inq_buff, +sizeof (InquiryData_struct),0 ,0 ,0 ,TYPE_CMD ); +if (return_code ==IO_OK ) { + hba[i]->firm_ver[0 ] = inq_buff->data_byte[32 ]; + hba[i]->firm_ver[1 ] = inq_buff->data_byte[33 ]; + hba[i]->firm_ver[2 ] = inq_buff->data_byte[34 ]; + hba[i]->firm_ver[3 ] = inq_buff->data_byte[35 ]; + }else {/* send command failed */ +printk (KERN_WARNING "cciss: unable to determine firmware" +" version of controller\n" ); + } +cciss_procinit (i); hba[i]->cciss_max_sectors =2048 ;
@@ -3519,6 +3544,7 @@ static int __devinit cciss_init_one(struct pci_dev *pdev,return 1 ; clean4: +kfree (inq_buff);#ifdef CONFIG_CISS_SCSI_TAPE kfree (hba[i]->scsi_rejects.complete);#endif
drivers/block/cpqarray.c +6 -1
@@ -567,7 +567,12 @@ static int __init cpqarray_init(void) num_cntlrs_reg++; } -return (num_cntlrs_reg); +if (num_cntlrs_reg) +return 0 ; +else { +pci_unregister_driver (&cpqarray_pci_driver); +return -ENODEV ; + } }/* Function to find the first free pointer into our hba[] array */
drivers/dca/dca-core.c +1 -1
@@ -270,6 +270,6 @@ static void __exit dca_exit(void)dca_sysfs_exit (); } -module_init (dca_init); +subsys_initcall (dca_init);module_exit (dca_exit);
drivers/dma/ioat_dma.c +9 -2
@@ -519,7 +519,7 @@ static dma_cookie_t ioat1_tx_submit(struct dma_async_tx_descriptor *tx) } hw->ctl =IOAT_DMA_DESCRIPTOR_CTL_CP_STS ; -if (new->async_tx.callback) { +if (first->async_tx.callback) { hw->ctl |=IOAT_DMA_DESCRIPTOR_CTL_INT_GN ;if (first != new) {/* move callback into to last desc */
@@ -611,7 +611,7 @@ static dma_cookie_t ioat2_tx_submit(struct dma_async_tx_descriptor *tx) } hw->ctl |=IOAT_DMA_DESCRIPTOR_CTL_CP_STS ; -if (new->async_tx.callback) { +if (first->async_tx.callback) { hw->ctl |=IOAT_DMA_DESCRIPTOR_CTL_INT_GN ;if (first != new) {/* move callback into to last desc */
@@ -801,6 +801,12 @@ static void ioat_dma_free_chan_resources(struct dma_chan *chan)struct ioat_desc_sw *desc, *_desc;int in_use_descs =0 ; +/* Before freeing channel resources first check +* if they have been previously allocated for this channel. +*/ +if (ioat_chan->desccount ==0 ) +return ; +tasklet_disable (&ioat_chan->cleanup_task);ioat_dma_memcpy_cleanup (ioat_chan);
@@ -863,6 +869,7 @@ static void ioat_dma_free_chan_resources(struct dma_chan *chan) ioat_chan->last_completion = ioat_chan->completion_addr =0 ; ioat_chan->pending =0 ; ioat_chan->dmacount =0 ; + ioat_chan->desccount =0 ; ioat_chan->watchdog_completion =0 ; ioat_chan->last_compl_desc_addr_hw =0 ; ioat_chan->watchdog_tcp_cookie =
drivers/dma/iovlock.c +6 -11
@@ -55,7 +55,6 @@ struct dma_pinned_list *dma_pin_iovec_pages(struct iovec *iov, size_t len)int nr_iovecs =0 ;int iovec_len_used =0 ;int iovec_pages_used =0 ; -long err;/* don't pin down non-user-based iovecs */ if (segment_eq (get_fs (),KERNEL_DS ))
@@ -72,23 +71,21 @@ struct dma_pinned_list *dma_pin_iovec_pages(struct iovec *iov, size_t len) local_list =kmalloc (sizeof (*local_list) + (nr_iovecs *sizeof (struct dma_page_list )) + (iovec_pages_used *sizeof (struct page *)),GFP_KERNEL ); -if (!local_list) { - err = -ENOMEM ; +if (!local_list) goto out; - }/* list of pages starts right after the page list array */ pages = (struct page **) &local_list->page_list[nr_iovecs]; + local_list->nr_iovecs =0 ; +for (i =0 ; i < nr_iovecs; i++) {struct dma_page_list *page_list = &local_list->page_list[i]; len -= iov[i].iov_len; -if (!access_ok (VERIFY_WRITE , iov[i].iov_base, iov[i].iov_len)) { - err = -EFAULT ; +if (!access_ok (VERIFY_WRITE , iov[i].iov_base, iov[i].iov_len)) goto unpin; - } page_list->nr_pages =num_pages_spanned (&iov[i]); page_list->base_address = iov[i].iov_base;
@@ -109,10 +106,8 @@ struct dma_pinned_list *dma_pin_iovec_pages(struct iovec *iov, size_t len) NULL);up_read (¤t->mm->mmap_sem); -if (ret != page_list->nr_pages) { - err = -ENOMEM ; +if (ret != page_list->nr_pages) goto unpin; - } local_list->nr_iovecs = i +1 ; }
@@ -122,7 +117,7 @@ struct dma_pinned_list *dma_pin_iovec_pages(struct iovec *iov, size_t len) unpin:dma_unpin_iovec_pages (local_list); out: -return ERR_PTR (err); +return NULL ; }void dma_unpin_iovec_pages (struct dma_pinned_list *pinned_list)
drivers/hid/hidraw.c +1 -1
@@ -113,7 +113,7 @@ static ssize_t hidraw_write(struct file *file, const char __user *buffer, size_tif (!dev->hid_output_raw_report)return -ENODEV ; -if (count >HID_MIN_BUFFER_SIZE ) { +if (count >HID_MAX_BUFFER_SIZE ) {printk (KERN_WARNING "hidraw: pid %d passed too large report\n" ,task_pid_nr (current));return -EINVAL ;
drivers/md/linear.c +2 -0
@@ -157,6 +157,8 @@ static linear_conf_t *linear_conf(mddev_t *mddev, int raid_disks) min_spacing = conf->array_sectors /2 ;sector_div (min_spacing,PAGE_SIZE /sizeof (struct dev_info *)); +if (min_spacing ==0 ) + min_spacing =1 ;/* min_spacing is the minimum spacing that will fit the hash * table in one PAGE. This may be much smaller than needed.
drivers/md/raid10.c +1 -1
@@ -1132,7 +1132,7 @@ static int raid10_add_disk(mddev_t *mddev, mdk_rdev_t *rdev)if (!enough (conf))return -EINVAL ; -if (rdev->raid_disk) +if (rdev->raid_disk >=0 ) first = last = rdev->raid_disk; if (rdev->saved_raid_disk >= 0 &&
drivers/mmc/core/core.c +5 -1
@@ -280,7 +280,11 @@ void mmc_set_data_timeout(struct mmc_data *data, const struct mmc_card *card) (card->host->ios.clock /1000 );if (data->flags &MMC_DATA_WRITE ) - limit_us =250000 ; +/* +* The limit is really 250 ms, but that is +* insufficient for some crappy cards. +*/ + limit_us =300000 ;else limit_us =100000 ;
drivers/mtd/chips/cfi_cmdset_0002.c +0 -13
@@ -362,19 +362,6 @@ struct mtd_info *cfi_cmdset_0002(struct map_info *map, int primary)/* Set the default CFI lock/unlock addresses */ cfi->addr_unlock1 =0x555 ; cfi->addr_unlock2 =0x2aa ; -/* Modify the unlock address if we are in compatibility mode */ -if (/* x16 in x8 mode */ - ((cfi->device_type ==CFI_DEVICETYPE_X8 ) && - (cfi->cfiq->InterfaceDesc == -CFI_INTERFACE_X8_BY_X16_ASYNC )) || -/* x32 in x16 mode */ - ((cfi->device_type ==CFI_DEVICETYPE_X16 ) && - (cfi->cfiq->InterfaceDesc == -CFI_INTERFACE_X16_BY_X32_ASYNC ))) - { - cfi->addr_unlock1 =0xaaa ; - cfi->addr_unlock2 =0x555 ; - } }/* CFI mode */ else if (cfi->cfi_mode ==CFI_MODE_JEDEC ) {
drivers/mtd/chips/jedec_probe.c +4 -6
@@ -1808,9 +1808,7 @@ static inline u32 jedec_read_mfr(struct map_info *map, uint32_t base,* several first banks can contain 0x7f instead of actual ID */ do { - uint32_t ofs = cfi_build_cmd_addr(0 + (bank << 8), - cfi_interleave(cfi), - cfi->device_type); + uint32_t ofs = cfi_build_cmd_addr(0 + (bank << 8), map, cfi); mask = (1 << (cfi->device_type * 8)) - 1; result = map_read(map, base + ofs); bank++;
@@ -1824,7 +1822,7 @@ static inline u32 jedec_read_id(struct map_info *map, uint32_t base, {map_word result;unsigned long mask; -u32 ofs =cfi_build_cmd_addr (1 ,cfi_interleave (cfi), cfi->device_type); +u32 ofs =cfi_build_cmd_addr (1 , map, cfi); mask = (1 << (cfi->device_type *8 )) -1 ; result =map_read (map, base + ofs);return result.x[0 ] & mask;
@@ -2067,8 +2065,8 @@ static int jedec_probe_chip(struct map_info *map, __u32 base, }/* Ensure the unlock addresses we try stay inside the map */ - probe_offset1 =cfi_build_cmd_addr (cfi->addr_unlock1,cfi_interleave (cfi), cfi->device_type); - probe_offset2 =cfi_build_cmd_addr (cfi->addr_unlock2,cfi_interleave (cfi), cfi->device_type); + probe_offset1 =cfi_build_cmd_addr (cfi->addr_unlock1, map, cfi); + probe_offset2 =cfi_build_cmd_addr (cfi->addr_unlock2, map, cfi);if ( ((base + probe_offset1 +map_bankwidth (map)) >= map->size) || ((base + probe_offset2 +map_bankwidth (map)) >= map->size)) goto retry;
drivers/net/r8169.c +67 -67
269 lines not on this page · raw message
drivers/net/wireless/iwlwifi/iwl-5000-hw.h +7 -0
@@ -129,6 +129,13 @@ struct iwl5000_shared {__le32 padding2; } __attribute__ ((packed)); +/* calibrations defined for 5000 */ +/* defines the order in which results should be sent to the runtime uCode */ +enum iwl5000_calib { +IWL5000_CALIB_LO , +IWL5000_CALIB_TX_IQ , +IWL5000_CALIB_TX_IQ_PERD , +};#endif /* __iwl_5000_hw_h__ */
drivers/net/wireless/iwlwifi/iwl-5000.c +9 -54
97 lines not on this page · raw message
drivers/net/wireless/iwlwifi/iwl-agn.c +39 -18
132 lines not on this page · raw message
drivers/net/wireless/iwlwifi/iwl-calib.c +60 -0
66 lines not on this page · raw message
drivers/net/wireless/iwlwifi/iwl-core.c +8 -19
@@ -646,8 +646,14 @@ void iwl_set_rxon_ht(struct iwl_priv *priv, struct iwl_ht_info *ht_info)struct iwl_rxon_cmd *rxon = &priv->staging_rxon;u32 val; -if (!ht_info->is_ht) +if (!ht_info->is_ht) { + rxon->flags &= ~(RXON_FLG_CHANNEL_MODE_MIXED_MSK | +RXON_FLG_CHANNEL_MODE_PURE_40_MSK | +RXON_FLG_CTRL_CHANNEL_LOC_HI_MSK | +RXON_FLG_FAT_PROT_MSK | +RXON_FLG_HT_PROT_MSK );return ; + }/* Set up channel bandwidth: 20 MHz only, or 20/40 mixed if fat ok */ if (iwl_is_fat_tx_allowed (priv,NULL ))
@@ -950,22 +956,6 @@ err: }EXPORT_SYMBOL (iwl_init_drv); -void iwl_free_calib_results (struct iwl_priv *priv) -{ -kfree (priv->calib_results.lo_res); - priv->calib_results.lo_res =NULL ; - priv->calib_results.lo_res_len =0 ; - -kfree (priv->calib_results.tx_iq_res); - priv->calib_results.tx_iq_res =NULL ; - priv->calib_results.tx_iq_res_len =0 ; - -kfree (priv->calib_results.tx_iq_perd_res); - priv->calib_results.tx_iq_perd_res =NULL ; - priv->calib_results.tx_iq_perd_res_len =0 ; -} -EXPORT_SYMBOL (iwl_free_calib_results); -int iwl_set_tx_power (struct iwl_priv *priv,s8 tx_power,bool force) {int ret =0 ;
@@ -993,10 +983,9 @@ int iwl_set_tx_power(struct iwl_priv *priv, s8 tx_power, bool force) }EXPORT_SYMBOL (iwl_set_tx_power); -void iwl_uninit_drv (struct iwl_priv *priv) { -iwl_free_calib_results (priv); +iwl_calib_free_results (priv);iwlcore_free_geos (priv);iwl_free_channel_map (priv);kfree (priv->scan);
drivers/net/wireless/iwlwifi/iwl-core.h +7 -1
@@ -186,7 +186,6 @@ struct ieee80211_hw *iwl_alloc_all(struct iwl_cfg *cfg,void iwl_hw_detect (struct iwl_priv *priv);void iwl_clear_stations_table (struct iwl_priv *priv); -void iwl_free_calib_results (struct iwl_priv *priv);void iwl_reset_qos (struct iwl_priv *priv);void iwl_set_rxon_chain (struct iwl_priv *priv); int iwl_set_rxon_channel(struct iwl_priv *priv,
@@ -291,6 +290,13 @@ int iwl_scan_initiate(struct iwl_priv *priv);void iwl_setup_rx_scan_handlers (struct iwl_priv *priv);void iwl_setup_scan_deferred_work (struct iwl_priv *priv); +/******************************************************************************* +* Calibrations - implemented in iwl-calib.c +******************************************************************************/ +int iwl_send_calib_results (struct iwl_priv *priv); +int iwl_calib_set (struct iwl_calib_result *res,const u8 *buf,int len); +void iwl_calib_free_results (struct iwl_priv *priv); +/***************************************************** * S e n d i n g H o s t C o m m a n d s * *****************************************************/
drivers/net/wireless/iwlwifi/iwl-dev.h +7 -8
@@ -745,13 +745,10 @@ struct statistics_general_data {u32 beacon_energy_c; }; -struct iwl_calib_results { -void *tx_iq_res; -void *tx_iq_perd_res; -void *lo_res; -u32 tx_iq_res_len; -u32 tx_iq_perd_res_len; -u32 lo_res_len; +/* Opaque calibration results */ +struct iwl_calib_result { +void *buf; +size_t buf_len; };enum ucode_type {
@@ -813,6 +810,7 @@ enum {#define IWL_MAX_NUM_QUEUES 20/* FIXME: do dynamic allocation */ +#define IWL_CALIB_MAX 3struct iwl_priv {
@@ -857,7 +855,7 @@ struct iwl_priv {s32 last_temperature;/* init calibration results */ -struct iwl_calib_results calib_results; +struct iwl_calib_result calib_results[IWL_CALIB_MAX ];/* Scan related variables */ unsigned long last_scan_jiffies;
@@ -1047,6 +1045,7 @@ struct iwl_priv {struct tasklet_struct irq_tasklet; +struct delayed_work set_power_save;struct delayed_work init_alive_start;struct delayed_work alive_start;struct delayed_work scan_check;
drivers/net/wireless/iwlwifi/iwl-power.c +38 -1
@@ -324,7 +324,7 @@ EXPORT_SYMBOL(iwl_power_update_mode);* this will be usefull for rate scale to disable PM during heavy * Tx/Rx activities */ -int iwl_power_disable_management (struct iwl_priv *priv) +int iwl_power_disable_management (struct iwl_priv *priv,u32 ms) {u16 prev_mode;int ret =0 ;
@@ -337,6 +337,11 @@ int iwl_power_disable_management(struct iwl_priv *priv) ret =iwl_power_update_mode (priv,0 ); priv->power_data.power_disabled =1 ; priv->power_data.user_power_setting = prev_mode; +cancel_delayed_work (&priv->set_power_save); +if (ms) +queue_delayed_work (priv->workqueue, &priv->set_power_save, +msecs_to_jiffies (ms)); +return ret; }
@@ -431,3 +436,35 @@ int iwl_power_temperature_change(struct iwl_priv *priv)return ret; }EXPORT_SYMBOL (iwl_power_temperature_change); + +static void iwl_bg_set_power_save (struct work_struct *work) +{ +struct iwl_priv *priv =container_of (work, + struct iwl_priv, set_power_save.work); +IWL_DEBUG (IWL_DL_STATE ,"update power\n" ); + +if (test_bit (STATUS_EXIT_PENDING , &priv->status)) +return ; + +mutex_lock (&priv->mutex); + +/* on starting association we disable power managment +* until association, if association failed then this +* timer will expire and enable PM again. +*/ +if (!iwl_is_associated (priv)) +iwl_power_enable_management (priv); + +mutex_unlock (&priv->mutex); +} +void iwl_setup_power_deferred_work (struct iwl_priv *priv) +{ +INIT_DELAYED_WORK (&priv->set_power_save, iwl_bg_set_power_save); +} +EXPORT_SYMBOL (iwl_setup_power_deferred_work); + +void iwl_power_cancel_timeout (struct iwl_priv *priv) +{ +cancel_delayed_work (&priv->set_power_save); +} +EXPORT_SYMBOL (iwl_power_cancel_timeout);
drivers/net/wireless/iwlwifi/iwl-power.h +3 -1
@@ -78,8 +78,10 @@ struct iwl_power_mgr {u8 power_disabled;/* flag to disable using power saving level */ }; +void iwl_setup_power_deferred_work (struct iwl_priv *priv); +void iwl_power_cancel_timeout (struct iwl_priv *priv);int iwl_power_update_mode (struct iwl_priv *priv,u8 refresh); -int iwl_power_disable_management (struct iwl_priv *priv); +int iwl_power_disable_management (struct iwl_priv *priv,u32 ms);int iwl_power_enable_management (struct iwl_priv *priv);int iwl_power_set_user_mode (struct iwl_priv *priv,u16 mode);int iwl_power_set_system_mode (struct iwl_priv *priv,u16 mode);
drivers/net/wireless/iwlwifi/iwl-scan.c +1 -7
@@ -464,11 +464,6 @@ void iwl_init_scan_params(struct iwl_priv *priv)int iwl_scan_initiate (struct iwl_priv *priv) { -if (priv->iw_mode ==IEEE80211_IF_TYPE_AP ) { -IWL_ERROR ("APs don't scan.\n" ); -return 0 ; - } -if (!iwl_is_ready_rf (priv)) {IWL_DEBUG_SCAN ("Aborting scan due to not ready.\n" );return -EIO ;
@@ -480,8 +475,7 @@ int iwl_scan_initiate(struct iwl_priv *priv) }if (test_bit (STATUS_SCAN_ABORTING , &priv->status)) { -IWL_DEBUG_SCAN ("Scan request while abort pending. " -"Queuing.\n" ); +IWL_DEBUG_SCAN ("Scan request while abort pending\n" );return -EAGAIN ; }
drivers/net/wireless/iwlwifi/iwl3945-base.c +6 -1
@@ -5761,7 +5761,6 @@ static void iwl3945_alive_start(struct iwl3945_priv *priv)if (priv->error_recovering)iwl3945_error_recovery (priv); -ieee80211_notify_mac (priv->hw,IEEE80211_NOTIFY_RE_ASSOC );return ; restart:
@@ -6006,6 +6005,7 @@ static void iwl3945_bg_alive_start(struct work_struct *data)mutex_lock (&priv->mutex);iwl3945_alive_start (priv);mutex_unlock (&priv->mutex); +ieee80211_notify_mac (priv->hw,IEEE80211_NOTIFY_RE_ASSOC ); }static void iwl3945_bg_rf_kill (struct work_struct *work)
@@ -6259,6 +6259,11 @@ static void iwl3945_bg_request_scan(struct work_struct *data) direct_mask, (void *)&scan->data[le16_to_cpu(scan->tx_cmd.len)]); +if (scan->channel_count ==0 ) { +IWL_DEBUG_SCAN ("channel count %d\n" , scan->channel_count); + goto done; + } + cmd.len +=le16_to_cpu (scan->tx_cmd.len) + scan->channel_count *sizeof (struct iwl3945_scan_channel ); cmd.data = scan;
drivers/net/wireless/zd1211rw/zd_usb.c +2 -0
@@ -61,6 +61,7 @@ static struct usb_device_id usb_ids[] = { { USB_DEVICE(0x0105, 0x145f), .driver_info = DEVICE_ZD1211 }, /* ZD1211B */ { USB_DEVICE(0x0ace, 0x1215), .driver_info = DEVICE_ZD1211B }, + { USB_DEVICE(0x0ace, 0xb215), .driver_info = DEVICE_ZD1211B }, { USB_DEVICE(0x157e, 0x300d), .driver_info = DEVICE_ZD1211B }, { USB_DEVICE(0x079b, 0x0062), .driver_info = DEVICE_ZD1211B }, { USB_DEVICE(0x1582, 0x6003), .driver_info = DEVICE_ZD1211B },
@@ -82,6 +83,7 @@ static struct usb_device_id usb_ids[] = { { USB_DEVICE(0x0cde, 0x001a), .driver_info = DEVICE_ZD1211B }, { USB_DEVICE(0x0586, 0x340a), .driver_info = DEVICE_ZD1211B }, { USB_DEVICE(0x0471, 0x1237), .driver_info = DEVICE_ZD1211B }, + { USB_DEVICE(0x07fa, 0x1196), .driver_info = DEVICE_ZD1211B }, /* "Driverless" devices that need ejecting */ { USB_DEVICE(0x0ace, 0x2011), .driver_info = DEVICE_INSTALLER }, { USB_DEVICE(0x0ace, 0x20ff), .driver_info = DEVICE_INSTALLER },
fs/ext3/super.c +5 -6
@@ -2365,13 +2365,12 @@ static void ext3_write_super (struct super_block * sb)static int ext3_sync_fs (struct super_block *sb,int wait) { -tid_t target; - sb->s_dirt =0 ; -if (journal_start_commit (EXT3_SB (sb)->s_journal, &target)) { -if (wait) -log_wait_commit (EXT3_SB (sb)->s_journal, target); - } +if (wait) +ext3_force_commit (sb); +else +journal_start_commit (EXT3_SB (sb)->s_journal,NULL ); +return 0 ; }
fs/hfs/catalog.c +4 -0
@@ -190,6 +190,10 @@ int hfs_cat_find_brec(struct super_block *sb, u32 cnid, fd->search_key->cat.ParID = rec.thread.ParID; len = fd->search_key->cat.CName.len = rec.thread.CName.len; +if (len >HFS_NAMELEN ) { +printk (KERN_ERR "hfs: bad catalog namelength\n" ); +return -EIO ; + }memcpy (fd->search_key->cat.CName.name, rec.thread.CName.name, len);return hfs_brec_find (fd); }
fs/jffs2/background.c +5 -5
@@ -85,15 +85,15 @@ static int jffs2_garbage_collect_thread(void *_c)for (;;) {allow_signal (SIGHUP ); again: +spin_lock (&c->erase_completion_lock);if (!jffs2_thread_should_wake (c)) {set_current_state (TASK_INTERRUPTIBLE ); +spin_unlock (&c->erase_completion_lock);D1 (printk (KERN_DEBUG "jffs2_garbage_collect_thread sleeping...\n" )); -/* Yes, there's a race here; we checked jffs2_thread_should_wake() -before setting current->state to TASK_INTERRUPTIBLE. But it doesn't -matter - We don't care if we miss a wakeup, because the GC thread -is only an optimisation anyway. */ schedule (); - } + }else +spin_unlock (&c->erase_completion_lock); +/* This thread is purely an optimisation. But if it runs when other things could be running, it actually makes things a
fs/jffs2/compr_lzo.c +9 -6
@@ -19,7 +19,7 @@static void *lzo_mem;static void *lzo_compress_buf; -static DEFINE_MUTEX (deflate_mutex); +static DEFINE_MUTEX (deflate_mutex);/* for lzo_mem and lzo_compress_buf */ static void free_workspace (void ) {
@@ -49,18 +49,21 @@ static int jffs2_lzo_compress(unsigned char *data_in, unsigned char *cpage_out,mutex_lock (&deflate_mutex); ret =lzo1x_1_compress (data_in, *sourcelen, lzo_compress_buf, &compress_size, lzo_mem); -mutex_unlock (&deflate_mutex); -if (ret !=LZO_E_OK ) -return -1 ; + goto fail;if (compress_size > *dstlen) -return -1 ; + goto fail;memcpy (cpage_out, lzo_compress_buf, compress_size); - *dstlen = compress_size; +mutex_unlock (&deflate_mutex); + *dstlen = compress_size;return 0 ; + + fail: +mutex_unlock (&deflate_mutex); +return -1 ; } static int jffs2_lzo_decompress(unsigned char *data_in, unsigned char *cpage_out,
include/asm-generic/memory_model.h +1 -1
@@ -34,7 +34,7 @@#define __pfn_to_page (pfn) \ ({ unsigned long __pfn = (pfn); \ - unsigned long __nid = arch_pfn_to_nid(pfn); \ + unsigned long __nid = arch_pfn_to_nid(__pfn); \ NODE_DATA(__nid)->node_mem_map + arch_local_page_offset(__pfn, __nid);\ })
include/linux/mtd/cfi.h +19 -3
@@ -281,9 +281,25 @@ struct cfi_private {/* * Returns the command address according to the given geometry. */ -static inline uint32_t cfi_build_cmd_addr (uint32_t cmd_ofs,int interleave,int type) +static inline uint32_t cfi_build_cmd_addr (uint32_t cmd_ofs, +struct map_info *map,struct cfi_private *cfi) { -return (cmd_ofs * type) * interleave; +unsigned bankwidth =map_bankwidth (map); +unsigned interleave =cfi_interleave (cfi); +unsigned type = cfi->device_type; +uint32_t addr; + + addr = (cmd_ofs * type) * interleave; + +/* Modify the unlock address if we are in compatiblity mode. +* For 16bit devices on 8 bit busses +* and 32bit devices on 16 bit busses +* set the low bit of the alternating bit sequence of the address. +*/ +if (((type * interleave) > bankwidth) && ((uint8_t )cmd_ofs ==0xaa )) + addr |= (type >>1 )*interleave; + +return addr; }/*
@@ -429,7 +445,7 @@ static inline uint32_t cfi_send_gen_cmd(u_char cmd, uint32_t cmd_addr, uint32_t int type, map_word *prev_val) { map_word val; -uint32_t addr = base +cfi_build_cmd_addr (cmd_addr,cfi_interleave (cfi), type); +uint32_t addr = base +cfi_build_cmd_addr (cmd_addr, map, cfi); val =cfi_build_cmd (cmd, map, cfi);
include/net/af_unix.h +1 -0
@@ -54,6 +54,7 @@ struct unix_sock {atomic_long_t inflight;spinlock_t lock; unsigned int gc_candidate : 1; + unsigned int gc_maybe_cycle : 1;wait_queue_head_t peer_wait; };#define unix_sk (__sk) ((struct unix_sock *)__sk)
kernel/cgroup.c +0 -1
@@ -2443,7 +2443,6 @@ static int cgroup_rmdir(struct inode *unused_dir, struct dentry *dentry)list_del (&cgrp->sibling);spin_lock (&cgrp->dentry->d_lock); d =dget (cgrp->dentry); - cgrp->dentry =NULL ;spin_unlock (&d->d_lock);cgroup_d_remove_dir (d);
mm/hugetlb.c +47 -2
96 lines not on this page · raw message
mm/internal.h +29 -0
@@ -17,6 +17,7 @@ void free_pgtables(struct mmu_gather *tlb, struct vm_area_struct *start_vma, unsigned long floor, unsigned long ceiling);extern void prep_compound_page (struct page *page,unsigned long order); +extern void prep_compound_gigantic_page (struct page *page,unsigned long order);static inline void set_page_count (struct page *page,int v) {
@@ -53,6 +54,34 @@ static inline unsigned long page_order(struct page *page) }/* +* Return the mem_map entry representing the 'offset' subpage within +* the maximally aligned gigantic page 'base'. Handle any discontiguity +* in the mem_map at MAX_ORDER_NR_PAGES boundaries. +*/ +static inline struct page *mem_map_offset (struct page *base,int offset) +{ +if (unlikely (offset >=MAX_ORDER_NR_PAGES )) +return pfn_to_page (page_to_pfn (base) + offset); +return base + offset; +} + +/* +* Iterator over all subpages withing the maximally aligned gigantic +* page 'base'. Handle any discontiguity in the mem_map. +*/ +static inline struct page *mem_map_next (struct page *iter, +struct page *base,int offset) +{ +if (unlikely ((offset & (MAX_ORDER_NR_PAGES -1 )) ==0 )) { +unsigned long pfn =page_to_pfn (base) + offset; +if (!pfn_valid (pfn)) +return NULL ; +return pfn_to_page (pfn); + } +return iter +1 ; +} + +/* * FLATMEM and DISCONTIGMEM configurations use alloc_bootmem_node, * so all functions starting at paging_init should be marked __init * in those cases. SPARSEMEM, however, allows for memory hotplug,
mm/page_alloc.c +21 -7
@@ -268,24 +268,39 @@ void prep_compound_page(struct page *page, unsigned long order) {int i;int nr_pages =1 << order; + +set_compound_page_dtor (page, free_compound_page); +set_compound_order (page, order); +__SetPageHead (page); +for (i =1 ; i < nr_pages; i++) { +struct page *p = page + i; + +__SetPageTail (p); + p->first_page = page; + } +} + +#ifdef CONFIG_HUGETLBFS +void prep_compound_gigantic_page (struct page *page,unsigned long order) +{ +int i; +int nr_pages =1 << order;struct page *p = page +1 ;set_compound_page_dtor (page, free_compound_page);set_compound_order (page, order);__SetPageHead (page); -for (i =1 ; i < nr_pages; i++, p++) { -if (unlikely ((i & (MAX_ORDER_NR_PAGES -1 )) ==0 )) - p =pfn_to_page (page_to_pfn (page) + i); +for (i =1 ; i < nr_pages; i++, p =mem_map_next (p, page, i)) {__SetPageTail (p); p->first_page = page; } } +#endif static void destroy_compound_page (struct page *page,unsigned long order) {int i;int nr_pages =1 << order; -struct page *p = page +1 ;if (unlikely (compound_order (page) != order))bad_page (page);
@@ -293,9 +308,8 @@ static void destroy_compound_page(struct page *page, unsigned long order)if (unlikely (!PageHead (page)))bad_page (page);__ClearPageHead (page); -for (i =1 ; i < nr_pages; i++, p++) { -if (unlikely ((i & (MAX_ORDER_NR_PAGES -1 )) ==0 )) - p =pfn_to_page (page_to_pfn (page) + i); +for (i =1 ; i < nr_pages; i++) { +struct page *p = page + i;if (unlikely (!PageTail (p) | (p->first_page != page)))
net/unix/af_unix.c +24 -7
@@ -1300,14 +1300,23 @@ static void unix_destruct_fds(struct sk_buff *skb)sock_wfree (skb); } -static void unix_attach_fds (struct scm_cookie *scm,struct sk_buff *skb) +static int unix_attach_fds (struct scm_cookie *scm,struct sk_buff *skb) {int i; + +/* +* Need to duplicate file references for the sake of garbage +* collection. Otherwise a socket in the fps might become a +* candidate for GC while the skb is not yet queued. +*/ +UNIXCB (skb).fp =scm_fp_dup (scm->fp); +if (!UNIXCB (skb).fp) +return -ENOMEM ; +for (i=scm->fp->count-1 ; i>=0 ; i--)unix_inflight (scm->fp->fp[i]); -UNIXCB (skb).fp = scm->fp; skb->destructor = unix_destruct_fds; - scm->fp =NULL ; +return 0 ; }/*
@@ -1366,8 +1375,11 @@ static int unix_dgram_sendmsg(struct kiocb *kiocb, struct socket *sock, goto out;memcpy (UNIXCREDS (skb), &siocb->scm->creds,sizeof (struct ucred )); -if (siocb->scm->fp) -unix_attach_fds (siocb->scm, skb); +if (siocb->scm->fp) { + err =unix_attach_fds (siocb->scm, skb); +if (err) + goto out_free; + }unix_get_secdata (siocb->scm, skb);skb_reset_transport_header (skb);
@@ -1536,8 +1548,13 @@ static int unix_stream_sendmsg(struct kiocb *kiocb, struct socket *sock, size =min_t (int, size,skb_tailroom (skb));memcpy (UNIXCREDS (skb), &siocb->scm->creds,sizeof (struct ucred )); -if (siocb->scm->fp) -unix_attach_fds (siocb->scm, skb); +if (siocb->scm->fp) { + err =unix_attach_fds (siocb->scm, skb); +if (err) { +kfree_skb (skb); + goto out_err; + } + }if ((err =memcpy_fromiovec (skb_put (skb,size), msg->msg_iov, size)) !=0 ) {kfree_skb (skb);
net/unix/garbage.c +37 -12
92 lines not on this page · raw message
security/keys/internal.h +1 -0
@@ -107,6 +107,7 @@ extern key_ref_t search_process_keyrings(struct key_type *type,extern struct key *find_keyring_by_name (const char *name,bool skip_perm_check); +extern int install_user_keyrings (struct task_struct *tsk);extern int install_thread_keyring (struct task_struct *tsk);extern int install_process_keyring (struct task_struct *tsk);
security/keys/process_keys.c +1 -1
@@ -40,7 +40,7 @@ struct key_user root_key_user = {/* * install user and user session keyrings for a particular UID */ -static int install_user_keyrings (struct task_struct *tsk) +int install_user_keyrings (struct task_struct *tsk) {struct user_struct *user = tsk->user;struct key *uid_keyring, *session_keyring;
security/keys/request_key.c +4 -0
@@ -74,6 +74,10 @@ static int call_sbin_request_key(struct key_construction *cons,kenter ("{%d},{%d},%s" , key->serial, authkey->serial, op); + ret =install_user_keyrings (tsk); +if (ret <0 ) + goto error_alloc; +/* allocate a new session keyring */ sprintf (desc,"_req.%u" , key->serial);
sound/pci/hda/patch_sigmatel.c +9 -6
@@ -67,6 +67,7 @@ enum {enum {STAC_92HD73XX_REF ,STAC_DELL_M6 , +STAC_DELL_EQ ,STAC_92HD73XX_MODELS };
@@ -560,9 +561,7 @@ static struct hda_verb dell_eq_core_init[] = { };static struct hda_verb dell_m6_core_init[] = { -/* set master volume to max value without distortion -* and direct control */ - {0x1f ,AC_VERB_SET_VOLUME_KNOB_CONTROL ,0xec }, + {0x1f ,AC_VERB_SET_VOLUME_KNOB_CONTROL ,0xff },/* setup audio connections */ {0x0d ,AC_VERB_SET_CONNECT_SEL ,0x00 }, {0x0a ,AC_VERB_SET_CONNECT_SEL ,0x01 },
@@ -1297,11 +1296,13 @@ static unsigned int dell_m6_pin_configs[13] = {static unsigned int *stac92hd73xx_brd_tbl[STAC_92HD73XX_MODELS ] = { [STAC_92HD73XX_REF ] = ref92hd73xx_pin_configs, [STAC_DELL_M6 ] = dell_m6_pin_configs, + [STAC_DELL_EQ ] = dell_m6_pin_configs, };static const char *stac92hd73xx_models[STAC_92HD73XX_MODELS ] = { [STAC_92HD73XX_REF ] ="ref" , [STAC_DELL_M6 ] ="dell-m6" , + [STAC_DELL_EQ ] ="dell-eq" , };static struct snd_pci_quirk stac92hd73xx_cfg_tbl[] = {
@@ -3560,8 +3561,12 @@ again: spec->gpio_data =0x01 ;switch (spec->board_config) { -case STAC_DELL_M6 : +case STAC_DELL_EQ : spec->init = dell_eq_core_init; +/* fallthru */ +case STAC_DELL_M6 : +if (!spec->init) + spec->init = dell_m6_core_init;switch (codec->subsystem_id) {case 0x1028025e :/* Analog Mics */ case 0x1028025f :
@@ -3570,8 +3575,6 @@ again:break ;case 0x10280271 :/* Digital Mics */ case 0x10280272 : - spec->init = dell_m6_core_init; -/* fall-through */ case 0x10280254 :case 0x10280255 :stac92xx_set_config_reg (codec,0x13 ,0x90A60160 );
Quoted 2 lines · Greg KH
Francois Romieu (3):
r8169: get ethtool settings through the generic mii helper
This appears to make the gigeth driver dependant on the mii sutff in the 100mbit driver submenu. Should it and if so doesn't this mean that the mii option best be moved out of the 100mbit menu (as this would make things a bit more logical - I don't expect to use stuff out of the 100mbit menu if I've only got gigeth cards)?
Signature · 4 lines
"Police noticed some rustling sounds from Linn's bottom area
and on closer inspection a roll of cash was found protruding
from Linn's anus, the full amount of cash taken in the robbery."
- http://www.smh.com.au/news/world/robber-hides-loot-up-his-booty/2008/05/09/1210131248617.htmlQuoted 9 lines · CaT
Quoted 2 lines · Greg KH
Francois Romieu (3):
r8169: get ethtool settings through the generic mii helperThis appears to make the gigeth driver dependant on the mii sutff in the 100mbit driver submenu. Should it and if so doesn't this mean that the mii option best be moved out of the 100mbit menu (as this would make things a bit more logical - I don't expect to use stuff out of the 100mbit menu if I've only got gigeth cards)?
I'll backport the 'select this config option' patch that is needed to ensure the build doesn't break here for the next .27.y stable release.
thanks,
greg k-h
No big deal, but commit 093327cb references
X86_CHECK_BIOS_CORRUPTION that is not available anywhere.
Thanks,
Loïc
Quoted 2 lines · Loïc Grenié
No big deal, but commit
093327cbreferences
X86_CHECK_BIOS_CORRUPTIONthat is not available anywhere.
You are talking about commit 71556e92, I suppose. Since the change log entry has been written for the original commit 5649b7c3 in Linus' tree, it refers to a feature that is available there (X86_CHECK_BIOS_CORRUPTION) but has only been merged into mainline after the release of 2.6.27.
Regards,
Elias
2008/11/15 Elias Oltmanns <[email protected]>:
Quoted 9 lines
Quoted 2 lines · Loïc Grenié
No big deal, but commit
093327cbreferences
X86_CHECK_BIOS_CORRUPTIONthat is not available anywhere.You are talking about commit
71556e92, I suppose. Since the change log entry has been written for the original commit5649b7c3in Linus' tree, it refers to a feature that is available there (X86_CHECK_BIOS_CORRUPTION) but has only been merged into mainline after the release of 2.6.27.
No, I really mean 093327cb because it modifies arch/x86/Kconfig and in the
help for X86_RESERVE_LOW_64K it references X86_CHECK_BIOS_CORRUPTION that, as you say, exists only in 2.6.28-rc?
Loïc
Quoted 12 lines · Loïc Grenié
2008/11/15 Elias Oltmanns <[email protected]>:
Quoted 10 lines
Quoted 2 lines · Loïc Grenié
No big deal, but commit
093327cbreferences
X86_CHECK_BIOS_CORRUPTIONthat is not available anywhere.You are talking about commit
71556e92, I suppose. Since the change log entry has been written for the original commit5649b7c3in Linus' tree, it refers to a feature that is available there (X86_CHECK_BIOS_CORRUPTION) but has only been merged into mainline after the release of 2.6.27.
Quoted 3 lines
No, I really mean
093327cbbecause it modifiesarch/x86/Kconfigand in the
help forX86_RESERVE_LOW_64Kit referencesX86_CHECK_BIOS_CORRUPTIONthat, as you say, exists only in 2.6.28-rc?
Right, I see. Perhaps Ingo wants to do something about it?
Regards,
Elias
Quoted 6 lines · On Thu, 13 Nov 2008 10:53:50 -0800 Greg KH <[email protected]> wrote:
We (the -stable team) are announcing the release of the 2.6.27.6 kernel.
It contains a wide range of bugfixes, and all users of the 2.6.27 kernel series are strongly encouraged to upgrade.
Quoted 6 lines
I'll also be replying to this message with a copy of the patch between 2.6.27.5 and 2.6.27.6
Francois Romieu (3):
r8169: get ethtool settings through the generic mii helper
r8169: fix RxMissed register access
r8169: wake up the PHY of the 8168
My r8169 no longer compiles:
...
Building modules, stage 2.
MODPOST 243 modules
ERROR: "mii_ethtool_gset" [drivers/net/r8169.ko] undefined! make[1]: *** [__modpost] Error 1
make: *** [modules] Error 2
Attached my .config. Also tried witht he following changed, with the same results:
+CONFIG_NET_ETHERNET=y
+CONFIG_MII=m
-sandalle
Signature · 3 lines
Eric Sandall | Source Mage GNU/Linux Developer [email protected] PGP: 0xA8EFDD61 | http://www.sourcemage.org/ http://eric.sandall.us/ | http://counter.li.org/ #196285
Quoted 25 lines · you
Quoted 6 lines · On Thu, 13 Nov 2008 10:53:50 -0800 Greg KH <[email protected]> wrote:
We (the -stable team) are announcing the release of the 2.6.27.6 kernel.
It contains a wide range of bugfixes, and all users of the 2.6.27 kernel series are strongly encouraged to upgrade.
Quoted 6 lines
I'll also be replying to this message with a copy of the patch between 2.6.27.5 and 2.6.27.6
Francois Romieu (3):
r8169: get ethtool settings through the generic mii helper
r8169: fix RxMissed register access
r8169: wake up the PHY of the 8168My r8169 no longer compiles:
...
Building modules, stage 2.
MODPOST 243 modules
ERROR: "mii_ethtool_gset" [drivers/net/r8169.ko] undefined! make[1]: *** [__modpost] Error 1
make: *** [modules] Error 2Attached my .config. Also tried witht he following changed, with the same results:
Review
Quoted 2 lines
(quoted diff) +2
-0+CONFIG_NET_ETHERNET=y +CONFIG_MII=m
r8169 works fine here, from dmesg:
r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
r8169 0000:04:00.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17
r8169 0000:04:00.0: setting latency timer to 64
eth0: RTL8168b/8111b at 0xffffc200100b8000, 00:1d:7d:03:5e:98, XID 38000000 IRQ 378
...
r8169: eth0: link up
See: http://bugsplatter.id.au/kernel/boxen/pooh64/ for dmesg + config
Grant.
Signature · 1 line
http://bugsplatter.id.au
Quoting "Grant Coady" <[email protected]>:
Quoted 39 lines · you
Quoted 26 lines
Quoted 6 lines · On Thu, 13 Nov 2008 10:53:50 -0800 Greg KH <[email protected]> wrote:
We (the -stable team) are announcing the release of the 2.6.27.6 kernel.
It contains a wide range of bugfixes, and all users of the 2.6.27 kernel series are strongly encouraged to upgrade.
Quoted 6 lines
I'll also be replying to this message with a copy of the patch between 2.6.27.5 and 2.6.27.6
Francois Romieu (3):
r8169: get ethtool settings through the generic mii helper
r8169: fix RxMissed register access
r8169: wake up the PHY of the 8168My r8169 no longer compiles:
...
Building modules, stage 2.
MODPOST 243 modules
ERROR: "mii_ethtool_gset" [drivers/net/r8169.ko] undefined! make[1]: *** [__modpost] Error 1
make: *** [modules] Error 2Attached my .config. Also tried witht he following changed, with the same results:
Review
Quoted 2 lines
(quoted diff) +2
-0+CONFIG_NET_ETHERNET=y +CONFIG_MII=mr8169 works fine here, from dmesg:
r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
r8169 0000:04:00.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17
r8169 0000:04:00.0: setting latency timer to 64
eth0: RTL8168b/8111b at0xffffc200100b8000, 00:1d:7d:03:5e:98, XID 38000000 IRQ 378
...
r8169: eth0: link up
Quoted 3 lines
See: http://bugsplatter.id.au/kernel/boxen/pooh64/ for dmesg + config
Grant.
Mine works fine as well, on 2.6.27.5. It does not even *compile* on 2.6.27.6. Jean Schurger just sent an e-mail (http://marc.info/?l=linux-kernel&m=122703112423031) with the same issue, but was kind enough to provide a patch (which I have not tested).
-sandalle
Signature · 3 lines
Eric Sandall | Source Mage GNU/Linux Developer [email protected] PGP: 0xA8EFDD61 | http://www.sourcemage.org/ http://eric.sandall.us/ | http://counter.li.org/ #196285
Quoted 25 lines · Eric Sandall
Quoted 6 lines · On Thu, 13 Nov 2008 10:53:50 -0800 Greg KH <[email protected]> wrote:
We (the -stable team) are announcing the release of the 2.6.27.6 kernel.
It contains a wide range of bugfixes, and all users of the 2.6.27 kernel series are strongly encouraged to upgrade.
Quoted 6 lines
I'll also be replying to this message with a copy of the patch between 2.6.27.5 and 2.6.27.6
Francois Romieu (3):
r8169: get ethtool settings through the generic mii helper
r8169: fix RxMissed register access
r8169: wake up the PHY of the 8168My r8169 no longer compiles:
...
Building modules, stage 2.
MODPOST 243 modules
ERROR: "mii_ethtool_gset" [drivers/net/r8169.ko] undefined! make[1]: *** [__modpost] Error 1
make: *** [modules] Error 2Attached my .config. Also tried witht he following changed, with the same results:
Review
Quoted 2 lines
(quoted diff) +2
-0+CONFIG_NET_ETHERNET=y +CONFIG_MII=m
Already fixed in 2.6.27.7-rc2.
thanks,
greg k-h
Quoted 24 lines · On Tue, 18 Nov 2008 22:15:58 -0800 Greg KH <[email protected]> wrote:
Quoted 23 lines · Eric Sandall
Quoted 6 lines · On Thu, 13 Nov 2008 10:53:50 -0800 Greg KH <[email protected]> wrote:
We (the -stable team) are announcing the release of the 2.6.27.6 kernel.
It contains a wide range of bugfixes, and all users of the 2.6.27 kernel series are strongly encouraged to upgrade.
Quoted 6 lines
I'll also be replying to this message with a copy of the patch between 2.6.27.5 and 2.6.27.6
Francois Romieu (3):
r8169: get ethtool settings through the generic mii helper
r8169: fix RxMissed register access
r8169: wake up the PHY of the 8168My r8169 no longer compiles:
...
Building modules, stage 2.
MODPOST 243 modules
ERROR: "mii_ethtool_gset" [drivers/net/r8169.ko] undefined! make[1]: *** [__modpost] Error 1
make: *** [modules] Error 2
Quoted 6 lines
Review
Quoted 4 lines
Attached my .config. Also tried witht he following changed, with the same results:
(quoted diff) +2
-0+CONFIG_NET_ETHERNET=y +CONFIG_MII=mAlready fixed in 2.6.27.7-rc2.
Compiles and works in 2.6.27.7 stable release, thanks. :)
-sandalle
Signature · 3 lines
Eric Sandall | Source Mage GNU/Linux Developer [email protected] PGP: 0xA8EFDD61 | http://www.sourcemage.org/ http://eric.sandall.us/ | http://counter.li.org/ #196285