All of lore.kernel.org
 help / color / mirror / Atom feed
* CONFIG_VMAP_STACK, on-stack struct, and wake_up_bit
@ 2016-10-26 12:51 Andreas Gruenbacher
  2016-10-26 15:51 ` Andy Lutomirski
  0 siblings, 1 reply; 54+ messages in thread
From: Andreas Gruenbacher @ 2016-10-26 12:51 UTC (permalink / raw)
  To: Andy Lutomirski; +Cc: LKML, Bob Peterson, Steven Whitehouse

Hi,

CONFIG_VMAP_STACK has broken gfs2 and I'm trying to figure out what's
going on. What I'm seeing is the following: on a fresh gfs2 filesystem
created with:

  mkfs.gfs2 -p lock_nolock $DEVICE

I get the following BUG with 4.9-rc2, CONFIG_VMAP_STACK and
CONFIG_DEBUG_VIRTUAL turned on:

  kernel BUG at arch/x86/mm/physaddr.c:26!

Stack of kernel thread:

  __phys_addr(x)
  bit_waitqueue(word, bit)
  wake_up_bit(word = &gh->gh_iflags, bit = HIF_WAIT)
  gfs2_holder_wake(gh)

The gh here is on the stack of another kernel thread:

  static int fill_super(struct super_block *sb, struct gfs2_args
*args, int silent)
  {
    struct gfs2_holder mount_gh;
  }

Which is waiting on the bit with:

  wait_on_bit(&gh->gh_iflags, HIF_WAIT, TASK_UNINTERRUPTIBLE)

Is accessing a struct on another kernel thread's stack no longer working?

Thanks,
Andreas

^ permalink raw reply	[flat|nested] 54+ messages in thread

end of thread, other threads:[~2016-10-28  8:40 UTC | newest]

Thread overview: 54+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-26 12:51 CONFIG_VMAP_STACK, on-stack struct, and wake_up_bit Andreas Gruenbacher
2016-10-26 15:51 ` Andy Lutomirski
2016-10-26 16:32   ` Linus Torvalds
2016-10-26 16:32     ` Linus Torvalds
2016-10-26 17:15     ` Linus Torvalds
2016-10-26 17:58       ` Linus Torvalds
2016-10-26 17:58         ` Linus Torvalds
2016-10-26 18:04         ` Bob Peterson
2016-10-26 18:04           ` Bob Peterson
2016-10-26 18:10           ` Linus Torvalds
2016-10-26 18:10             ` Linus Torvalds
2016-10-26 19:11             ` Bob Peterson
2016-10-26 19:11               ` Bob Peterson
2016-10-26 21:01             ` Bob Peterson
2016-10-26 21:01               ` Bob Peterson
2016-10-26 21:30               ` Linus Torvalds
2016-10-26 21:30                 ` Linus Torvalds
2016-10-26 22:45                 ` Borislav Petkov
2016-10-26 22:45                   ` Borislav Petkov
2016-10-26 23:13               ` Borislav Petkov
2016-10-26 23:13                 ` Borislav Petkov
2016-10-27  0:37                 ` Bob Peterson
2016-10-27 12:36                   ` Borislav Petkov
2016-10-27 12:36                     ` Borislav Petkov
2016-10-27 18:51                     ` Bob Peterson
2016-10-27 18:51                       ` Bob Peterson
2016-10-27 19:19                       ` Borislav Petkov
2016-10-27 19:19                         ` Borislav Petkov
2016-10-27 21:03                         ` Bob Peterson
2016-10-27 21:03                           ` Bob Peterson
2016-10-27 21:19                           ` Borislav Petkov
2016-10-27 21:19                             ` Borislav Petkov
2016-10-28  8:37                     ` [tip:x86/urgent] x86/microcode/AMD: Fix more fallout from CONFIG_RANDOMIZE_MEMORY=y tip-bot for Borislav Petkov
2016-10-28  8:37                       ` tip-bot for Borislav Petkov
2016-10-26 20:31       ` CONFIG_VMAP_STACK, on-stack struct, and wake_up_bit Mel Gorman
2016-10-26 20:31         ` Mel Gorman
2016-10-26 21:26         ` Linus Torvalds
2016-10-26 21:26           ` Linus Torvalds
2016-10-26 22:03           ` Mel Gorman
2016-10-26 22:03             ` Mel Gorman
2016-10-26 22:09             ` Linus Torvalds
2016-10-26 22:09               ` Linus Torvalds
2016-10-26 23:07               ` Mel Gorman
2016-10-26 23:07                 ` Mel Gorman
2016-10-27  8:08                 ` Peter Zijlstra
2016-10-27  8:08                   ` Peter Zijlstra
2016-10-27  9:07                   ` Mel Gorman
2016-10-27  9:07                     ` Mel Gorman
2016-10-27  9:44                     ` Peter Zijlstra
2016-10-27  9:44                       ` Peter Zijlstra
2016-10-27  9:59                       ` Mel Gorman
2016-10-27  9:59                         ` Mel Gorman
2016-10-27 11:56                   ` Nicholas Piggin
2016-10-27 11:56                     ` Nicholas Piggin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.