bpf.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
  • [parent not found: <20220330225642.1163897-2-song@kernel.org>]
  • [parent not found: <20220330225642.1163897-4-song@kernel.org>]
  • [parent not found: <20220330225642.1163897-5-song@kernel.org>]
  • * Re: [PATCH bpf 0/4] introduce HAVE_ARCH_HUGE_VMALLOC_FLAG for bpf_prog_pack
           [not found] <20220330225642.1163897-1-song@kernel.org>
                       ` (3 preceding siblings ...)
           [not found] ` <20220330225642.1163897-5-song@kernel.org>
    @ 2022-03-31  0:04 ` Edgecombe, Rick P
      2022-03-31  0:46   ` Song Liu
      2022-03-31  5:37 ` Christoph Hellwig
      5 siblings, 1 reply; 18+ messages in thread
    From: Edgecombe, Rick P @ 2022-03-31  0:04 UTC (permalink / raw)
      To: netdev, linux-mm, song, bpf, x86
      Cc: daniel, andrii, kernel-team, pmenzel, akpm, ast
    
    On Wed, 2022-03-30 at 15:56 -0700, Song Liu wrote:
    > [1] 
    > https://lore.kernel.org/lkml/5bd16e2c06a2df357400556c6ae01bb5d3c5c32a.camel@intel.com/
    
    The issues I brought up around VM_FLUSH_RESET_PERMS are not fixed in
    this series. And I think the solution I proposed is kind of wonky with
    respect to hibernate. So I think maybe hibernate should be fixed to not
    impose restrictions on the direct map, so the wonkiness is not needed.
    But then this "fixes" series becomes quite extensive.
    
    I wonder, why not just push the patch 1 here, then re-enable this thing
    when it is all properly fixed up. It looked like your code could handle
    the allocation not actually getting large pages.
    
    Another solution that would keep large pages but still need fixing up
    later: Just don't use VM_FLUSH_RESET_PERMS for now. Call
    set_memory_nx() and then set_memory_rw() on the module space address
    before vfree(). This will clean up everything that's needed with
    respect to direct map permissions. Have vmalloc warn if is sees
    VM_FLUSH_RESET_PERMS and huge pages together.
    
    
    
    ^ permalink raw reply	[flat|nested] 18+ messages in thread
  • * Re: [PATCH bpf 0/4] introduce HAVE_ARCH_HUGE_VMALLOC_FLAG for bpf_prog_pack
           [not found] <20220330225642.1163897-1-song@kernel.org>
                       ` (4 preceding siblings ...)
      2022-03-31  0:04 ` [PATCH bpf 0/4] introduce HAVE_ARCH_HUGE_VMALLOC_FLAG " Edgecombe, Rick P
    @ 2022-03-31  5:37 ` Christoph Hellwig
      2022-03-31 23:59   ` Song Liu
      5 siblings, 1 reply; 18+ messages in thread
    From: Christoph Hellwig @ 2022-03-31  5:37 UTC (permalink / raw)
      To: Song Liu
      Cc: linux-mm, bpf, netdev, x86, ast, daniel, andrii, kernel-team,
    	akpm, pmenzel, rick.p.edgecombe
    
    On Wed, Mar 30, 2022 at 03:56:38PM -0700, Song Liu wrote:
    > We prematurely enabled HAVE_ARCH_HUGE_VMALLOC for x86_64, which could cause
    > issues [1], [2].
    >
    
    Please fix the underlying issues instead of papering over them and
    creating a huge maintainance burden for others.
    
    ^ permalink raw reply	[flat|nested] 18+ messages in thread

  • end of thread, other threads:[~2022-04-08 21:23 UTC | newest]
    
    Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
    -- links below jump to the message on this page --
         [not found] <20220330225642.1163897-1-song@kernel.org>
         [not found] ` <20220330225642.1163897-3-song@kernel.org>
    2022-03-30 23:40   ` [PATCH bpf 2/4] vmalloc: introduce HAVE_ARCH_HUGE_VMALLOC_FLAG Edgecombe, Rick P
    2022-03-31  0:26     ` Song Liu
         [not found] ` <20220330225642.1163897-2-song@kernel.org>
    2022-03-30 23:47   ` [PATCH bpf 1/4] x86: disable HAVE_ARCH_HUGE_VMALLOC Thomas Gleixner
         [not found] ` <20220330225642.1163897-4-song@kernel.org>
    2022-03-30 23:54   ` [PATCH bpf 3/4] x86: select HAVE_ARCH_HUGE_VMALLOC_FLAG for X86_64 Thomas Gleixner
    2022-03-31  0:30     ` Song Liu
         [not found] ` <20220330225642.1163897-5-song@kernel.org>
    2022-03-31  0:00   ` [PATCH bpf 4/4] bpf: use __vmalloc_node_range() with VM_TRY_HUGE_VMAP for bpf_prog_pack Thomas Gleixner
    2022-03-31  0:31     ` Song Liu
    2022-03-31  0:04 ` [PATCH bpf 0/4] introduce HAVE_ARCH_HUGE_VMALLOC_FLAG " Edgecombe, Rick P
    2022-03-31  0:46   ` Song Liu
    2022-03-31 16:19     ` Edgecombe, Rick P
    2022-03-31  5:37 ` Christoph Hellwig
    2022-03-31 23:59   ` Song Liu
    2022-04-01 22:22     ` Song Liu
    2022-04-05  7:07       ` Christoph Hellwig
    2022-04-05 23:54         ` Song Liu
    2022-04-07 19:57           ` Song Liu
    2022-04-08 10:08             ` Claudio Imbrenda
    2022-04-08 21:22               ` Song Liu
    

    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).