<feed xmlns='http://www.w3.org/2005/Atom'>
<title>snowball/igloo-kernel.git/include/linux, branch security</title>
<subtitle>Igloo kernel</subtitle>
<id>https://git.etezian.org/cgit.cgi/snowball/igloo-kernel.git/atom?h=security</id>
<link rel='self' href='https://git.etezian.org/cgit.cgi/snowball/igloo-kernel.git/atom?h=security'/>
<link rel='alternate' type='text/html' href='https://git.etezian.org/cgit.cgi/snowball/igloo-kernel.git/'/>
<updated>2012-05-22T09:04:39+00:00</updated>
<entry>
<title>ux500: Tee: Use hwmem for memrefs</title>
<updated>2012-05-22T09:04:39+00:00</updated>
<author>
<name>Joakim Bech</name>
<email>joakim.xx.bech@stericsson.com</email>
</author>
<published>2011-12-02T14:37:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.etezian.org/cgit.cgi/snowball/igloo-kernel.git/commit/?id=63cbfc54c34637e71604db1bad3288eeadf5338c'/>
<id>urn:sha1:63cbfc54c34637e71604db1bad3288eeadf5338c</id>
<content type='text'>
- Instead of kmalloc, hwmem is used when copying memrefs from user space
  to kernel space.
- Fix for a invalid free when calls to secure world fails.
- Remove free to memrefs etc in tee_release since they should be handled
  completely in tee_write.

ST-Ericsson ID: 375595
ST-Ericsson FOSS-OUT ID: NA
ST-Ericsson Linux next: NA

Depends-On: I2067c34223ce49515c6b7ee8fcc4dcecb9119300

Change-Id: Ibab9edd618d3efe6d6d6302cbb9fb4bde987b99a
Signed-off-by: Joakim Bech &lt;joakim.xx.bech@stericsson.com&gt;
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/42167
Reviewed-by: QATOOLS
Reviewed-by: Jonas ABERG &lt;jonas.aberg@stericsson.com&gt;
Reviewed-by: Berne HEBARK &lt;berne.hebark@stericsson.com&gt;
</content>
</entry>
<entry>
<title>ux500: security: update</title>
<updated>2012-05-22T09:04:37+00:00</updated>
<author>
<name>Philippe Langlais</name>
<email>philippe.langlais@linaro.org</email>
</author>
<published>2011-10-16T09:03:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.etezian.org/cgit.cgi/snowball/igloo-kernel.git/commit/?id=974980454bf6f12b14f8431e05713cea53444278'/>
<id>urn:sha1:974980454bf6f12b14f8431e05713cea53444278</id>
<content type='text'>
commit 1d3e28fa4e85d54434614575f37a4171e32dfe0c
Author: Mian Yousaf Kaukab &lt;mian.yousaf.kaukab@stericsson.com&gt;
Date:   Tue Aug 23 12:28:26 2011 +0200

    [Android]: pm: usecase: limit cpu frequency to 400MHz during voice-call

    ST Ericsson ID: 357594

commit 70f52392190a111758836d5fca7fb533ad8b4453
Author: Rickard Andersson &lt;rickard.andersson@stericsson.com&gt;
Date:   Tue Aug 23 11:05:58 2011 +0200

    ux500: cpuidle: Correct PRCMU error messages

    Show correct error messages when PRCMU requested
    sleep fails.

    ST-Ericsson ID: -

commit 912e987c1e46815c8cf128bce3d7077d3b05e7d6
Author: Rickard Andersson &lt;rickard.andersson@stericsson.com&gt;
Date:   Tue Aug 23 11:00:01 2011 +0200

    ux500: cpuidle: Optimize stack sizes

    Optimze the stack sizes for arm registers and
    CP15 registers

    ST-Ericsson ID: -

commit df0c08abadbdbe19c8c00ca09c3197f3fb0ead29
Author: Rickard Andersson &lt;rickard.andersson@stericsson.com&gt;
Date:   Mon Aug 22 11:19:13 2011 +0200

    ux500: cpuidle: GIC freeze delay optimized

    GIC freeze delay was previously unnecessary long.

    ST-Ericsson ID: -

