Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752200AbdI0IVB (ORCPT ); Wed, 27 Sep 2017 04:21:01 -0400 Received: from mx2.suse.de ([195.135.220.15]:37503 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751730AbdI0IU5 (ORCPT ); Wed, 27 Sep 2017 04:20:57 -0400 From: Johannes Thumshirn To: Christoph Lameter , Pekka Enberg , David Rientjes , Joonsoo Kim , Andrew Morton Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Damien Le Moal , Christoph Hellwig , Johannes Thumshirn Subject: [PATCH 0/6] Add kmalloc_array_node() and kcalloc_node() Date: Wed, 27 Sep 2017 10:20:32 +0200 Message-Id: <20170927082038.3782-1-jthumshirn@suse.de> X-Mailer: git-send-email 2.13.5 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 911 Lines: 24 Our current memeory allocation routines suffer form an API imbalance, for one we have kmalloc_array() and kcalloc() which check for overflows in size multiplication and we have kmalloc_node() and kzalloc_node() which allow for memory allocation on a certain NUMA node but don't check for eventual overflows. Johannes Thumshirn (6): mm: add kmalloc_array_node and kcalloc_node block: use kmalloc_array_node IB/qib: use kmalloc_array_node IB/rdmavt: use kmalloc_array_node mm, mempool: use kmalloc_array_node rds: ib: use kmalloc_array_node block/blk-mq.c | 2 +- drivers/infiniband/hw/qib/qib_init.c | 5 +++-- drivers/infiniband/sw/rdmavt/qp.c | 2 +- include/linux/slab.h | 16 ++++++++++++++++ mm/mempool.c | 2 +- net/rds/ib_fmr.c | 4 ++-- 6 files changed, 24 insertions(+), 7 deletions(-) -- 2.13.5