syzbot


general protection fault in stack_depot_save_flags

Status: closed as invalid on 2025/04/14 03:52
Subsystems: net
[Documentation on labels]
First crash: 204d, last: 167d

Sample crash report:
Oops: general protection fault, probably for non-canonical address 0x1af55c5e8c68959: 0000 [#1] PREEMPT SMP KASAN PTI
CPU: 1 UID: 0 PID: 6573 Comm: dhcpcd-run-hook Not tainted 6.14.0-rc5-syzkaller-00234-gb7c90e3e717a #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
RIP: 0010:find_stack lib/stackdepot.c:553 [inline]
RIP: 0010:stack_depot_save_flags+0x1b4/0x940 lib/stackdepot.c:618
Code: 00 31 f6 48 89 d5 4c 89 cb e8 f8 ba c7 ff 49 89 d9 8b 5c 24 04 48 89 ea 4c 8b 44 24 08 45 85 e4 75 67 4d 8b 3f 49 39 d7 74 5c <45> 39 77 10 75 f2 45 39 4f 14 75 ec 31 c0 49 8b 0c c0 49 3b 4c c7
RSP: 0018:ffffc900054eecd0 EFLAGS: 00010207
RAX: ffff88823ae00000 RBX: 0000000000000001 RCX: 00000000005418e0
RDX: ffff88823b3418e0 RSI: 0000000000000002 RDI: 00000000622c4360
RBP: 00000000eeae07eb R08: ffffc900054eed80 R09: 0000000000000010
R10: ffffc900054eec10 R11: ffffffff81ad6ae0 R12: dffffc0000000000
R13: 0000000000000010 R14: 00000000b4e5418e R15: 01af55c5e8c68949
FS:  00007ff4f54f5380(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ff4f56e25e8 CR3: 000000007b130000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 save_stack+0x109/0x1f0 mm/page_owner.c:157
 __set_page_owner+0x89/0x530 mm/page_owner.c:320
 set_page_owner include/linux/page_owner.h:32 [inline]
 post_alloc_hook+0x1f4/0x240 mm/page_alloc.c:1551
 prep_new_page mm/page_alloc.c:1559 [inline]
 get_page_from_freelist+0x3651/0x37a0 mm/page_alloc.c:3477
 __alloc_frozen_pages_noprof+0x292/0x710 mm/page_alloc.c:4739
 alloc_pages_mpol+0x311/0x660 mm/mempolicy.c:2270
 alloc_frozen_pages_noprof mm/mempolicy.c:2341 [inline]
 alloc_pages_noprof+0x121/0x190 mm/mempolicy.c:2361
 pagetable_alloc_noprof include/linux/mm.h:2900 [inline]
 __pud_alloc_one_noprof include/asm-generic/pgalloc.h:172 [inline]
 pud_alloc_one_noprof include/asm-generic/pgalloc.h:193 [inline]
 __pud_alloc+0x91/0x2b0 mm/memory.c:6441
 pud_alloc include/linux/mm.h:2857 [inline]
 __handle_mm_fault+0x495f/0x70f0 mm/memory.c:5972
 handle_mm_fault+0x2c1/0x7e0 mm/memory.c:6212
 faultin_page mm/gup.c:1196 [inline]
 __get_user_pages+0x1a92/0x4140 mm/gup.c:1491
 __get_user_pages_locked mm/gup.c:1757 [inline]
 get_user_pages_remote+0x31e/0xb60 mm/gup.c:2661
 get_arg_page+0x126/0x360 fs/exec.c:217
 copy_string_kernel+0x176/0x240 fs/exec.c:676
 do_execveat_common+0x3fc/0x710 fs/exec.c:1937
 do_execve fs/exec.c:2040 [inline]
 __do_sys_execve fs/exec.c:2116 [inline]
 __se_sys_execve fs/exec.c:2111 [inline]
 __x64_sys_execve+0x92/0xb0 fs/exec.c:2111
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7ff4f562fef7
Code: ba 0f 00 5b 5d 41 5c 41 5d 41 5e 41 5f e9 63 d8 fb ff 48 83 c4 18 5b 5d 41 5c 41 5d 41 5e 41 5f c3 66 90 b8 3b 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 01 3f 0f 00 f7 d8 64 89 01 48
RSP: 002b:00007fff39bb6468 EFLAGS: 00000246 ORIG_RAX: 000000000000003b
RAX: ffffffffffffffda RBX: 0000562b5c2a8020 RCX: 00007ff4f562fef7
RDX: 0000562b5c2a8048 RSI: 0000562b5c2a8020 RDI: 0000562b5c2a80d0
RBP: 0000562b5c2a80d0 R08: 0000562b5c2a80d9 R09: 00007fff39bb9e6f
R10: 0000000000000008 R11: 0000000000000246 R12: 0000562b5c2a8048
R13: 00007ff4f57dd904 R14: 0000562b5c2a8048 R15: 0000000000000000
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:find_stack lib/stackdepot.c:553 [inline]
RIP: 0010:stack_depot_save_flags+0x1b4/0x940 lib/stackdepot.c:618
Code: 00 31 f6 48 89 d5 4c 89 cb e8 f8 ba c7 ff 49 89 d9 8b 5c 24 04 48 89 ea 4c 8b 44 24 08 45 85 e4 75 67 4d 8b 3f 49 39 d7 74 5c <45> 39 77 10 75 f2 45 39 4f 14 75 ec 31 c0 49 8b 0c c0 49 3b 4c c7
RSP: 0018:ffffc900054eecd0 EFLAGS: 00010207
RAX: ffff88823ae00000 RBX: 0000000000000001 RCX: 00000000005418e0
RDX: ffff88823b3418e0 RSI: 0000000000000002 RDI: 00000000622c4360
RBP: 00000000eeae07eb R08: ffffc900054eed80 R09: 0000000000000010
R10: ffffc900054eec10 R11: ffffffff81ad6ae0 R12: dffffc0000000000
R13: 0000000000000010 R14: 00000000b4e5418e R15: 01af55c5e8c68949
FS:  00007ff4f54f5380(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ff4f56e25e8 CR3: 000000007b130000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	00 31                	add    %dh,(%rcx)
   2:	f6 48 89 d5          	testb  $0xd5,-0x77(%rax)
   6:	4c 89 cb             	mov    %r9,%rbx
   9:	e8 f8 ba c7 ff       	call   0xffc7bb06
   e:	49 89 d9             	mov    %rbx,%r9
  11:	8b 5c 24 04          	mov    0x4(%rsp),%ebx
  15:	48 89 ea             	mov    %rbp,%rdx
  18:	4c 8b 44 24 08       	mov    0x8(%rsp),%r8
  1d:	45 85 e4             	test   %r12d,%r12d
  20:	75 67                	jne    0x89
  22:	4d 8b 3f             	mov    (%r15),%r15
  25:	49 39 d7             	cmp    %rdx,%r15
  28:	74 5c                	je     0x86
* 2a:	45 39 77 10          	cmp    %r14d,0x10(%r15) <-- trapping instruction
  2e:	75 f2                	jne    0x22
  30:	45 39 4f 14          	cmp    %r9d,0x14(%r15)
  34:	75 ec                	jne    0x22
  36:	31 c0                	xor    %eax,%eax
  38:	49 8b 0c c0          	mov    (%r8,%rax,8),%rcx
  3c:	49                   	rex.WB
  3d:	3b                   	.byte 0x3b
  3e:	4c                   	rex.WR
  3f:	c7                   	.byte 0xc7

Crashes (8):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/03/09 09:37 upstream b7c90e3e717a 163f510d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in stack_depot_save_flags
2025/02/17 08:16 upstream ba643b6d8440 40a34ec9 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in stack_depot_save_flags
2025/02/01 00:19 upstream 69e858e0b8b2 aa47157c .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in stack_depot_save_flags
2025/01/31 23:39 upstream 69e858e0b8b2 aa47157c .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in stack_depot_save_flags
2025/01/31 19:49 upstream 69e858e0b8b2 aa47157c .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in stack_depot_save_flags
2025/03/06 02:08 upstream cfced12f5100 034534df .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel paging request in stack_depot_save_flags
2025/02/13 01:45 upstream 4dc1d1bec898 2afad16e .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel paging request in stack_depot_save_flags
2025/02/02 23:59 upstream 69e858e0b8b2 568559e4 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel NULL pointer dereference in stack_depot_save_flags
* Struck through repros no longer work on HEAD.