commit a28fec98e99d5115b62d3d704452f427ca2a20ac
Author: Rajagopala V &lt;rajagopala.v@stericsson.com&gt;
Date:   Wed Aug 24 13:16:39 2011 +0530

    u5500: cpuidle: fix coverity warning

    check for clockevents_program_event return value in
    cpuidle driver during wakeup

    ST-Ericsson ID: ER356883

commit b716ed3140664c6b4b80381b18945032b792b853
Author: Rabin Vincent &lt;rabin.vincent@stericsson.com&gt;
Date:   Fri Aug 19 14:32:29 2011 +0530

    u5500: enable PRCMU QoS and debugging

    Dummy implementations are provided to get it to build.

    ST-Ericsson ID: 348762

commit 34cd29c2f8cd1ce8fa51be6d33624b441416d478
Author: om prakash &lt;omprakash.pal@stericsson.com&gt;
Date:   Tue Aug 23 14:08:52 2011 +0530

    cpuidle:Removed the CHECKED_RETURN error

    Removed the CHECKED_RETURN coverity error in cpuidle.

    ST-Ericsson ID: 354434

commit d9d500b6742ff1fcb12747cb55d7f26c89ef5c96
Author: Rabin Vincent &lt;rabin.vincent@stericsson.com&gt;
Date:   Mon Aug 22 10:23:36 2011 +0530

    u5500: support cpufreq only on v2

    Support cpufreq only on 5500v2+ only, since that is where
    the other power management features will be enabled.

    ST-Ericsson ID: 355981

commit 74cf0e658bb9abe240d04427d9043f145dd0505b
Author: Hemanth Puranik &lt;hemanth.puranik@stericsson.com&gt;
Date:   Wed Aug 3 10:29:10 2011 +0530

    U5500: Print PRCMU firware version

    ST-Ericsson ID: WP332193

commit bb04cadb6948a3a68f409fa7828457ce64540172
Author: Vijaya Kumar Kilari &lt;vijay.kilari@stericsson.com&gt;
Date:   Thu Aug 11 11:49:27 2011 +0530

    U5500: Add MSP1 and Cable detect clock support

    MSP1 and CD clocks are managed by PRCMU FW
    so special handling for these clocks are required

    ST-Ericsson ID: 332193

commit 0d9b20560a729b4674d9f55c77572db04272edbd
Author: Rajagopala V &lt;rajagopala.v@stericsson.com&gt;
Date:   Fri Aug 5 16:52:41 2011 +0530

    u5500: prcmu: add irqs for db5500 temperature sensor

    add irqs to support db5500 temp sensor high and low
    interrupts so as to clearly distinguish whether sensor
    temperature has crossed min/max values

    ST-Ericsson ID: WP257616

commit 63877225cb09c38d0fbea2dcf01eb6670eb05549
Author: Jonas Aaberg &lt;jonas.aberg@stericsson.com&gt;
Date:   Wed Jul 13 09:01:22 2011 +0200

    ARM: u8500: pm: Do not touch TPIU registers if JTAG disabled

    If JTAG is disabled, the Linux cannot touch the TPIU registers.

    ST-Ericsson ID: 349265

commit 9fcee5876ff138e85356b63d392b2a050a68601e
Author: Jonas Aaberg &lt;jonas.aberg@stericsson.com&gt;
Date:   Mon Jul 11 15:27:49 2011 +0200

    ARM: ux500: prcmu-debug: Add ARM opp to debugfs

    Add arm opp to debugfs interface, plus some code clean-up/simplification.

    ST-Ericsson ID: -

commit 0e1f18385d2416e03af308cac1e38997f6bbf044
Author: Jonas Aaberg &lt;jonas.aberg@stericsson.com&gt;
Date:   Thu Jul 14 12:49:30 2011 +0200

    ARM: ux500: context: Do not touch TPIU when not clocked

    ST-Ericsson ID: 352300

commit 0ebdb6b6b2a7f9924bd2785654f0abfb1473dda0
Author: Jayarami Reddy &lt;jayarami.reddy@stericsson.com&gt;
Date:   Thu Jul 14 14:39:07 2011 +0530

    u5500: fix to boot the kernel in DB5500

