summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-record
diff options
context:
space:
mode:
authorMichael Ellerman <mpe@ellerman.id.au>2016-07-31 00:23:08 +1000
committerLinus Torvalds <torvalds@linux-foundation.org>2016-07-30 21:00:06 -0700
commitdd0f0cf58af70dc9267409f113bea772d57f675c (patch)
treef0a655622dc3e030c2f12388f07bfafd20e2b049 /tools/perf/scripts/python/bin/stackcollapse-record
parent7f155c702677d057d03b192ce652311de5434697 (diff)
downloadkernel-dd0f0cf58af70dc9267409f113bea772d57f675c.tar.gz
random: Fix crashes with sparse node ids
On a system with sparse node ids, eg. a powerpc system with 4 nodes numbered like so: node 0: [mem 0x0000000000000000-0x00000007ffffffff] node 1: [mem 0x0000000800000000-0x0000000fffffffff] node 16: [mem 0x0000001000000000-0x00000017ffffffff] node 17: [mem 0x0000001800000000-0x0000001fffffffff] The code in rand_initialize() will allocate 4 pointers for the pool array, and initialise them correctly. However when go to use the pool, in eg. extract_crng(), we use the numa_node_id() to index into the array. For the higher numbered node ids this leads to random memory corruption, depending on what was kmalloc'ed adjacent to the pool array. Fix it by using nr_node_ids to size the pool array. Fixes: 1e7f583af67b ("random: make /dev/urandom scalable for silly userspace programs") Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions
le='2019-05-23 09:48:07 -0700'>2019-05-23net: qualcomm: rmnet: Move common struct definitions to includeSubash Abhinov Kasiviswanathan 2019-05-21treewide: Add SPDX license identifier - Makefile/KconfigThomas Gleixner 2019-05-07net: ethernet: support of_get_mac_address new ERR_PTR errorPetr Štetiar 2019-02-13net: qualcomm: emac: replace dev_kfree_skb_irq by dev_consume_skb_irq for dro...Yang Wei 2019-01-08cross-tree: phase out dma_zalloc_coherent()Luis Chamberlain 2018-12-03net: qca_spi: convert to DEFINE_SHOW_ATTRIBUTEYangtao Li 2018-11-30net: qualcomm: rmnet: Remove set but not used variable 'cmd'YueHaibing 2018-11-28net: qualcomm: rmnet: remove set but not used variables 'ip_family, fc_seq, q...YueHaibing 2018-11-24net: qualcomm: rmnet: move null check on dev before dereferecing itColin Ian King 2018-11-11Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller 2018-11-09net: qualcomm: rmnet: Fix incorrect assignment of real_devSubash Abhinov Kasiviswanathan 2018-11-08net: qca_spi: Add available buffer space verificationStefan Wahren 2018-10-03Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller