Linux 3.0.22
Greg KH
maintainerI'm announcing the release of the 3.0.22 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/x86/pci/xen.c | 2 crypto/sha512_generic.c | 83 +++++++++++++------------------ drivers/gpio/pca953x.c | 6 +- drivers/gpu/drm/i915/intel_lvds.c | 8 ++ drivers/hwmon/f75375s.c | 4 - include/linux/bitops.h | 20 +++++++ include/linux/proportions.h | 4 + include/trace/events/writeback.h | 5 + kernel/relay.c | 10 ++- mm/slub.c | 6 ++ net/mac80211/rx.c | 2 sound/pci/intel8x0.c | 6 ++ tools/perf/bench/mem-memcpy-x86-64-asm.S | 6 ++ tools/perf/util/evsel.c | 1 15 files changed, 108 insertions(+), 57 deletions(-)
Alexey Dobriyan (1):
crypto: sha512 - use standard ror64()
Dan Carpenter (1):
relay: prevent integer overflow in relay_open()
Daniel T Chen (1):
ALSA: intel8x0: Fix default inaudible sound on Gateway M520
Daniel Vetter (1):
drm/i915: no lvds quirk for AOpen MP45
David Jander (1):
gpio/pca953x: Fix warning of enabled interrupts in handler
Eliad Peller (1):
mac80211: timeout a single frame in the rx reorder buffer
Eric Dumazet (1):
slub: fix a possible memleak in __slab_alloc()
Greg Kroah-Hartman (1):
Linux 3.0.22
Herbert Xu (2):
crypto: sha512 - Use binary and instead of modulus
crypto: sha512 - Avoid stack bloat on i386
Jiri Olsa (1):
perf tools: Fix perf stack to non executable on x86_64
Naveen N. Rao (1):
perf evsel: Fix an issue where perf report fails to show the proper percentage
Nikolaus Schulz (2):
hwmon: (f75375s) Fix bit shifting in f75375_write16
hwmon: (f75375s) Fix automatic pwm mode setting for F75373 & F75375Stefano Stabellini (1):
xen pvhvm: do not remap pirqs onto evtchns if !xen_have_vector_callback
Wu Fengguang (2):
lib: proportion: lower PROP_MAX_SHIFT to 32 on 64-bit kernel
writeback: fix dereferencing NULL bdi->dev on trace_writeback_queue
Greg KH
maintainerMakefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 0 -SUBLEVEL = 21 +SUBLEVEL = 22 EXTRAVERSION = NAME = Sneaky Weasel
arch/x86/pci/xen.c +1 -1
@@ -308,7 +308,7 @@ int __init pci_xen_init(void)int __init pci_xen_hvm_init (void ) { -if (!xen_feature (XENFEAT_hvm_pirqs)) +if (!xen_have_vector_callback || !xen_feature (XENFEAT_hvm_pirqs))return 0 ;#ifdef CONFIG_ACPI
crypto/sha512_generic.c +37 -46
111 lines not on this page · raw message
drivers/gpio/pca953x.c +3 -3
@@ -437,7 +437,7 @@ static irqreturn_t pca953x_irq_handler(int irq, void *devid)do { level =__ffs (pending); -generic_handle_irq (level + chip->irq_base); +handle_nested_irq (level + chip->irq_base); pending &= ~(1 << level); }while (pending);
@@ -481,8 +481,8 @@ static int pca953x_irq_setup(struct pca953x_chip *chip,int irq = lvl + chip->irq_base;irq_set_chip_data (irq, chip); -irq_set_chip_and_handler (irq, &pca953x_irq_chip, - handle_simple_irq); +irq_set_chip (irq, &pca953x_irq_chip); +irq_set_nested_thread (irq, true);#ifdef CONFIG_ARM set_irq_flags (irq,IRQF_VALID );#else
drivers/gpu/drm/i915/intel_lvds.c +8 -0
@@ -714,6 +714,14 @@ static const struct dmi_system_id intel_no_lvds[] = { }, { .callback = intel_no_lvds_dmi_callback, + .ident = "AOpen i45GMx-I", + .matches = { +DMI_MATCH (DMI_BOARD_VENDOR ,"AOpen" ), + DMI_MATCH(DMI_BOARD_NAME, "i45GMx-I"), + }, + }, + { + .callback = intel_no_lvds_dmi_callback, .ident = "Aopen i945GTt-VFA", .matches = { DMI_MATCH(DMI_PRODUCT_VERSION, "AO00001JW"),
drivers/hwmon/f75375s.c +2 -2
@@ -159,7 +159,7 @@ static inline void f75375_write8(struct i2c_client *client, u8 reg,static inline void f75375_write16 (struct i2c_client *client,u8 reg,u16 value) { -int err =i2c_smbus_write_byte_data (client, reg, (value <<8 )); +int err =i2c_smbus_write_byte_data (client, reg, (value >>8 ));if (err)return ;i2c_smbus_write_byte_data (client, reg +1 , (value &0xFF ));
@@ -311,7 +311,7 @@ static int set_pwm_enable_direct(struct i2c_client *client, int nr, int val) fanmode |= (3 <<FAN_CTRL_MODE (nr));break ;case 2 :/* AUTOMATIC*/ - fanmode |= (2 <<FAN_CTRL_MODE (nr)); + fanmode |= (1 <<FAN_CTRL_MODE (nr));break ;case 3 :/* fan speed */ break ;
include/linux/bitops.h +20 -0
@@ -50,6 +50,26 @@ static inline unsigned long hweight_long(unsigned long w) }/** +* rol64 - rotate a 64-bit value left +* @word: value to rotate +* @shift: bits to roll +*/ +static inline __u64 rol64 (__u64 word,unsigned int shift) +{ +return (word << shift) | (word >> (64 - shift)); +} + +/** +* ror64 - rotate a 64-bit value right +* @word: value to rotate +* @shift: bits to roll +*/ +static inline __u64 ror64 (__u64 word,unsigned int shift) +{ +return (word >> shift) | (word << (64 - shift)); +} + +/** * rol32 - rotate a 32-bit value left * @word: value to rotate * @shift: bits to roll
include/linux/proportions.h +4 -0
@@ -81,7 +81,11 @@ void prop_inc_percpu(struct prop_descriptor *pd, struct prop_local_percpu *pl)* Limit the time part in order to ensure there are some bits left for the * cycle counter and fraction multiply. */ +#if BITS_PER_LONG ==32 #define PROP_MAX_SHIFT (3*BITS_PER_LONG/4) +#else +#define PROP_MAX_SHIFT (BITS_PER_LONG/2) +#endif #define PROP_FRAC_SHIFT (BITS_PER_LONG - PROP_MAX_SHIFT - 1)#define PROP_FRAC_BASE (1UL << PROP_FRAC_SHIFT)
include/trace/events/writeback.h +4 -1
@@ -23,7 +23,10 @@ DECLARE_EVENT_CLASS(writeback_work_class,__field (int, for_background) ),TP_fast_assign ( - strncpy(__entry->name, dev_name(bdi->dev), 32); + struct device *dev = bdi->dev; +if (!dev) + dev = default_backing_dev_info.dev; +strncpy (__entry->name,dev_name (dev),32 ); __entry->nr_pages = work->nr_pages; __entry->sb_dev = work->sb ? work->sb->s_dev :0 ; __entry->sync_mode = work->sync_mode;
kernel/relay.c +8 -2
@@ -164,10 +164,14 @@ depopulate:*/ static struct rchan_buf *relay_create_buf (struct rchan *chan) { -struct rchan_buf *buf =kzalloc (sizeof (struct rchan_buf ),GFP_KERNEL ); -if (!buf) +struct rchan_buf *buf; + +if (chan->n_subbufs >UINT_MAX /sizeof (size_t *))return NULL ; + buf =kzalloc (sizeof (struct rchan_buf ),GFP_KERNEL ); +if (!buf) +return NULL ; buf->padding =kmalloc (chan->n_subbufs *sizeof (size_t *),GFP_KERNEL );if (!buf->padding) goto free_buf;
@@ -574,6 +578,8 @@ struct rchan *relay_open(const char *base_filename,if (!(subbuf_size && n_subbufs))return NULL ; +if (subbuf_size >UINT_MAX / n_subbufs) +return NULL ; chan =kzalloc (sizeof (struct rchan ),GFP_KERNEL );if (!chan)
mm/slub.c +6 -0
@@ -1818,6 +1818,11 @@ static void *__slab_alloc(struct kmem_cache *s, gfp_t gfpflags, int node,if (unlikely (!node_match (c, node))) goto another_slab; +/* must check again c->freelist in case of cpu migration or IRQ */ + object = c->freelist; +if (object) + goto update_freelist; +stat (s,ALLOC_REFILL ); load_freelist:
@@ -1827,6 +1832,7 @@ load_freelist:if (kmem_cache_debug (s)) goto debug; +update_freelist: c->freelist =get_freepointer (s, object); page->inuse = page->objects; page->freelist =NULL ;
net/mac80211/rx.c +1 -1
@@ -610,7 +610,7 @@ static void ieee80211_sta_reorder_release(struct ieee80211_hw *hw, index =seq_sub (tid_agg_rx->head_seq_num, tid_agg_rx->ssn) % tid_agg_rx->buf_size;if (!tid_agg_rx->reorder_buf[index] && - tid_agg_rx->stored_mpdu_num >1 ) { + tid_agg_rx->stored_mpdu_num) {/* * No buffers ready to be released, but check whether any * frames in the reorder buffer have timed out.
sound/pci/intel8x0.c +6 -0
@@ -2076,6 +2076,12 @@ static struct ac97_quirk ac97_quirks[] __devinitdata = { }, { .subvendor = 0x161f, + .subdevice = 0x202f, + .name = "Gateway M520", + .type =AC97_TUNE_INV_EAPD + }, + { + .subvendor = 0x161f, .subdevice = 0x203a, .name ="Gateway 4525GZ" ,/* AD1981B */ .type = AC97_TUNE_INV_EAPD
tools/perf/bench/mem-memcpy-x86-64-asm.S +6 -0
@@ -1,2 +1,8 @@ #include "../../../arch/x86/lib/memcpy_64.S" +/* + * We need to provide note.GNU-stack section, saying that we want + * NOT executable stack. Otherwise the final linking will assume that + * the ELF stack should not be restricted at all and set it RWX. + */ +.section .note.GNU-stack,"",@progbits
tools/perf/util/evsel.c +1 -0
@@ -348,6 +348,7 @@ int perf_event__parse_sample(const union perf_event *event, u64 type, data->cpu = data->pid = data->tid =-1 ; data->stream_id = data->id = data->time =-1ULL ; + data->period =1 ;if (event->header.type !=PERF_RECORD_SAMPLE ) {if (!sample_id_all)