commit a20f6a9088ac5d34634cd26207dd5a072f04c37b
Author: Jonas Aaberg &lt;jonas.aberg@stericsson.com&gt;
Date:   Mon Jul 11 15:26:40 2011 +0200

    ARM: ux500: prcmu-qos: Add ARM OPP qos

    Make it possible to request lowest ARM OPP. Must
    be bound to cpufreq to actually do something.

    ST-Ericsson ID: -

commit be6842df3ee21a9aa00216c84e93a643b4ddeabe
Author: Jonas Aaberg &lt;jonas.aberg@stericsson.com&gt;
Date:   Wed Jul 13 09:00:30 2011 +0200

    ARM: ux500: Read product settings at boot

    ST-Ericsson ID: 349265

commit 94843c6131bac39aa8e7d0ec4c9c2b34e2819c92
Author: Jonas Aaberg &lt;jonas.aberg@stericsson.com&gt;
Date:   Wed Jul 13 08:56:38 2011 +0200

    drivers: tee: Update with product id configuration

    Add structs and defines needed to detect product settings.

    ST-Ericsson ID: 349265

commit 4c70d615b782965c064b3f97963eff5a290acf68
Author: Jonas Aaberg &lt;jonas.aberg@stericsson.com&gt;
Date:   Wed Jul 6 08:26:41 2011 +0200

    ARM: ux500: prcmu-wdog: Remove check for fw bug

    In prcmu fw version 3.4.4 the issue with longer
    intervalls than 131 s was fixed.

    ST-Ericsson ID: -

commit f6ccbf262ddebe39584b4a4c01cfa16af1fbfac6
Author: Jonas Aaberg &lt;jonas.aberg@stericsson.com&gt;
Date:   Tue Jul 12 08:53:42 2011 +0200

    ARM: ux500: cpuidle: Remove duplicated ApIdle state

    The ARM PLL is handled automatic by the prcmu fw and
    cpuidle cannot affect it. Remove duplicated ApIdle
    state that does the same as the other ApIdle state.

    ST-Ericsson ID: -

commit bdf3c3dd8c22ffe0fbd8c674e8e6bdab83a5ec01
Author: Rabin Vincent &lt;rabin.vincent@stericsson.com&gt;
Date:   Fri Jul 8 14:33:23 2011 +0530

    ux500: support ApDeepSleep on 5500

    ST-Ericsson ID: 332193

commit 5326d7744cd226e67253774f30a2bb57c9b2badc
Author: Rabin Vincent &lt;rabin.vincent@stericsson.com&gt;
Date:   Mon Jul 11 11:27:45 2011 +0530

    u5500: fix prcmu_get_arm_opp()

    prcmu_set_arm_opp() maps between logical ARM OPP values and
    PRCMU firmware values, so prcmu_get_arm_opp() should do it too.

    ST-Ericsson ID: 332226

commit 6422856927e1230197ae674795eff6538df885e5
Author: Jonas Aaberg &lt;jonas.aberg@stericsson.com&gt;
Date:   Thu Jul 7 08:33:59 2011 +0200

    ARM: u8500: prcmu-dbg: display AVS settings

    Add debugfs node showing AVS settings.

    root@ME:/ cat /debugfs/prcmu/avs
    VBB_RET      : 0x 0
    VBB_MAX_OPP  : 0xdb
    VBB_100_OPP  : 0xdb
    VBB_50_OPP   : 0xdb
    VARM_MAX_OPP : 0x2f
    VARM_100_OPP : 0x2e
    VARM_50_OPP  : 0x1d
    VARM_RET     : 0x 0
    VAPE_100_OPP : 0x2a
    VAPE_50_OPP  : 0x1a
    VMOD_100_OPP : 0x29
    VMOD_50_OPP  : 0x1a
    VSAFE        : 0x29

    ST-Ericsson ID: -

