Linux 3.0.53
Greg KH
maintainerI'm announcing the release of the 3.0.53 kernel.
All users of the 3.0 kernel series must upgrade.
The updated 3.0.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.0.y
and can be browsed at the normal kernel.org git web browser:
http://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary
thanks,
greg k-h
------------
Makefile | 2 arch/m68k/include/asm/signal.h | 6 - arch/mips/Makefile | 2 arch/mips/kernel/Makefile | 2 arch/s390/mm/gup.c | 2 crypto/cryptd.c | 11 +- drivers/gpu/drm/i915/intel_overlay.c | 14 ++ drivers/net/r8169.c | 2 drivers/net/sky2.c | 4 drivers/pci/setup-bus.c | 31 +++-- drivers/pci/setup-res.c | 155 ++++++++++++++++++----------- drivers/usb/serial/option.c | 9 + drivers/usb/serial/usb-serial.c | 6 - fs/ecryptfs/main.c | 23 ++++ fs/nfs/nfs4proc.c | 3 fs/notify/fanotify/fanotify.c | 1 fs/reiserfs/inode.c | 10 + fs/reiserfs/stree.c | 4 fs/reiserfs/super.c | 60 ++++++++--- fs/ubifs/find.c | 12 +- fs/ubifs/lprops.c | 6 + fs/ubifs/ubifs.h | 3 include/linux/pci.h | 1 kernel/resource.c | 7 + mm/vmscan.c | 2 net/core/dev.c | 4 net/core/dev_addr_lists.c | 3 net/ipv4/ip_sockglue.c | 33 +++--- net/ipv4/netfilter/nf_nat_standalone.c | 6 - net/ipv6/ipv6_sockglue.c | 1 net/netfilter/nf_conntrack_proto_tcp.c | 29 +---- net/wireless/reg.c | 5 scripts/Kbuild.include | 12 +- scripts/gcc-version.sh | 6 - scripts/gcc-x86_32-has-stack-protector.sh | 2 scripts/gcc-x86_64-has-stack-protector.sh | 2 scripts/kconfig/check.sh | 2 scripts/kconfig/lxdialog/check-lxdialog.sh | 2 security/selinux/netnode.c | 3 sound/pci/hda/patch_analog.c | 1 sound/pci/hda/patch_cirrus.c | 2 sound/soc/codecs/wm8978.c | 2 sound/soc/soc-dapm.c | 2 tools/perf/Makefile | 2 44 files changed, 330 insertions(+), 167 deletions(-)
Alexander Stein (1):
ALSA: hda: Cirrus: Fix coefficient index for beep configuration
Andreas Schwab (1):
m68k: fix sigset_t accessor functions
Artem Bityutskiy (2):
UBIFS: fix mounting problems after power cuts
UBIFS: introduce categorized lprops counter
Bryan Schumaker (1):
NFS: Wait for session recovery to finish before returning
Dan Williams (2):
USB: option: add Novatel E362 and Dell Wireless 5800 USB IDs
USB: option: add Alcatel X220/X500D USB IDs
Daniel Vetter (1):
drm/i915: fix overlay on i830M
Dave Jones (1):
selinux: fix sel_netnode_insert() suspicious rcu dereference
Eric Millbrandt (1):
ASoC: wm8978: pll incorrectly configured when codec is master
Eric Paris (1):
fanotify: fix missing break
Greg Kroah-Hartman (1):
Linux 3.0.53
Hannes Frederic Sowa (1):
ipv6: setsockopt(IPIPPROTO_IPV6, IPV6_MINHOPCOUNT) forgot to set return value
Heiko Carstens (1):
s390/gup: add missing TASK_SIZE check to get_user_pages_fast()
Jan Kara (4):
reiserfs: Fix lock ordering during remount
reiserfs: Protect reiserfs_quota_on() with write lock
reiserfs: Move quota calls out of write lock
reiserfs: Protect reiserfs_quota_write() with write lock
Jan Safrata (1):
usb: use usb_serial_put in usb_serial_probe errors
Jean Delvare (1):
kbuild: Fix gcc -x syntax
Jiri Pirko (1):
net: correct check in dev_addr_del()
Johannes Berg (1):
wireless: allow 40 MHz on world roaming channels 12/13
Jozsef Kadlecsik (2):
netfilter: Validate the sequence number of dataless ACK packets as well
netfilter: Mark SYN/ACK packets as invalid from original direction
Jussi Kivilinna (1):
crypto: cryptd - disable softirqs in cryptd_queue_worker to prevent data corruption
Michal Schmidt (1):
r8169: use unlimited DMA burst for TX
Mirko Lindner (1):
sky2: Fix for interrupt handler
Misael Lopez Cruz (1):
ASoC: dapm: Use card_list during DAPM shutdown
Ram Pai (2):
PCI : ability to relocate assigned pci-resources
Resource: fix wrong resource window calculation
Takamori Yamaguchi (1):
mm: bugfix: set current->reclaim_state to NULL while returning from kswapd()
Takashi Iwai (1):
ALSA: hda - Force to reset IEC958 status bits for AD codecs
Tim Sally (1):
eCryptfs: check for eCryptfs cipher support at mount
Tom Herbert (1):
net-rps: Fix brokeness causing OOO packets
Tyler Hicks (1):
eCryptfs: Copy up POSIX ACL and read-only flags from lower mount
Ulrich Weber (1):
netfilter: nf_nat: don't check for port change on ICMP tuples
Xi Wang (1):
ipv4: avoid undefined behavior in do_ip_setsockopt()
Yinghai Lu (1):
PCI : Calculate right add_size
Greg KH
maintainerMakefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 0 -SUBLEVEL = 52 +SUBLEVEL = 53 EXTRAVERSION = NAME = Sneaky Weasel
arch/m68k/include/asm/signal.h +3 -3
@@ -156,7 +156,7 @@ typedef struct sigaltstack {static inline void sigaddset (sigset_t *set,int _sig) { asm ("bfset %0{%1,#1}" - :"+od" (*set) + :"+o" (*set) :"id" ((_sig -1 ) ^31 ) :"cc" ); }
@@ -164,7 +164,7 @@ static inline void sigaddset(sigset_t *set, int _sig)static inline void sigdelset (sigset_t *set,int _sig) { asm ("bfclr %0{%1,#1}" - :"+od" (*set) + :"+o" (*set) :"id" ((_sig -1 ) ^31 ) :"cc" ); }
@@ -180,7 +180,7 @@ static inline int __gen_sigismember(sigset_t *set, int _sig)int ret; asm ("bfextu %1{%2,#1},%0" :"=d" (ret) - :"od" (*set),"id" ((_sig-1 ) ^31 ) + :"o" (*set),"id" ((_sig-1 ) ^31 ) :"cc" );return ret; }
arch/mips/Makefile +1 -1
@@ -236,7 +236,7 @@ KBUILD_CPPFLAGS += -D"DATAOFFSET=$(if $(dataoffset-y),$(dataoffset-y),0)" LDFLAGS += -m $(ld-emul) ifdef CONFIG_MIPS -CHECKFLAGS += $(shell $(CC) $(KBUILD_CFLAGS) -dM -E -xc /dev/null | \ +CHECKFLAGS += $(shell $(CC) $(KBUILD_CFLAGS) -dM -E -x c /dev/null | \ egrep -vw '__GNUC_(|MINOR_|PATCHLEVEL_)_' | \ sed -e 's/^\#define /-D/' -e "s/ /='/" -e "s/$$/'/") ifdef CONFIG_64BIT
arch/mips/kernel/Makefile +1 -1
@@ -100,7 +100,7 @@ obj-$(CONFIG_MIPS_MACHINE) += mips_machine.o obj-$(CONFIG_OF) += prom.o -CFLAGS_cpu-bugs64.o = $(shell if $(CC) $(KBUILD_CFLAGS) -Wa,-mdaddi -c -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo "-DHAVE_AS_SET_DADDI"; fi) +CFLAGS_cpu-bugs64.o = $(shell if $(CC) $(KBUILD_CFLAGS) -Wa,-mdaddi -c -o /dev/null -x c /dev/null >/dev/null 2>&1; then echo "-DHAVE_AS_SET_DADDI"; fi) obj-$(CONFIG_HAVE_STD_PC_SERIAL_PORT) += 8250-platform.o
arch/s390/mm/gup.c +1 -1
@@ -183,7 +183,7 @@ int get_user_pages_fast(unsigned long start, int nr_pages, int write, addr = start; len = (unsigned long ) nr_pages <<PAGE_SHIFT ; end = start + len; -if (end < start) +if ((end < start) || (end >TASK_SIZE )) goto slow_irqon;/*
crypto/cryptd.c +8 -3
@@ -137,13 +137,18 @@ static void cryptd_queue_worker(struct work_struct *work)struct crypto_async_request *req, *backlog; cpu_queue = container_of(work, struct cryptd_cpu_queue, work); -/* Only handle one request at a time to avoid hogging crypto -* workqueue. preempt_disable/enable is used to prevent -* being preempted by cryptd_enqueue_request() */ +/* +* Only handle one request at a time to avoid hogging crypto workqueue. +* preempt_disable/enable is used to prevent being preempted by +* cryptd_enqueue_request(). local_bh_disable/enable is used to prevent +* cryptd_enqueue_request() being accessed from software interrupts. +*/ +local_bh_disable ();preempt_disable (); backlog =crypto_get_backlog (&cpu_queue->queue); req =crypto_dequeue_request (&cpu_queue->queue);preempt_enable (); +local_bh_enable ();if (!req)return ;
drivers/gpu/drm/i915/intel_overlay.c +11 -3
@@ -428,9 +428,17 @@ static int intel_overlay_off(struct intel_overlay *overlay)OUT_RING (flip_addr);OUT_RING (MI_WAIT_FOR_EVENT |MI_WAIT_FOR_OVERLAY_FLIP );/* turn overlay off */ -OUT_RING (MI_OVERLAY_FLIP |MI_OVERLAY_OFF ); -OUT_RING (flip_addr); -OUT_RING (MI_WAIT_FOR_EVENT |MI_WAIT_FOR_OVERLAY_FLIP ); +if (IS_I830 (dev)) { +/* Workaround: Don't disable the overlay fully, since otherwise +* it dies on the next OVERLAY_ON cmd. */ +OUT_RING (MI_NOOP ); +OUT_RING (MI_NOOP ); +OUT_RING (MI_NOOP ); + }else { +OUT_RING (MI_OVERLAY_FLIP |MI_OVERLAY_OFF ); +OUT_RING (flip_addr); +OUT_RING (MI_WAIT_FOR_EVENT |MI_WAIT_FOR_OVERLAY_FLIP ); + }ADVANCE_LP_RING (); return intel_overlay_do_wait_request(overlay, request,
drivers/net/r8169.c +1 -1
@@ -75,7 +75,7 @@ static const int multicast_filter_limit = 32;#define MAX_READ_REQUEST_SHIFT 12#define RX_FIFO_THRESH 7/* 7 means NO threshold, Rx buffer level before first PCI xfer. */ #define RX_DMA_BURST 6/* Maximum PCI burst, '6' is 1024 */ -#define TX_DMA_BURST 6/* Maximum PCI burst, '6' is 1024 */ +#define TX_DMA_BURST 7/* Maximum PCI burst, '7' is unlimited */ #define SafeMtu 0x1c20/* ... actually life sucks beyond ~7k */ #define InterFrameGap 0x03/* 3 means InterFrameGap = the shortest one */
drivers/net/sky2.c +3 -1
@@ -2929,8 +2929,10 @@ static irqreturn_t sky2_intr(int irq, void *dev_id)/* Reading this mask interrupts as side effect */ status =sky2_read32 (hw,B0_Y2_SP_ISRC2 ); -if (status ==0 || status == ~0 ) +if (status ==0 || status == ~0 ) { +sky2_write32 (hw,B0_Y2_SP_ICR ,2 );return IRQ_NONE ; + }prefetch (&hw->st_le[hw->st_idx]);
drivers/pci/setup-bus.c +19 -12
@@ -34,6 +34,7 @@ struct resource_list_x {resource_size_t start;resource_size_t end;resource_size_t add_size; +resource_size_t min_align;unsigned long flags; };
@@ -65,7 +66,7 @@ void pci_realloc(void)*/ static void add_to_list (struct resource_list_x *head,struct pci_dev *dev,struct resource *res, -resource_size_t add_size) +resource_size_t add_size,resource_size_t min_align) {struct resource_list_x *list = head;struct resource_list_x *ln = list->next;
@@ -84,13 +85,16 @@ static void add_to_list(struct resource_list_x *head, tmp->end = res->end; tmp->flags = res->flags; tmp->add_size = add_size; + tmp->min_align = min_align; list->next = tmp; }static void add_to_failed_list (struct resource_list_x *head,struct pci_dev *dev,struct resource *res) { -add_to_list (head, dev, res,0 ); +add_to_list (head, dev, res, +0 /* dont care */ , +0 /* dont care */ ); } static void __dev_sort_resources(struct pci_dev *dev,
@@ -159,13 +163,16 @@ static void adjust_resources_sorted(struct resource_list_x *add_head, idx = res - &list->dev->resource[0 ]; add_size=list->add_size; -if (!resource_size (res) && add_size) { - res->end = res->start + add_size -1 ; -if (pci_assign_resource (list->dev, idx)) +if (!resource_size (res)) { + res->end = res->start + add_size -1 ; +if (pci_assign_resource (list->dev, idx))reset_resource (res); - }else if (add_size) { -adjust_resource (res, res->start, -resource_size (res) + add_size); + }else { +resource_size_t align = list->min_align; + res->flags |= list->flags & (IORESOURCE_STARTALIGN |IORESOURCE_SIZEALIGN ); +if (pci_reassign_resource (list->dev, idx, add_size, align)) +dev_printk (KERN_DEBUG , &list->dev->dev,"failed to add optional resources res=%pR\n" , + res); } out: tmp = list;
@@ -607,7 +614,7 @@ static void pbus_size_io(struct pci_bus *bus, resource_size_t min_size,if (children_add_size > add_size) add_size = children_add_size; size1 = (!add_head || (add_head && !add_size)) ? size0 : -calculate_iosize (size, min_size+add_size, size1, +calculate_iosize (size, min_size, add_size + size1,resource_size (b_res),4096 );if (!size0 && !size1) {if (b_res->start || b_res->end)
@@ -622,7 +629,7 @@ static void pbus_size_io(struct pci_bus *bus, resource_size_t min_size, b_res->end = b_res->start + size0 -1 ; b_res->flags |=IORESOURCE_STARTALIGN ;if (size1 > size0 && add_head) -add_to_list (add_head, bus->self, b_res, size1-size0); +add_to_list (add_head, bus->self, b_res, size1-size0,4096 ); }/**
@@ -711,7 +718,7 @@ static int pbus_size_mem(struct pci_bus *bus, unsigned long mask,if (children_add_size > add_size) add_size = children_add_size; size1 = (!add_head || (add_head && !add_size)) ? size0 : -calculate_memsize (size, min_size+add_size,0 , +calculate_memsize (size, min_size, add_size,resource_size (b_res), min_align);if (!size0 && !size1) {if (b_res->start || b_res->end)
@@ -725,7 +732,7 @@ static int pbus_size_mem(struct pci_bus *bus, unsigned long mask, b_res->end = size0 + min_align -1 ; b_res->flags |=IORESOURCE_STARTALIGN | mem64_mask;if (size1 > size0 && add_head) -add_to_list (add_head, bus->self, b_res, size1-size0); +add_to_list (add_head, bus->self, b_res, size1-size0, min_align);return 1 ; }
drivers/pci/setup-res.c +97 -58
192 lines not on this page · raw message
drivers/usb/serial/option.c +9 -0
@@ -157,6 +157,7 @@ static void option_instat_callback(struct urb *urb);#define NOVATELWIRELESS_PRODUCT_EVDO_EMBEDDED_HIGHSPEED 0x8001#define NOVATELWIRELESS_PRODUCT_HSPA_EMBEDDED_FULLSPEED 0x9000#define NOVATELWIRELESS_PRODUCT_HSPA_EMBEDDED_HIGHSPEED 0x9001 +#define NOVATELWIRELESS_PRODUCT_E362 0x9010#define NOVATELWIRELESS_PRODUCT_G1 0xA001#define NOVATELWIRELESS_PRODUCT_G1_M 0xA002#define NOVATELWIRELESS_PRODUCT_G2 0xA010
@@ -192,6 +193,9 @@ static void option_instat_callback(struct urb *urb);#define DELL_PRODUCT_5730_MINICARD_TELUS 0x8181#define DELL_PRODUCT_5730_MINICARD_VZW 0x8182 +#define DELL_PRODUCT_5800_MINICARD_VZW 0x8195/* Novatel E362 */ +#define DELL_PRODUCT_5800_V2_MINICARD_VZW 0x8196/* Novatel E362 */ +#define KYOCERA_VENDOR_ID 0x0c88#define KYOCERA_PRODUCT_KPC650 0x17da#define KYOCERA_PRODUCT_KPC680 0x180a
@@ -282,6 +286,7 @@ static void option_instat_callback(struct urb *urb);/* ALCATEL PRODUCTS */ #define ALCATEL_VENDOR_ID 0x1bbb#define ALCATEL_PRODUCT_X060S_X200 0x0000 +#define ALCATEL_PRODUCT_X220_X500D 0x0017#define PIRELLI_VENDOR_ID 0x1266#define PIRELLI_PRODUCT_C100_1 0x1002
@@ -705,6 +710,7 @@ static const struct usb_device_id option_ids[] = { { USB_DEVICE(NOVATELWIRELESS_VENDOR_ID, NOVATELWIRELESS_PRODUCT_G2) },/* Novatel Ovation MC551 a.k.a. Verizon USB551L */ { USB_DEVICE_AND_INTERFACE_INFO(NOVATELWIRELESS_VENDOR_ID, NOVATELWIRELESS_PRODUCT_MC551, 0xff, 0xff, 0xff) }, + { USB_DEVICE_AND_INTERFACE_INFO(NOVATELWIRELESS_VENDOR_ID, NOVATELWIRELESS_PRODUCT_E362, 0xff, 0xff, 0xff) }, { USB_DEVICE(AMOI_VENDOR_ID, AMOI_PRODUCT_H01) }, { USB_DEVICE(AMOI_VENDOR_ID, AMOI_PRODUCT_H01A) },
@@ -727,6 +733,8 @@ static const struct usb_device_id option_ids[] = { { USB_DEVICE(DELL_VENDOR_ID, DELL_PRODUCT_5730_MINICARD_SPRINT) }, /* Dell Wireless 5730 Mobile Broadband EVDO/HSPA Mini-Card */ { USB_DEVICE(DELL_VENDOR_ID, DELL_PRODUCT_5730_MINICARD_TELUS) }, /* Dell Wireless 5730 Mobile Broadband EVDO/HSPA Mini-Card */ { USB_DEVICE(DELL_VENDOR_ID, DELL_PRODUCT_5730_MINICARD_VZW) }, /* Dell Wireless 5730 Mobile Broadband EVDO/HSPA Mini-Card */ + { USB_DEVICE_AND_INTERFACE_INFO(DELL_VENDOR_ID, DELL_PRODUCT_5800_MINICARD_VZW, 0xff, 0xff, 0xff) }, + { USB_DEVICE_AND_INTERFACE_INFO(DELL_VENDOR_ID, DELL_PRODUCT_5800_V2_MINICARD_VZW, 0xff, 0xff, 0xff) }, { USB_DEVICE(ANYDATA_VENDOR_ID, ANYDATA_PRODUCT_ADU_E100A) }, /* ADU-E100, ADU-310 */ { USB_DEVICE(ANYDATA_VENDOR_ID, ANYDATA_PRODUCT_ADU_500A) }, { USB_DEVICE(ANYDATA_VENDOR_ID, ANYDATA_PRODUCT_ADU_620UW) },
@@ -1156,6 +1164,7 @@ static const struct usb_device_id option_ids[] = { { USB_DEVICE(ALCATEL_VENDOR_ID, ALCATEL_PRODUCT_X060S_X200), .driver_info = (kernel_ulong_t)&alcatel_x200_blacklist }, + { USB_DEVICE(ALCATEL_VENDOR_ID, ALCATEL_PRODUCT_X220_X500D) }, { USB_DEVICE(AIRPLUS_VENDOR_ID, AIRPLUS_PRODUCT_MCD650) }, { USB_DEVICE(TLAYTECH_VENDOR_ID, TLAYTECH_PRODUCT_TEU800) }, { USB_DEVICE(LONGCHEER_VENDOR_ID, FOUR_G_SYSTEMS_PRODUCT_W14),
drivers/usb/serial/usb-serial.c +3 -3
@@ -764,7 +764,7 @@ int usb_serial_probe(struct usb_interface *interface,if (retval) {dbg ("sub driver rejected device" ); -kfree (serial); +usb_serial_put (serial);module_put (type->driver.owner);return retval; }
@@ -836,7 +836,7 @@ int usb_serial_probe(struct usb_interface *interface,*/ if (num_bulk_in ==0 || num_bulk_out ==0 ) {dev_info (&interface->dev,"PL-2303 hack: descriptors matched but endpoints did not\n" ); -kfree (serial); +usb_serial_put (serial);module_put (type->driver.owner);return -ENODEV ; }
@@ -850,7 +850,7 @@ int usb_serial_probe(struct usb_interface *interface,if (num_ports ==0 ) {dev_err (&interface->dev,"Generic device with no bulk out, not allowed.\n" ); -kfree (serial); +usb_serial_put (serial);module_put (type->driver.owner);return -EIO ; }
fs/ecryptfs/main.c +22 -1
@@ -279,6 +279,7 @@ static int ecryptfs_parse_options(struct ecryptfs_sb_info *sbi, char *options,char *fnek_src;char *cipher_key_bytes_src;char *fn_cipher_key_bytes_src; +u8 cipher_code; *check_ruid =0 ;
@@ -420,6 +421,18 @@ static int ecryptfs_parse_options(struct ecryptfs_sb_info *sbi, char *options, && !fn_cipher_key_bytes_set) mount_crypt_stat->global_default_fn_cipher_key_bytes = mount_crypt_stat->global_default_cipher_key_size; + + cipher_code =ecryptfs_code_for_cipher_string ( + mount_crypt_stat->global_default_cipher_name, + mount_crypt_stat->global_default_cipher_key_size); +if (!cipher_code) { +ecryptfs_printk (KERN_ERR , +"eCryptfs doesn't support cipher: %s" , + mount_crypt_stat->global_default_cipher_name); + rc = -EINVAL ; + goto out; + } +mutex_lock (&key_tfm_list_mutex);if (!ecryptfs_tfm_exists (mount_crypt_stat->global_default_cipher_name,NULL )) {
@@ -505,7 +518,6 @@ static struct dentry *ecryptfs_mount(struct file_system_type *fs_type, int flags goto out; } - s->s_flags = flags; rc =bdi_setup_and_register (&sbi->bdi,"ecryptfs" ,BDI_CAP_MAP_COPY );if (rc) goto out1;
@@ -541,6 +553,15 @@ static struct dentry *ecryptfs_mount(struct file_system_type *fs_type, int flags }ecryptfs_set_superblock_lower (s, path.dentry->d_sb); + +/** +* Set the POSIX ACL flag based on whether they're enabled in the lower +* mount. Force a read-only eCryptfs mount if the lower mount is ro. +* Allow a ro eCryptfs mount even when the lower mount is rw. +*/ + s->s_flags = flags & ~MS_POSIXACL ; + s->s_flags |= path.dentry->d_sb->s_flags & (MS_RDONLY |MS_POSIXACL ); + s->s_maxbytes = path.dentry->d_sb->s_maxbytes; s->s_blocksize = path.dentry->d_sb->s_blocksize; s->s_magic =ECRYPTFS_SUPER_MAGIC ;
fs/nfs/nfs4proc.c +1 -2
@@ -300,8 +300,7 @@ static int nfs4_handle_exception(struct nfs_server *server, int errorcode, strucdprintk ("%s ERROR: %d Reset session\n" , __func__, errorcode);nfs4_schedule_session_recovery (clp->cl_session); - exception->retry =1 ; -break ; + goto wait_on_recovery;#endif /* defined(CONFIG_NFS_V4_1) */ case -NFS4ERR_FILE_OPEN :if (exception->timeout >HZ ) {
fs/notify/fanotify/fanotify.c +1 -0
@@ -21,6 +21,7 @@ static bool should_merge(struct fsnotify_event *old, struct fsnotify_event *new)if ((old->path.mnt == new->path.mnt) && (old->path.dentry == new->path.dentry))return true; +break ;case (FSNOTIFY_EVENT_NONE ):return true;default :
fs/reiserfs/inode.c +7 -3
@@ -1783,8 +1783,9 @@ int reiserfs_new_inode(struct reiserfs_transaction_handle *th,BUG_ON (!th->t_trans_id); -dquot_initialize (inode); +reiserfs_write_unlock (inode->i_sb); err =dquot_alloc_inode (inode); +reiserfs_write_lock (inode->i_sb);if (err) goto out_end_trans;if (!dir->i_nlink) {
@@ -1980,8 +1981,10 @@ int reiserfs_new_inode(struct reiserfs_transaction_handle *th, out_end_trans:journal_end (th, th->t_super, th->t_blocks_allocated); +reiserfs_write_unlock (inode->i_sb);/* Drop can be outside and it needs more credits so it's better to have it outside */ dquot_drop (inode); +reiserfs_write_lock (inode->i_sb); inode->i_flags |=S_NOQUOTA ;make_bad_inode (inode);
@@ -3105,10 +3108,9 @@ int reiserfs_setattr(struct dentry *dentry, struct iattr *attr)/* must be turned off for recursive notify_change calls */ ia_valid = attr->ia_valid &= ~(ATTR_KILL_SUID |ATTR_KILL_SGID ); - depth =reiserfs_write_lock_once (inode->i_sb);if (is_quota_modification (inode, attr))dquot_initialize (inode); - + depth =reiserfs_write_lock_once (inode->i_sb);if (attr->ia_valid &ATTR_SIZE ) {/* version 2 items will be caught by the s_maxbytes check ** done for us in vmtruncate
@@ -3169,7 +3171,9 @@ int reiserfs_setattr(struct dentry *dentry, struct iattr *attr) error =journal_begin (&th, inode->i_sb, jbegin_count);if (error) goto out; +reiserfs_write_unlock_once (inode->i_sb, depth); error =dquot_transfer (inode, attr); + depth =reiserfs_write_lock_once (inode->i_sb);if (error) {journal_end (&th, inode->i_sb, jbegin_count); goto out;
fs/reiserfs/stree.c +4 -0
@@ -1968,7 +1968,9 @@ int reiserfs_paste_into_item(struct reiserfs_transaction_handle *th, struct tree key2type(&(key->on_disk_key)));#endif +reiserfs_write_unlock (inode->i_sb); retval =dquot_alloc_space_nodirty (inode, pasted_size); +reiserfs_write_lock (inode->i_sb);if (retval) {pathrelse (search_path);return retval;
@@ -2061,9 +2063,11 @@ int reiserfs_insert_item(struct reiserfs_transaction_handle *th,"reiserquota insert_item(): allocating %u id=%u type=%c" , quota_bytes, inode->i_uid, head2type(ih));#endif +reiserfs_write_unlock (inode->i_sb);/* We can't dirty inode here. It would be immediately written but * appropriate stat item isn't inserted yet... */ retval =dquot_alloc_space_nodirty (inode, quota_bytes); +reiserfs_write_lock (inode->i_sb);if (retval) {pathrelse (path);return retval;
fs/reiserfs/super.c +46 -14
206 lines not on this page · raw message
fs/ubifs/find.c +10 -2
@@ -681,8 +681,16 @@ int ubifs_find_free_leb_for_idx(struct ubifs_info *c)if (!lprops) { lprops =ubifs_fast_find_freeable (c);if (!lprops) { -ubifs_assert (c->freeable_cnt ==0 ); -if (c->lst.empty_lebs - c->lst.taken_empty_lebs >0 ) { +/* +* The first condition means the following: go scan the +* LPT if there are uncategorized lprops, which means +* there may be freeable LEBs there (UBIFS does not +* store the information about freeable LEBs in the +* master node). +*/ +if (c->in_a_category_cnt != c->main_lebs || + c->lst.empty_lebs - c->lst.taken_empty_lebs >0 ) { +ubifs_assert (c->freeable_cnt ==0 ); lprops =scan_for_leb_for_idx (c);if (IS_ERR (lprops)) { err =PTR_ERR (lprops);
fs/ubifs/lprops.c +6 -0
@@ -300,8 +300,11 @@ void ubifs_add_to_cat(struct ubifs_info *c, struct ubifs_lprops *lprops,default :ubifs_assert (0 ); } + lprops->flags &= ~LPROPS_CAT_MASK ; lprops->flags |= cat; + c->in_a_category_cnt +=1 ; +ubifs_assert (c->in_a_category_cnt <= c->main_lebs); }/**
@@ -334,6 +337,9 @@ static void ubifs_remove_from_cat(struct ubifs_info *c,default :ubifs_assert (0 ); } + + c->in_a_category_cnt -=1 ; +ubifs_assert (c->in_a_category_cnt >=0 ); }/**
fs/ubifs/ubifs.h +3 -0
@@ -1187,6 +1187,8 @@ struct ubifs_debug_info;* @freeable_list: list of freeable non-index LEBs (free + dirty == @leb_size) * @frdi_idx_list: list of freeable index LEBs (free + dirty == @leb_size) * @freeable_cnt: number of freeable LEBs in @freeable_list +* @in_a_category_cnt: count of lprops which are in a certain category, which +* basically meants that they were loaded from the flash * * @ltab_lnum: LEB number of LPT's own lprops table * @ltab_offs: offset of LPT's own lprops table
@@ -1416,6 +1418,7 @@ struct ubifs_info {struct list_head freeable_list;struct list_head frdi_idx_list;int freeable_cnt; +int in_a_category_cnt;int ltab_lnum;int ltab_offs;
include/linux/pci.h +1 -0
@@ -800,6 +800,7 @@ int __pci_reset_function(struct pci_dev *dev);int pci_reset_function (struct pci_dev *dev);void pci_update_resource (struct pci_dev *dev,int resno);int __must_check pci_assign_resource (struct pci_dev *dev,int i); +int __must_check pci_reassign_resource (struct pci_dev *dev,int i,resource_size_t add_size,resource_size_t align);int pci_select_bars (struct pci_dev *dev,unsigned long flags);/* ROM control related routines */
kernel/resource.c +6 -1
@@ -419,6 +419,9 @@ static int __find_resource(struct resource *root, struct resource *old,else tmp.end = root->end; +if (tmp.end < tmp.start) + goto next; +resource_clip (&tmp, constraint->min, constraint->max);arch_remove_reservations (&tmp);
@@ -436,8 +439,10 @@ static int __find_resource(struct resource *root, struct resource *old,return 0 ; } } -if (!this) + +next:if (!this || this->end == root->end)break ; +if (this != old) tmp.start = this->end +1 ; this = this->sibling;
mm/vmscan.c +2 -0
@@ -2977,6 +2977,8 @@ static int kswapd(void *p) &balanced_classzone_idx); } } + + current->reclaim_state =NULL ;return 0 ; }
net/core/dev.c +3 -1
@@ -2706,8 +2706,10 @@ static int get_rps_cpu(struct net_device *dev, struct sk_buff *skb,if (unlikely (tcpu != next_cpu) && (tcpu ==RPS_NO_CPU || !cpu_online (tcpu) || ((int )(per_cpu (softnet_data, tcpu).input_queue_head - - rflow->last_qtail)) >=0 )) + rflow->last_qtail)) >=0 )) { + tcpu = next_cpu; rflow =set_rps_cpu (dev, skb, rflow, next_cpu); + }if (tcpu !=RPS_NO_CPU &&cpu_online (tcpu)) { *rflowp = rflow;
net/core/dev_addr_lists.c +2 -1
@@ -307,7 +307,8 @@ int dev_addr_del(struct net_device *dev, unsigned char *addr,*/ ha =list_first_entry (&dev->dev_addrs.list, struct netdev_hw_addr, list); -if (ha->addr == dev->dev_addr && ha->refcount ==1 ) +if (!memcmp (ha->addr, addr, dev->addr_len) && + ha->type == addr_type && ha->refcount ==1 )return -ENOENT ; err = __hw_addr_del(&dev->dev_addrs, addr, dev->addr_len,
net/ipv4/ip_sockglue.c +21 -12
@@ -467,18 +467,27 @@ static int do_ip_setsockopt(struct sock *sk, int level,struct inet_sock *inet =inet_sk (sk);int val =0 , err; -if (((1 <<optname) & ((1 <<IP_PKTINFO ) | (1 <<IP_RECVTTL ) | - (1 <<IP_RECVOPTS ) | (1 <<IP_RECVTOS ) | - (1 <<IP_RETOPTS ) | (1 <<IP_TOS ) | - (1 <<IP_TTL ) | (1 <<IP_HDRINCL ) | - (1 <<IP_MTU_DISCOVER ) | (1 <<IP_RECVERR ) | - (1 <<IP_ROUTER_ALERT ) | (1 <<IP_FREEBIND ) | - (1 <<IP_PASSSEC ) | (1 <<IP_TRANSPARENT ) | - (1 <<IP_MINTTL ) | (1 <<IP_NODEFRAG ))) || - optname ==IP_MULTICAST_TTL || - optname ==IP_MULTICAST_ALL || - optname ==IP_MULTICAST_LOOP || - optname ==IP_RECVORIGDSTADDR ) { +switch (optname) { +case IP_PKTINFO : +case IP_RECVTTL : +case IP_RECVOPTS : +case IP_RECVTOS : +case IP_RETOPTS : +case IP_TOS : +case IP_TTL : +case IP_HDRINCL : +case IP_MTU_DISCOVER : +case IP_RECVERR : +case IP_ROUTER_ALERT : +case IP_FREEBIND : +case IP_PASSSEC : +case IP_TRANSPARENT : +case IP_MINTTL : +case IP_NODEFRAG : +case IP_MULTICAST_TTL : +case IP_MULTICAST_ALL : +case IP_MULTICAST_LOOP : +case IP_RECVORIGDSTADDR :if (optlen >=sizeof (int )) {if (get_user (val, (int __user *) optval))return -EFAULT ;
net/ipv4/netfilter/nf_nat_standalone.c +4 -2
@@ -194,7 +194,8 @@ nf_nat_out(unsigned int hooknum,if ((ct->tuplehash[dir].tuple.src.u3.ip != ct->tuplehash[!dir].tuple.dst.u3.ip) || - (ct->tuplehash[dir].tuple.src.u.all != + (ct->tuplehash[dir].tuple.dst.protonum !=IPPROTO_ICMP && + ct->tuplehash[dir].tuple.src.u.all != ct->tuplehash[!dir].tuple.dst.u.all) )return ip_xfrm_me_harder (skb) ==0 ? ret :NF_DROP ;
@@ -230,7 +231,8 @@ nf_nat_local_fn(unsigned int hooknum, ret =NF_DROP ; }#ifdef CONFIG_XFRM - else if (ct->tuplehash[dir].tuple.dst.u.all != + else if (ct->tuplehash[dir].tuple.dst.protonum != IPPROTO_ICMP && + ct->tuplehash[dir].tuple.dst.u.all != ct->tuplehash[!dir].tuple.src.u.all) if (ip_xfrm_me_harder(skb)) ret =NF_DROP ;
net/ipv6/ipv6_sockglue.c +1 -0
@@ -798,6 +798,7 @@ pref_skip_coa:if (val <0 || val >255 ) goto e_inval; np->min_hopcount = val; + retv =0 ;break ;case IPV6_DONTFRAG : np->dontfrag = valbool;
net/netfilter/nf_conntrack_proto_tcp.c +10 -19
@@ -159,21 +159,18 @@ static const u8 tcp_conntracks[2][6][TCP_CONNTRACK_MAX] = {* sCL -> sSS */ /* sNO, sSS, sSR, sES, sFW, sCW, sLA, sTW, sCL, sS2 */ -/*synack*/ { sIV, sIV, sIG, sIG, sIG, sIG, sIG, sIG, sIG, sSR }, +/*synack*/ { sIV, sIV, sSR, sIV, sIV, sIV, sIV, sIV, sIV, sSR },/* * sNO -> sIV Too late and no reason to do anything * sSS -> sIV Client can't send SYN and then SYN/ACK * sS2 -> sSR SYN/ACK sent to SYN2 in simultaneous open -* sSR -> sIG -* sES -> sIG Error: SYNs in window outside the SYN_SENT state -* are errors. Receiver will reply with RST -* and close the connection. -* Or we are not in sync and hold a dead connection. -* sFW -> sIG -* sCW -> sIG -* sLA -> sIG -* sTW -> sIG -* sCL -> sIG +* sSR -> sSR Late retransmitted SYN/ACK in simultaneous open +* sES -> sIV Invalid SYN/ACK packets sent by the client +* sFW -> sIV +* sCW -> sIV +* sLA -> sIV +* sTW -> sIV +* sCL -> sIV */ /* sNO, sSS, sSR, sES, sFW, sCW, sLA, sTW, sCL, sS2 */ /*fin*/ { sIV, sIV, sFW, sFW, sLA, sLA, sLA, sTW, sCL, sIV },
@@ -628,15 +625,9 @@ static bool tcp_in_window(const struct nf_conn *ct, ack = sack = receiver->td_end; } -if (seq == end - && (!tcph->rst - || (seq ==0 && state->state ==TCP_CONNTRACK_SYN_SENT ))) +if (tcph->rst && seq ==0 && state->state ==TCP_CONNTRACK_SYN_SENT )/* -* Packets contains no data: we assume it is valid -* and check the ack value only. -* However RST segments are always validated by their -* SEQ number, except when seq == 0 (reset sent answering -* SYN. +* RST sent answering SYN. */ seq = end = sender->td_end;
net/wireless/reg.c +2 -3
@@ -125,9 +125,8 @@ static const struct ieee80211_regdomain world_regdom = { .reg_rules = {/* IEEE 802.11b/g, channels 1..11 */ REG_RULE (2412 -10 ,2462 +10 ,40 ,6 ,20 ,0 ), -/* IEEE 802.11b/g, channels 12..13. No HT40 -* channel fits here. */ -REG_RULE (2467 -10 ,2472 +10 ,20 ,6 ,20 , +/* IEEE 802.11b/g, channels 12..13. */ +REG_RULE (2467 -10 ,2472 +10 ,40 ,6 ,20 ,NL80211_RRF_PASSIVE_SCAN | NL80211_RRF_NO_IBSS),/* IEEE 802.11 channel 14 - Only JP enables
scripts/Kbuild.include +6 -6
@@ -94,24 +94,24 @@ try-run = $(shell set -e; \ # Usage: cflags-y += $(call as-option,-Wa$(comma)-isa=foo,) as-option = $(call try-run,\ - $(CC) $(KBUILD_CFLAGS) $(1) -c -xassembler /dev/null -o "$$TMP",$(1),$(2)) + $(CC) $(KBUILD_CFLAGS) $(1) -c -x assembler /dev/null -o "$$TMP",$(1),$(2)) # as-instr # Usage: cflags-y += $(call as-instr,instr,option1,option2) as-instr = $(call try-run,\ - /bin/echo -e "$(1)" | $(CC) $(KBUILD_AFLAGS) -c -xassembler -o "$$TMP" -,$(2),$(3)) + /bin/echo -e "$(1)" | $(CC) $(KBUILD_AFLAGS) -c -x assembler -o "$$TMP" -,$(2),$(3)) # cc-option # Usage: cflags-y += $(call cc-option,-march=winchip-c6,-march=i586) cc-option = $(call try-run,\ - $(CC) $(KBUILD_CPPFLAGS) $(KBUILD_CFLAGS) $(1) -c -xc /dev/null -o "$$TMP",$(1),$(2)) + $(CC) $(KBUILD_CPPFLAGS) $(KBUILD_CFLAGS) $(1) -c -x c /dev/null -o "$$TMP",$(1),$(2)) # cc-option-yn # Usage: flag := $(call cc-option-yn,-march=winchip-c6) cc-option-yn = $(call try-run,\ - $(CC) $(KBUILD_CPPFLAGS) $(KBUILD_CFLAGS) $(1) -c -xc /dev/null -o "$$TMP",y,n) + $(CC) $(KBUILD_CPPFLAGS) $(KBUILD_CFLAGS) $(1) -c -x c /dev/null -o "$$TMP",y,n) # cc-option-align # Prefix align with either -falign or -malign
@@ -121,7 +121,7 @@ cc-option-align = $(subst -functions=0,,\ # cc-disable-warning # Usage: cflags-y += $(call cc-disable-warning,unused-but-set-variable) cc-disable-warning = $(call try-run,\ - $(CC) $(KBUILD_CPPFLAGS) $(KBUILD_CFLAGS) -W$(strip $(1)) -c -xc /dev/null -o "$$TMP",-Wno-$(strip $(1))) + $(CC) $(KBUILD_CPPFLAGS) $(KBUILD_CFLAGS) -W$(strip $(1)) -c -x c /dev/null -o "$$TMP",-Wno-$(strip $(1))) # cc-version # Usage gcc-ver := $(call cc-version)
@@ -139,7 +139,7 @@ cc-ifversion = $(shell [ $(call cc-version, $(CC)) $(1) $(2) ] && echo $(3)) # cc-ldoption # Usage: ldflags += $(call cc-ldoption, -Wl$(comma)--hash-style=both) cc-ldoption = $(call try-run,\ - $(CC) $(1) -nostdlib -xc /dev/null -o "$$TMP",$(1),$(2)) + $(CC) $(1) -nostdlib -x c /dev/null -o "$$TMP",$(1),$(2)) # ld-option # Usage: LDFLAGS += $(call ld-option, -X)
scripts/gcc-version.sh +3 -3
@@ -22,10 +22,10 @@ if [ ${#compiler} -eq 0 ]; then exit 1 fi -MAJOR=$(echo __GNUC__ | $compiler -E -xc - | tail -n 1) -MINOR=$(echo __GNUC_MINOR__ | $compiler -E -xc - | tail -n 1) +MAJOR=$(echo __GNUC__ | $compiler -E -x c - | tail -n 1) +MINOR=$(echo __GNUC_MINOR__ | $compiler -E -x c - | tail -n 1) if [ "x$with_patchlevel" != "x" ] ; then - PATCHLEVEL=$(echo __GNUC_PATCHLEVEL__ | $compiler -E -xc - | tail -n 1) + PATCHLEVEL=$(echo __GNUC_PATCHLEVEL__ | $compiler -E -x c - | tail -n 1) printf "%02d%02d%02d\\n" $MAJOR $MINOR $PATCHLEVEL else printf "%02d%02d\\n" $MAJOR $MINOR
scripts/gcc-x86_32-has-stack-protector.sh +1 -1
@@ -1,6 +1,6 @@ #!/bin/sh -echo "int foo(void) { char X[200]; return 3; }" | $* -S -xc -c -O0 -fstack-protector - -o - 2> /dev/null | grep -q "%gs" +echo "int foo(void) { char X[200]; return 3; }" | $* -S -x c -c -O0 -fstack-protector - -o - 2> /dev/null | grep -q "%gs" if [ "$?" -eq "0" ] ; then echo y else
scripts/gcc-x86_64-has-stack-protector.sh +1 -1
@@ -1,6 +1,6 @@ #!/bin/sh -echo "int foo(void) { char X[200]; return 3; }" | $* -S -xc -c -O0 -mcmodel=kernel -fstack-protector - -o - 2> /dev/null | grep -q "%gs" +echo "int foo(void) { char X[200]; return 3; }" | $* -S -x c -c -O0 -mcmodel=kernel -fstack-protector - -o - 2> /dev/null | grep -q "%gs" if [ "$?" -eq "0" ] ; then echo y else
scripts/kconfig/check.sh +1 -1
@@ -1,6 +1,6 @@ #!/bin/sh # Needed for systems without gettext -$* -xc -o /dev/null - > /dev/null 2>&1 << EOF +$* -x c -o /dev/null - > /dev/null 2>&1 << EOF #include <libintl.h> int main() {
scripts/kconfig/lxdialog/check-lxdialog.sh +1 -1
@@ -38,7 +38,7 @@ trap "rm -f $tmp" 0 1 2 3 15 # Check if we can link to ncurses check() { - $cc -xc - -o $tmp 2>/dev/null <<'EOF' + $cc -x c - -o $tmp 2>/dev/null <<'EOF' #include CURSES_LOC main() {} EOF
security/selinux/netnode.c +2 -1
@@ -190,7 +190,8 @@ static void sel_netnode_insert(struct sel_netnode *node)if (sel_netnode_hash[idx].size ==SEL_NETNODE_HASH_BKT_LIMIT ) {struct sel_netnode *tail; tail =list_entry ( -rcu_dereference (sel_netnode_hash[idx].list.prev), +rcu_dereference_protected (sel_netnode_hash[idx].list.prev, +lockdep_is_held (&sel_netnode_lock)), struct sel_netnode, list);list_del_rcu (&tail->list);call_rcu (&tail->rcu, sel_netnode_free);
sound/pci/hda/patch_analog.c +1 -0
@@ -465,6 +465,7 @@ static int ad198x_build_pcms(struct hda_codec *codec)if (spec->multiout.dig_out_nid) { info++; codec->num_pcms++; + codec->spdif_status_reset =1 ; info->name ="AD198x Digital" ; info->pcm_type =HDA_PCM_TYPE_SPDIF ; info->stream[SNDRV_PCM_STREAM_PLAYBACK ] = ad198x_pcm_digital_playback;
sound/pci/hda/patch_cirrus.c +1 -1
@@ -991,7 +991,7 @@ static const struct hda_verb cs_coef_init_verbs[] = { | 0x0400 /* Disable Coefficient Auto increment */ )},/* Beep */ - {0x11, AC_VERB_SET_COEF_INDEX, IDX_DAC_CFG}, + {0x11, AC_VERB_SET_COEF_INDEX, IDX_BEEP_CFG}, {0x11, AC_VERB_SET_PROC_COEF, 0x0007}, /* Enable Beep thru DAC1/2/3 */ {} /* terminator */
sound/soc/codecs/wm8978.c +1 -1
@@ -750,7 +750,7 @@ static int wm8978_hw_params(struct snd_pcm_substream *substream, wm8978->mclk_idx =-1 ; f_sel = wm8978->f_mclk; }else { -if (!wm8978->f_pllout) { +if (!wm8978->f_opclk) {/* We only enter here, if OPCLK is not used */ int ret =wm8978_configure_pll (codec);if (ret <0 )
sound/soc/soc-dapm.c +1 -1
@@ -2634,7 +2634,7 @@ void snd_soc_dapm_shutdown(struct snd_soc_card *card) {struct snd_soc_codec *codec; -list_for_each_entry (codec, &card->codec_dev_list, list) { +list_for_each_entry (codec, &card->codec_dev_list, card_list) {soc_dapm_shutdown_codec (&codec->dapm);if (codec->dapm.bias_level ==SND_SOC_BIAS_STANDBY ) snd_soc_dapm_set_bias_level(&codec->dapm,
tools/perf/Makefile +1 -1
@@ -54,7 +54,7 @@ ifeq ($(ARCH),x86_64) ARCH := x86 IS_X86_64 := 0 ifeq (, $(findstring m32,$(EXTRA_CFLAGS))) - IS_X86_64 := $(shell echo __x86_64__ | ${CC} -E -xc - | tail -n 1) + IS_X86_64 := $(shell echo __x86_64__ | ${CC} -E -x c - | tail -n 1) endif ifeq (${IS_X86_64}, 1) RAW_ARCH := x86_64