All of lore.kernel.org
 help / color / mirror / Atom feed
* linux-next: panic on 20220307 tree
@ 2022-03-08  2:44 Murphy Zhou
  2022-03-10 16:29 ` Kees Cook
  0 siblings, 1 reply; 3+ messages in thread
From: Murphy Zhou @ 2022-03-08  2:44 UTC (permalink / raw)
  To: Linux-Next

[-- Attachment #1: Type: text/plain, Size: 2655 bytes --]

Hi,

Hit this shortly after build the next tree and reboot.

[   72.985994] ------------[ cut here ]------------
[   72.986023] ------------[ cut here ]------------
[   73.009468] kernel BUG at include/linux/swapops.h:258!
[   73.033065] kernel BUG at include/linux/swapops.h:258!
[   73.033079] invalid opcode: 0000 [#1] PREEMPT SMP PTI
[   73.107068] CPU: 16 PID: 5709 Comm: mksquashfs Tainted: G        W
I       5.17.0-rc6-next-20220307 #1
[   73.148943] Hardware name: HP ProLiant DL380p Gen8, BIOS P70 08/02/2014
[   73.178737] RIP: 0010:migration_entry_wait_on_locked+0x266/0x300
[   73.206068] Code: 06 88 44 24 07 eb d7 66 90 e9 09 ff ff ff 48 8b
43 08 a8 01 0f 85 8d 00 00 00 66 90 48 89 d8 48 8b 00 a8 01 0f 85 e6
fd ff ff <0f> 0b 48 8d 58 ff e9 ec fd ff ff 65 48 8b 04 25 40 ef 01 00
48 83
[   73.291471] RSP: 0000:ffffb2f68bf27d60 EFLAGS: 00010246
[   73.315812] RAX: 0057ffffc009000c RBX: ffffdead13400000 RCX: 0000000000000000
[   73.348177] RDX: ffffdead1111d3e8 RSI: 0000000000000000 RDI: 000000000000001b
[   73.380458] RBP: 0000000000000000 R08: ffff991900168a78 R09: 0000000000000000
[   73.412830] R10: 0000000000000000 R11: 0000000000000000 R12: ffffdead1111d3e8
[   73.445535] R13: 0400000000000000 R14: 0400000000000080 R15: ffff9918d107ce10
[   73.477657] FS:  00007f0cb9ffb640(0000) GS:ffff9918af800000(0000)
knlGS:0000000000000000
[   73.515499] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   73.544576] CR2: 000055d3d30cc2e0 CR3: 0000000460914004 CR4: 00000000001706e0
[   73.578491] Call Trace:
[   73.590469]  <TASK>
[   73.600493]  ? dio_warn_stale_pagecache.part.0+0x50/0x50
[   73.624513]  __handle_mm_fault+0x5cb/0x700
[   73.642955]  handle_mm_fault+0xc5/0x290
[   73.660168]  do_user_addr_fault+0x1b4/0x680
[   73.678949]  exc_page_fault+0x62/0x140
[   73.696792]  ? asm_exc_page_fault+0x8/0x30
[   73.716177]  asm_exc_page_fault+0x1e/0x30
[   73.734348] RIP: 0033:0x55d3d2da7658
[   73.750529] Code: 25 00 80 00 ff 05 00 00 00 01 09 d8 48 8b 54 24
08 64 48 2b 14 25 28 00 00 00 75 5a 48 83 c4 10 5b 5d 41 5c c3 0f 1f
44 00 00 <48> 8b 05 81 4c 32 00 4c 8d 4c 24 04 ff 50 20 83 f8 ff 74 0a
85 c0
[   73.836254] RSP: 002b:00007f0cb9ffadf0 EFLAGS: 00010246
[   73.860578] RAX: 0000000000000000 RBX: 0000000000020000 RCX: 0000000000020000
[   73.894417] RDX: 00007f0c616c5d00 RSI: 00007f0c9c2026a0 RDI: 00007f0c9c020bd0
[   73.926629] RBP: 00007f0c9c2026a0 R08: 0000000000020000 R09: 0000000000000000
[   73.958922] R10: 0000000000020000 R11: 00007f0c616c5d00 R12: 00007f0c616c5d00
[   73.991337] R13: 0000000000000002 R14: 00007f0e19ca43f0 R15: 0000000000000000
[   74.024964]  </TASK>


Kernel config is attached.

[-- Attachment #2: config --]
[-- Type: application/octet-stream, Size: 225351 bytes --]

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

* Re: linux-next: panic on 20220307 tree
  2022-03-08  2:44 linux-next: panic on 20220307 tree Murphy Zhou
@ 2022-03-10 16:29 ` Kees Cook
  2022-03-10 16:54   ` David Hildenbrand
  0 siblings, 1 reply; 3+ messages in thread
From: Kees Cook @ 2022-03-10 16:29 UTC (permalink / raw)
  To: Murphy Zhou, Hugh Dickins, David Hildenbrand, Andrew Morton; +Cc: Linux-Next

On Tue, Mar 08, 2022 at 10:44:57AM +0800, Murphy Zhou wrote:
> Hi,
> 
> Hit this shortly after build the next tree and reboot.
> 
> [   72.985994] ------------[ cut here ]------------
> [   72.986023] ------------[ cut here ]------------
> [   73.009468] kernel BUG at include/linux/swapops.h:258!
> [   73.033065] kernel BUG at include/linux/swapops.h:258!

This is in here:

static inline struct page *pfn_swap_entry_to_page(swp_entry_t entry)
{
        struct page *p = pfn_to_page(swp_offset(entry));

        /*
         * Any use of migration entries may only occur while the
         * corresponding page is locked
         */
        BUG_ON(is_migration_entry(entry) && !PageLocked(p));

        return p;
}

Hugh, David, Andrew, might any of the recent mm/memory.c work caused
problems in here? (Or is this already fixed?)

-Kees

> [   73.033079] invalid opcode: 0000 [#1] PREEMPT SMP PTI
> [   73.107068] CPU: 16 PID: 5709 Comm: mksquashfs Tainted: G        W
> I       5.17.0-rc6-next-20220307 #1
> [   73.148943] Hardware name: HP ProLiant DL380p Gen8, BIOS P70 08/02/2014
> [   73.178737] RIP: 0010:migration_entry_wait_on_locked+0x266/0x300
> [   73.206068] Code: 06 88 44 24 07 eb d7 66 90 e9 09 ff ff ff 48 8b
> 43 08 a8 01 0f 85 8d 00 00 00 66 90 48 89 d8 48 8b 00 a8 01 0f 85 e6
> fd ff ff <0f> 0b 48 8d 58 ff e9 ec fd ff ff 65 48 8b 04 25 40 ef 01 00
> 48 83
> [   73.291471] RSP: 0000:ffffb2f68bf27d60 EFLAGS: 00010246
> [   73.315812] RAX: 0057ffffc009000c RBX: ffffdead13400000 RCX: 0000000000000000
> [   73.348177] RDX: ffffdead1111d3e8 RSI: 0000000000000000 RDI: 000000000000001b
> [   73.380458] RBP: 0000000000000000 R08: ffff991900168a78 R09: 0000000000000000
> [   73.412830] R10: 0000000000000000 R11: 0000000000000000 R12: ffffdead1111d3e8
> [   73.445535] R13: 0400000000000000 R14: 0400000000000080 R15: ffff9918d107ce10
> [   73.477657] FS:  00007f0cb9ffb640(0000) GS:ffff9918af800000(0000)
> knlGS:0000000000000000
> [   73.515499] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
> [   73.544576] CR2: 000055d3d30cc2e0 CR3: 0000000460914004 CR4: 00000000001706e0
> [   73.578491] Call Trace:
> [   73.590469]  <TASK>
> [   73.600493]  ? dio_warn_stale_pagecache.part.0+0x50/0x50
> [   73.624513]  __handle_mm_fault+0x5cb/0x700
> [   73.642955]  handle_mm_fault+0xc5/0x290
> [   73.660168]  do_user_addr_fault+0x1b4/0x680
> [   73.678949]  exc_page_fault+0x62/0x140
> [   73.696792]  ? asm_exc_page_fault+0x8/0x30
> [   73.716177]  asm_exc_page_fault+0x1e/0x30
> [   73.734348] RIP: 0033:0x55d3d2da7658
> [   73.750529] Code: 25 00 80 00 ff 05 00 00 00 01 09 d8 48 8b 54 24
> 08 64 48 2b 14 25 28 00 00 00 75 5a 48 83 c4 10 5b 5d 41 5c c3 0f 1f
> 44 00 00 <48> 8b 05 81 4c 32 00 4c 8d 4c 24 04 ff 50 20 83 f8 ff 74 0a
> 85 c0
> [   73.836254] RSP: 002b:00007f0cb9ffadf0 EFLAGS: 00010246
> [   73.860578] RAX: 0000000000000000 RBX: 0000000000020000 RCX: 0000000000020000
> [   73.894417] RDX: 00007f0c616c5d00 RSI: 00007f0c9c2026a0 RDI: 00007f0c9c020bd0
> [   73.926629] RBP: 00007f0c9c2026a0 R08: 0000000000020000 R09: 0000000000000000
> [   73.958922] R10: 0000000000020000 R11: 00007f0c616c5d00 R12: 00007f0c616c5d00
> [   73.991337] R13: 0000000000000002 R14: 00007f0e19ca43f0 R15: 0000000000000000
> [   74.024964]  </TASK>
> 
> 
> Kernel config is attached.



-- 
Kees Cook

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

* Re: linux-next: panic on 20220307 tree
  2022-03-10 16:29 ` Kees Cook