commit 3184873f10bff0c7c54db75d9c2694e21ebc40b0
Author: Pawel Szyszuk &lt;pawel.szyszuk@stericsson.com&gt;
Date:   Wed Jun 22 16:03:29 2011 +0200

    ARM: U5500: PRCMU CLKOUTx configuration API

    U5500 API for setting the programmable CLKOUTx source and divisor.
    New API used for setting the sources of camera clocks.

    ST-Ericsson ID: -

commit 98e9cfc32a25f6cf3b5d4c3456bb6ff6a34ff9cb
Author: Mian Yousaf Kaukab &lt;mian.yousaf.kaukab@stericsson.com&gt;
Date:   Thu Jun 23 16:07:48 2011 +0200

    [ANDROID]: pm: usecase: add sysfs interface to disable the governor

    Move all the code to control the state of the governor in a separate function.

    ST-Ericsson ID: CR339643

commit 6e9ab8ab3013d0b372a51d94d617d24fd8b38664
Author: Rickard Andersson &lt;rickard.andersson@stericsson.com&gt;
Date:   Tue Jun 7 13:04:08 2011 +0200

    ARM: ux500: pm: Turn off unnecessary GIC IRQs in deep sleep

    In the sleep state ApDeepSleep turn off all IRQs in the
    GIC except for the PRCMU IRQs

    ST-Ericsson ID: ER338876

commit ba5f28731b27386cb90cf87c4e7b1910e09474a9
Author: Rickard Andersson &lt;rickard.andersson@stericsson.com&gt;
Date:   Fri May 27 08:56:47 2011 +0200

    ARM: ux500: pm: Deepsleep bugfix and optimization

    Fixing deep sleep sync problems. Also cache clean and saves to
    backup RAM is now only done when really needed.

    ST-Ericsson ID: ER338876

commit 0415c755958de0d613a9bd52f73b820cb3a2b916
Author: Rabin Vincent &lt;rabin.vincent@stericsson.com&gt;
Date:   Tue Jun 28 18:18:36 2011 +0530

    u5500: handle SDMMC0 clock change on DB5500v2

    On DB5500v2, SDMMC0 is parented to SPARE1CLK instead of
    SDMMCCLK.

    Also, correct the PRCM_IRDACLK_MGT register address which is
    wrong even for v1.

    ST-Ericsson ID: 349062

commit 2036360d62f3c3f0cd722d751ba90a8739034c0f
Author: Rabin Vincent &lt;rabin.vincent@stericsson.com&gt;
Date:   Mon Jun 27 20:25:06 2011 +0530

    u5500: cpufreq: DB5500v2 support

    ST-Ericsson ID: 349062

commit 190b11834463e835de2d792116dfd8673d775752
Author: Rabin Vincent &lt;rabin.vincent@stericsson.com&gt;
Date:   Wed Jun 22 07:45:00 2011 +0530

    u5500: allow SUSPEND_STANDBY and CPUIDLE to be enabled

    ST-Ericsson ID: 332226

commit 7c4906d6ee888df46baa64b690dfdfaf44502d86
Author: Pawel Szyszuk &lt;pawel.szyszuk@stericsson.com&gt;
Date:   Mon Jun 20 15:28:34 2011 +0200

    ARM: u5500: PRCMU reset API

    Added API for rebooting the board and for getting the last reboot code.

    ST-Ericsson ID: 341245

Change-Id: Ibbcd9e3528cd605c724b9c2c88ae3b41a27f2f1c
</content>
</entry>
<entry>
<title>TEE: Added TEE kernel interface</title>
<updated>2012-05-22T09:04:35+00:00</updated>
<author>
<name>Martin Hovang</name>
<email>martin.xm.hovang@stericsson.com</email>
</author>
<published>2011-05-09T09:57:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.etezian.org/cgit.cgi/snowball/igloo-kernel.git/commit/?id=845dda7f67651a93e0b8d09f39f17c332c22dc63'/>
<id>urn:sha1:845dda7f67651a93e0b8d09f39f17c332c22dc63</id>
<content type='text'>
ST-Ericsson ID: 337171
ST Ericsson FOSS-OUT ID: Trivial
ST Ericsson Linux next: Not tested

