virtualization.lists.linux-foundation.org archive mirror
 help / color / mirror / Atom feed
  • [parent not found: <20201102152037.963-9-brgl@bgdev.pl>]
  • * Re: [PATCH v2 0/8] slab: provide and use krealloc_array()
           [not found] <20201102152037.963-1-brgl@bgdev.pl>
           [not found] ` <20201102152037.963-2-brgl@bgdev.pl>
           [not found] ` <20201102152037.963-9-brgl@bgdev.pl>
    @ 2020-11-03  4:14 ` Joe Perches
           [not found]   ` <CAMRc=Me4-4Cmoq3UdpYEEhERP6fvt97bEJsZYhrcFSQf+a_voA@mail.gmail.com>
      2 siblings, 1 reply; 4+ messages in thread
    From: Joe Perches @ 2020-11-03  4:14 UTC (permalink / raw)
      To: Bartosz Golaszewski, Andy Shevchenko, Sumit Semwal,
    	Gustavo Padovan, Christian König, Mauro Carvalho Chehab,
    	Borislav Petkov, Tony Luck, James Morse, Robert Richter,
    	Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie,
    	Daniel Vetter, Alexander Shishkin, Linus Walleij,
    	Michael S . Tsirkin, Jason Wang, Christoph Lameter, Pekka Enberg,
    	David Rientjes, Joonsoo Kim, Andrew Morton, Jaroslav Kysela,
    	Takashi Iwai
      Cc: alsa-devel, kvm, linux-mm, netdev, linux-kernel, dri-devel,
    	virtualization, linaro-mm-sig, linux-gpio, Bartosz Golaszewski,
    	linux-media, linux-edac
    
    On Mon, 2020-11-02 at 16:20 +0100, Bartosz Golaszewski wrote:
    > From: Bartosz Golaszewski <bgolaszewski@baylibre.com>
    > 
    > Andy brought to my attention the fact that users allocating an array of
    > equally sized elements should check if the size multiplication doesn't
    > overflow. This is why we have helpers like kmalloc_array().
    > 
    > However we don't have krealloc_array() equivalent and there are many
    > users who do their own multiplication when calling krealloc() for arrays.
    > 
    > This series provides krealloc_array() and uses it in a couple places.
    
    My concern about this is a possible assumption that __GFP_ZERO will
    work, and as far as I know, it will not.
    
    
    _______________________________________________
    Virtualization mailing list
    Virtualization@lists.linux-foundation.org
    https://lists.linuxfoundation.org/mailman/listinfo/virtualization
    
    ^ permalink raw reply	[flat|nested] 4+ messages in thread

  • end of thread, other threads:[~2020-11-03 10:54 UTC | newest]
    
    Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
    -- links below jump to the message on this page --
         [not found] <20201102152037.963-1-brgl@bgdev.pl>
         [not found] ` <20201102152037.963-2-brgl@bgdev.pl>
    2020-11-02 15:41   ` [PATCH v2 1/8] mm: slab: provide krealloc_array() Matthew Wilcox
         [not found] ` <20201102152037.963-9-brgl@bgdev.pl>
    2020-11-02 16:10   ` [PATCH v2 8/8] dma-buf: use krealloc_array() Andy Shevchenko
    2020-11-03  4:14 ` [PATCH v2 0/8] slab: provide and " Joe Perches
         [not found]   ` <CAMRc=Me4-4Cmoq3UdpYEEhERP6fvt97bEJsZYhrcFSQf+a_voA@mail.gmail.com>
    2020-11-03 10:55     ` Andy Shevchenko
    

    This is a public inbox, see mirroring instructions
    for how to clone and mirror all data and code used for this inbox;
    as well as URLs for NNTP newsgroup(s).