@ 2022-03-10 16:54   ` David Hildenbrand
  0 siblings, 0 replies; 3+ messages in thread
From: David Hildenbrand @ 2022-03-10 16:54 UTC (permalink / raw)
  To: Kees Cook, Murphy Zhou, Hugh Dickins, Andrew Morton; +Cc: Linux-Next

On 10.03.22 17:29, Kees Cook wrote:
> On Tue, Mar 08, 2022 at 10:44:57AM +0800, Murphy Zhou wrote:
>> Hi,
>>
>> Hit this shortly after build the next tree and reboot.
>>
>> [   72.985994] ------------[ cut here ]------------
>> [   72.986023] ------------[ cut here ]------------
>> [   73.009468] kernel BUG at include/linux/swapops.h:258!
>> [   73.033065] kernel BUG at include/linux/swapops.h:258!
> 
> This is in here:
> 
> static inline struct page *pfn_swap_entry_to_page(swp_entry_t entry)
> {
>         struct page *p = pfn_to_page(swp_offset(entry));
> 
>         /*
>          * Any use of migration entries may only occur while the
>          * corresponding page is locked
>          */
>         BUG_ON(is_migration_entry(entry) && !PageLocked(p));
> 
>         return p;
> }
> 
> Hugh, David, Andrew, might any of the recent mm/memory.c work caused
> problems in here? (Or is this already fixed?)

Maybe related to:

https://lore.kernel.org/all/8f419d19-c83d-bbcd-8936-2d64ced7464c@google.com/T/#u

which should be fixed now.

-- 
Thanks,

David / dhildenb


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

end of thread, other threads:[~2022-03-10 16:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-08  2:44 linux-next: panic on 20220307 tree Murphy Zhou
2022-03-10 16:29 ` Kees Cook
2022-03-10 16:54   ` David Hildenbrand

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.