Change-Id: I4c87bd550547a1fd90f1fef8c3c553246940b31e
Signed-off-by: Martin Hovang &lt;martin.xm.hovang@stericsson.com&gt;
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/22666
Reviewed-by: QATEST
Reviewed-by: Joakim BECH &lt;joakim.xx.bech@stericsson.com&gt;
Reviewed-by: Jonas ABERG &lt;jonas.aberg@stericsson.com&gt;
</content>
</entry>
<entry>
<title>add trusted execution environment (tee) driver</title>
<updated>2012-05-22T09:04:34+00:00</updated>
<author>
<name>Philippe Langlais</name>
<email>philippe.langlais@stericsson.com</email>
</author>
<published>2011-10-20T14:26:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.etezian.org/cgit.cgi/snowball/igloo-kernel.git/commit/?id=3416b97dc49ca05087870066ba991a727133b9bd'/>
<id>urn:sha1:3416b97dc49ca05087870066ba991a727133b9bd</id>
<content type='text'>
TEE working now for Android, tested ok with COPS!

* Updated according to review comments
- Added ST-Ericsson copyright headers to all tee files.
- Fixed problem with not using readl/writel when using ioremap.
- Fixed problem with forgetting to do iounmap on special case.
- Fixed incorrect usage when doing copy_to_user when writing to the device.
- Added architecture dependent file for the tee service that calls the secure world.
- Added support for more several inputs (sharedmemory buffers) for tee.
- Added dummy macro to map MT_MEMORY device.
- Fixed memory leak in secure world due to not closing a TEE session correctly from the kernel.
- Now we only copies input buffer from user space for tee.
- Documented structures in tee.h.
- Moved SVP implementation into arch/arm/mach-ux500 folder.
- Added new config flags for ux500 and SVP regarding TEE driver.
- Update mach-ux500/Kconfig:
  - Enable TEE_UX500 by default when using target hardware.
  - Enabel TEE_SVP by default when building simulator.
- Fix the cache sync problem: not request ROM code to clean cache
- ioremap for ICN_BASE, remove static mapping in cpu-db8500.c.
- Fix ioremap of ICN_BASE and do iounmap after use.

ST-Ericsson ID: WP269815

Change-Id: Ie861a90ec790e95fb3992e560512661693548a43
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/4168
Reviewed-by: Shujuan CHEN &lt;shujuan.chen@stericsson.com&gt;
Tested-by: Shujuan CHEN &lt;shujuan.chen@stericsson.com&gt;
Signed-off-by: Lee Jones &lt;lee.jones@linaro.org&gt;
</content>
</entry>
<entry>
<title>Merge branch 'for-linus' of git://git.kernel.dk/linux-block</title>
<updated>2012-05-19T17:12:17+00:00</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2012-05-19T17:12:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.etezian.org/cgit.cgi/snowball/igloo-kernel.git/commit/?id=14e931a264498fbd4baef07ee0644e347252393b'/>
<id>urn:sha1:14e931a264498fbd4baef07ee0644e347252393b</id>
<content type='text'>
Pull block layer fixes from Jens Axboe:
 "A few small, but important fixes.  Most of them are marked for stable
  as well

   - Fix failure to release a semaphore on error path in mtip32xx.
   - Fix crashable condition in bio_get_nr_vecs().
   - Don't mark end-of-disk buffers as mapped, limit it to i_size.
   - Fix for build problem with CONFIG_BLOCK=n on arm at least.
   - Fix for a buffer overlow on UUID partition printing.
   - Trivial removal of unused variables in dac960."

* 'for-linus' of git://git.kernel.dk/linux-block:
  block: fix buffer overflow when printing partition UUIDs
  Fix blkdev.h build errors when BLOCK=n
  bio allocation failure due to bio_get_nr_vecs()
  block: don't mark buffers beyond end of disk as mapped
  mtip32xx: release the semaphore on an error path
  dac960: Remove unused variables from DAC960_CreateProcEntries()
