WARNING: CPU: 29 PID: 17448 at mm/gup.c:1101 __get_user_pages+0x509/0x5e0

From: Toralf Förster
Date: Tue Jul 25 2023 - 14:00:39 EST


This is new at a hardened Gentoo Linux with 6.4.6 (.config attached) :


# uname -a
Linux mr-fox 6.4.6 #7 SMP Mon Jul 24 19:32:47 UTC 2023 x86_64 AMD Ryzen
9 5950X 16-Core Processor AuthenticAMD GNU/Linux


Jul 25 10:23:03 mr-fox kernel: ------------[ cut here ]------------
Jul 25 10:23:03 mr-fox kernel: WARNING: CPU: 29 PID: 17448 at
mm/gup.c:1101 __get_user_pages+0x509/0x5e0
Jul 25 10:23:03 mr-fox kernel: CPU: 29 PID: 17448 Comm: test Tainted: G
T 6.4.6 #7
Jul 25 10:23:03 mr-fox kernel: Hardware name: ASUS System Product
Name/Pro WS 565-ACE, BIOS 0502 01/15/2021
Jul 25 10:23:03 mr-fox kernel: RIP: 0010:__get_user_pages+0x509/0x5e0
Jul 25 10:23:03 mr-fox kernel: Code: 40 38 48 8b 40 08 e8 f6 f7 74 00 e9
cb fd ff ff 48 89 d1 48 f7 d1 48 21 c1 f7 c1 81 01 00 00 0f 85 bf fc ff
ff e9 6e ff ff ff <0f> 0b e9 94 fb ff ff f6 c3 04 0f 85 5e ff ff ff 49
8b 07 48 8b 0d
Jul 25 10:23:03 mr-fox kernel: RSP: 0018:ffffb73c86edfb70 EFLAGS: 00010202
Jul 25 10:23:03 mr-fox kernel: RAX: ffff9ceef57cc840 RBX:
0000000000210003 RCX: 0000000000000000
Jul 25 10:23:03 mr-fox kernel: RDX: 0000000000000000 RSI:
00007f8e96df9000 RDI: 0000000000000000
Jul 25 10:23:03 mr-fox kernel: RBP: 0000000000000000 R08:
0000000000000000 R09: 0000000000000000
Jul 25 10:23:03 mr-fox kernel: R10: 0000000000000000 R11:
0000000000000000 R12: ffff9cde415a2100
Jul 25 10:23:03 mr-fox kernel: R13: ffff9ceef57cc840 R14:
ffffb73c86edfd60 R15: ffffb73c86edfd60
Jul 25 10:23:03 mr-fox kernel: FS: 0000000000000000(0000)
GS:ffff9cfb2ef40000(0000) knlGS:0000000000000000
Jul 25 10:23:03 mr-fox kernel: CS: 0010 DS: 0000 ES: 0000 CR0:
0000000080050033
Jul 25 10:23:03 mr-fox kernel: CR2: 00007f8e96df9064 CR3:
000000098c258000 CR4: 0000000000750ee0
Jul 25 10:23:03 mr-fox kernel: PKRU: 55555554
Jul 25 10:23:03 mr-fox kernel: Call Trace:
Jul 25 10:23:03 mr-fox kernel: <TASK>
Jul 25 10:23:03 mr-fox kernel: ? __warn+0x66/0xc0
Jul 25 10:23:03 mr-fox kernel: ? __get_user_pages+0x509/0x5e0
Jul 25 10:23:03 mr-fox kernel: ? report_bug+0x177/0x1c0
Jul 25 10:23:03 mr-fox kernel: ? handle_bug+0x3c/0x70
Jul 25 10:23:03 mr-fox kernel: ? exc_invalid_op+0x17/0x80
Jul 25 10:23:03 mr-fox kernel: ? asm_exc_invalid_op+0x1a/0x20
Jul 25 10:23:03 mr-fox kernel: ? __get_user_pages+0x509/0x5e0
Jul 25 10:23:03 mr-fox kernel: __gup_longterm_locked+0xc9/0xb80
Jul 25 10:23:03 mr-fox kernel: ? kmem_cache_free+0x24a/0x2f0
Jul 25 10:23:03 mr-fox kernel: internal_get_user_pages_fast+0x493/0xe70
Jul 25 10:23:03 mr-fox kernel: get_user_pages_fast+0x42/0x70
Jul 25 10:23:03 mr-fox kernel: get_futex_key+0x8b/0x580
Jul 25 10:23:03 mr-fox kernel: futex_wake+0x66/0x180
Jul 25 10:23:03 mr-fox kernel: do_futex+0x10c/0x270
Jul 25 10:23:03 mr-fox kernel: mm_release+0xce/0xe0
Jul 25 10:23:03 mr-fox kernel: do_exit+0x274/0xa30
Jul 25 10:23:03 mr-fox kernel: __x64_sys_exit+0x16/0x20
Jul 25 10:23:03 mr-fox kernel: do_syscall_64+0x67/0xa0
Jul 25 10:23:03 mr-fox kernel: entry_SYSCALL_64_after_hwframe+0x4b/0xb5
Jul 25 10:23:03 mr-fox kernel: RIP: 0033:0xc48fd0
Jul 25 10:23:03 mr-fox kernel: Code: ec 10 48 89 f8 48 89 45 f8 48 8b 78
10 48 8b 70 18 48 c7 c0 0b 00 00 00 0f 05 48 c7 c0 3c 00 00 00 48 c7 c7
01 00 00 00 0f 05 <48> bf c6 de 31 00 00 00 00 00 be 18 00 00 00 31 c0
89 c2 48 b9 60
Jul 25 10:23:03 mr-fox kernel: RSP: 002b:00007f8e96df8f70 EFLAGS:
00000202 ORIG_RAX: 000000000000003c
Jul 25 10:23:03 mr-fox kernel: RAX: ffffffffffffffda RBX:
0000000000000000 RCX: 0000000000c48fd0
Jul 25 10:23:03 mr-fox kernel: RDX: 000000007fffffff RSI:
0000000001002000 RDI: 0000000000000001
Jul 25 10:23:03 mr-fox kernel: RBP: 00007f8e96df8f80 R08:
00007f8e96df9030 R09: 0000000000a9e270
Jul 25 10:23:03 mr-fox kernel: R10: 00007f8e96df9064 R11:
0000000000000202 R12: 0000000000000000
Jul 25 10:23:03 mr-fox kernel: R13: 0000000000000000 R14:
0000000000000000 R15: 0000000000000000
Jul 25 10:23:03 mr-fox kernel: </TASK>
Jul 25 10:23:03 mr-fox kernel: ---[ end trace 0000000000000000 ]---


--
Toralf

Attachment: config-6.4.6
Description: Unix manual page