</content>
</entry>
<entry>
<title>Merge branches 'perf-urgent-for-linus', 'x86-urgent-for-linus' and 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip</title>
<updated>2012-05-17T16:35:17+00:00</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2012-05-17T16:35:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.etezian.org/cgit.cgi/snowball/igloo-kernel.git/commit/?id=31ae98359d26ff89b745c4f8094093cbf6ccbdc6'/>
<id>urn:sha1:31ae98359d26ff89b745c4f8094093cbf6ccbdc6</id>
<content type='text'>
Pull perf, x86 and scheduler updates from Ingo Molnar.

* 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
  tracing: Do not enable function event with enable
  perf stat: handle ENXIO error for perf_event_open
  perf: Turn off compiler warnings for flex and bison generated files
  perf stat: Fix case where guest/host monitoring is not supported by kernel
  perf build-id: Fix filename size calculation

* 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
  x86, kvm: KVM paravirt kernels don't check for CPUID being unavailable
  x86: Fix section annotation of acpi_map_cpu2node()
  x86/microcode: Ensure that module is only loaded on supported Intel CPUs

* 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
  sched: Fix KVM and ia64 boot crash due to sched_groups circular linked list assumption
</content>
</entry>
<entry>
<title>netfilter: ipset: fix hash size checking in kernel</title>
<updated>2012-05-16T19:38:49+00:00</updated>
<author>
<name>Jozsef Kadlecsik</name>
<email>kadlec@blackhole.kfki.hu</email>
</author>
<published>2012-05-14T01:47:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.etezian.org/cgit.cgi/snowball/igloo-kernel.git/commit/?id=26a5d3cc0b3d1ff23b5a94edb58226afe7f12a0c'/>
<id>urn:sha1:26a5d3cc0b3d1ff23b5a94edb58226afe7f12a0c</id>
<content type='text'>
The hash size must fit both into u32 (jhash) and the max value of
size_t. The missing checking could lead to kernel crash, bug reported
by Seblu.

Signed-off-by: Jozsef Kadlecsik &lt;kadlec@blackhole.kfki.hu&gt;
Signed-off-by: Pablo Neira Ayuso &lt;pablo@netfilter.org&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>usbnet: fix skb traversing races during unlink(v2)</title>
<updated>2012-05-15T17:41:42+00:00</updated>
<author>
<name>Ming Lei</name>
<email>tom.leiming@gmail.com</email>
</author>
<published>2012-04-26T03:33:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.etezian.org/cgit.cgi/snowball/igloo-kernel.git/commit/?id=5b6e9bcdeb65634b4ad604eb4536404bbfc62cfa'/>
<id>urn:sha1:5b6e9bcdeb65634b4ad604eb4536404bbfc62cfa</id>
<content type='text'>
Commit 4231d47e6fe69f061f96c98c30eaf9fb4c14b96d(net/usbnet: avoid
recursive locking in usbnet_stop()) fixes the recursive locking
problem by releasing the skb queue lock before unlink, but may
cause skb traversing races:
	- after URB is unlinked and the queue lock is released,
	the refered skb and skb-&gt;next may be moved to done queue,
	even be released
	- in skb_queue_walk_safe, the next skb is still obtained
	by next pointer of the last skb
	- so maybe trigger oops or other problems

This patch extends the usage of entry-&gt;state to describe 'start_unlink'
state, so always holding the queue(rx/tx) lock to change the state if
the referd skb is in rx or tx queue because we need to know if the
refered urb has been started unlinking in unlink_urbs.

The other part of this patch is based on Huajun's patch:
always traverse from head of the tx/rx queue to get skb which is
to be unlinked but not been started unlinking.

Signed-off-by: Huajun Li &lt;huajun.li.lee@gmail.com&gt;
Signed-off-by: Ming Lei &lt;tom.leiming@gmail.com&gt;
Cc: Oliver Neukum &lt;oneukum@suse.de&gt;
Cc: stable@kernel.org
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>block: fix buffer overflow when printing partition UUIDs</title>
<updated>2012-05-15T06:22:04+00:00</updated>
<author>
<name>Tejun Heo</name>
<email>tj@kernel.org</email>
</author>
<published>2012-05-15T06:22:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.etezian.org/cgit.cgi/snowball/igloo-kernel.git/commit/?id=05c69d298c96703741cac9a5cbbf6c53bd55a6e2'/>
<id>urn:sha1:05c69d298c96703741cac9a5cbbf6c53bd55a6e2</id>
<content type='text'>
6d1d8050b4bc8 "block, partition: add partition_meta_info to hd_struct"
added part_unpack_uuid() which assumes that the passed in buffer has
enough space for sprintfing "%pU" - 37 characters including '\0'.

Unfortunately, b5af921ec0233 "init: add support for root devices
specified by partition UUID" supplied 33 bytes buffer to the function
leading to the following panic with stackprotector enabled.

  Kernel panic - not syncing: stack-protector: Kernel stack corrupted in: ffffffff81b14c7e

  [&lt;ffffffff815e226b&gt;] panic+0xba/0x1c6
  [&lt;ffffffff81b14c7e&gt;] ? printk_all_partitions+0x259/0x26xb
  [&lt;ffffffff810566bb&gt;] __stack_chk_fail+0x1b/0x20
  [&lt;ffffffff81b15c7e&gt;] printk_all_paritions+0x259/0x26xb
  [&lt;ffffffff81aedfe0&gt;] mount_block_root+0x1bc/0x27f
  [&lt;ffffffff81aee0fa&gt;] mount_root+0x57/0x5b
  [&lt;ffffffff81aee23b&gt;] prepare_namespace+0x13d/0x176
  [&lt;ffffffff8107eec0&gt;] ? release_tgcred.isra.4+0x330/0x30
  [&lt;ffffffff81aedd60&gt;] kernel_init+0x155/0x15a
  [&lt;ffffffff81087b97&gt;] ? schedule_tail+0x27/0xb0
  [&lt;ffffffff815f4d24&gt;] kernel_thread_helper+0x5/0x10
  [&lt;ffffffff81aedc0b&gt;] ? start_kernel+0x3c5/0x3c5
  [&lt;ffffffff815f4d20&gt;] ? gs_change+0x13/0x13

Increase the buffer size, remove the dangerous part_unpack_uuid() and
use snprintf() directly from printk_all_partitions().

Signed-off-by: Tejun Heo &lt;tj@kernel.org&gt;
Reported-by: Szymon Gruszczynski &lt;sz.gruszczynski@googlemail.com&gt;
Cc: Will Drewry &lt;wad@chromium.org&gt;
Cc: stable@vger.kernel.org
Signed-off-by: Jens Axboe &lt;axboe@kernel.dk&gt;
</content>
</entry>
<entry>
<title>Fix blkdev.h build errors when BLOCK=n</title>
<updated>2012-05-14T06:29:23+00:00</updated>
<author>
<name>Russell King</name>
<email>rmk+kernel@arm.linux.org.uk</email>
</author>
<published>2012-05-14T06:29:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.etezian.org/cgit.cgi/snowball/igloo-kernel.git/commit/?id=85fd0bc95bc76d129db0d0114c40665745bbba07'/>
<id>urn:sha1:85fd0bc95bc76d129db0d0114c40665745bbba07</id>
<content type='text'>
I see builds failing with:

  CC [M]  drivers/mmc/host/dw_mmc.o
In file included from drivers/mmc/host/dw_mmc.c:15:
include/linux/blkdev.h:1404: warning: 'struct task_struct' declared inside parameter list
include/linux/blkdev.h:1404: warning: its scope is only this definition or declaration, which is probably not what you want
include/linux/blkdev.h:1408: warning: 'struct task_struct' declared inside parameter list
include/linux/blkdev.h:1413: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'blk_needs_flush_plug'
make[4]: *** [drivers/mmc/host/dw_mmc.o] Error 1

This is because dw_mmc.c includes linux/blkdev.h as the very first file,
and when CONFIG_BLOCK=n, blkdev.h omits all includes.

As it requires linux/sched.h even when CONFIG_BLOCK=n, move this out of
the #ifdef.

Signed-off-by: Russell King &lt;rmk+kernel@arm.linux.org.uk&gt;
Signed-off-by: Jens Axboe &lt;axboe@kernel.dk&gt;
</content>
</entry>
</feed>
