syzbot


WARNING in __change_page_attr_set_clr

Status: upstream: reported C repro on 2022/09/25 11:18
Reported-by: syzbot+cdcd5043ce8155d92ab1@syzkaller.appspotmail.com
First crash: 71d, last: 45d

Sample crash report:
------------[ cut here ]------------
CPA refuse W^X violation: 8000000000000163 -> 0000000000000163 range: 0xffffffffa0401000 - 0xffffffffa0401fff PFN 200fb
WARNING: CPU: 1 PID: 3616 at arch/x86/mm/pat/set_memory.c:601 verify_rwx arch/x86/mm/pat/set_memory.c:601 [inline]
WARNING: CPU: 1 PID: 3616 at arch/x86/mm/pat/set_memory.c:601 __change_page_attr arch/x86/mm/pat/set_memory.c:1570 [inline]
WARNING: CPU: 1 PID: 3616 at arch/x86/mm/pat/set_memory.c:601 __change_page_attr_set_clr+0x1faa/0x2080 arch/x86/mm/pat/set_memory.c:1692
Modules linked in:
CPU: 1 PID: 3616 Comm: syz-executor213 Not tainted 6.0.0-rc6-next-20220923-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
RIP: 0010:verify_rwx arch/x86/mm/pat/set_memory.c:601 [inline]
RIP: 0010:__change_page_attr arch/x86/mm/pat/set_memory.c:1570 [inline]
RIP: 0010:__change_page_attr_set_clr+0x1faa/0x2080 arch/x86/mm/pat/set_memory.c:1692
Code: 8b 44 24 50 4d 89 f1 4c 89 e2 4c 89 ee 48 c7 c7 80 0c ea 89 c6 05 68 26 94 0c 01 4c 8d 80 ff 0f 00 00 48 89 c1 e8 56 a4 10 08 <0f> 0b e9 68 fc ff ff e8 6a b3 91 00 e9 be f7 ff ff 48 8b 7c 24 08
RSP: 0018:ffffc90003c7f6c0 EFLAGS: 00010286
RAX: 0000000000000000 RBX: 80000000200fb163 RCX: 0000000000000000
RDX: ffff88807ab50000 RSI: ffffffff81620008 RDI: fffff5200078feca
RBP: 0000000000000001 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000001 R11: 7566657220415043 R12: 0000000000000163
R13: 8000000000000163 R14: 00000000000200fb R15: 0000000000000000
FS:  0000555556e04300(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000002062b000 CR3: 0000000075510000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 change_page_attr_set_clr+0x333/0x500 arch/x86/mm/pat/set_memory.c:1785
 change_page_attr_clear arch/x86/mm/pat/set_memory.c:1822 [inline]
 set_memory_x+0xb2/0x110 arch/x86/mm/pat/set_memory.c:2000
 bpf_jit_alloc_exec_page+0x69/0x80 kernel/bpf/trampoline.c:131
 bpf_dispatcher_change_prog+0x303/0x8f0 kernel/bpf/dispatcher.c:143
 bpf_prog_test_run_xdp+0x95e/0x1440 net/bpf/test_run.c:1386
 bpf_prog_test_run kernel/bpf/syscall.c:3630 [inline]
 __sys_bpf+0x10a0/0x4cf0 kernel/bpf/syscall.c:4983
 __do_sys_bpf kernel/bpf/syscall.c:5069 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:5067 [inline]
 __x64_sys_bpf+0x75/0xb0 kernel/bpf/syscall.c:5067
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f042c898d39
Code: 28 c3 e8 2a 14 00 00 66 2e 0f 1f 84 00 00 00 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffe73d9be08 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f042c898d39
RDX: 0000000000000048 RSI: 0000000020000740 RDI: 000000000000000a
RBP: 00007f042c85cee0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f042c85cf70
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
 </TASK>

Crashes (1494):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-linux-next-kasan-gce-root 2022/10/12 13:12 linux-next aaa11ce2ffc8 16a9c9e0 .config log report syz C WARNING in __change_page_attr_set_clr
ci-upstream-linux-next-kasan-gce-root 2022/10/11 09:46 linux-next aaa11ce2ffc8 2b253ced .config log report syz C WARNING in __change_page_attr_set_clr
ci-upstream-linux-next-kasan-gce-root 2022/10/10 17:54 linux-next aaa11ce2ffc8 aea5da89 .config log report syz C WARNING in __change_page_attr_set_clr
ci-upstream-linux-next-kasan-gce-root 2022/10/10 04:18 linux-next aaa11ce2ffc8 aea5da89 .config log report syz C WARNING in __change_page_attr_set_clr
ci-upstream-linux-next-kasan-gce-root 2022/10/03 09:37 linux-next aaa11ce2ffc8 feb56351 .config log report syz C WARNING in __change_page_attr_set_clr
ci-upstream-linux-next-kasan-gce-root 2022/10/02 10:01 linux-next aaa11ce2ffc8 feb56351 .config log report syz C WARNING in __change_page_attr_set_clr
ci-upstream-linux-next-kasan-gce-root 2022/10/01 02:26 linux-next aaa11ce2ffc8 feb56351 .config log report syz C WARNING in __change_page_attr_set_clr
ci-upstream-linux-next-kasan-gce-root 2022/09/30 22:54 linux-next aaa11ce2ffc8 feb56351 .config log report syz C WARNING in __change_page_attr_set_clr
ci-upstream-linux-next-kasan-gce-root 2022/09/30 12:01 linux-next aaa11ce2ffc8 1d385642 .config log report syz C WARNING in __change_page_attr_set_clr
ci-upstream-linux-next-kasan-gce-root 2022/09/30 11:11 linux-next aaa11ce2ffc8 1d385642 .config log report syz C WARNING in __change_page_attr_set_clr
ci-upstream-linux-next-kasan-gce-root 2022/09/29 08:05 linux-next aaa11ce2ffc8 e2556bc3 .config log report syz C WARNING in __change_page_attr_set_clr
ci-upstream-linux-next-kasan-gce-root 2022/09/28 21:38 linux-next aaa11ce2ffc8 e2556bc3 .config log report syz C WARNING in __change_page_attr_set_clr
ci-upstream-linux-next-kasan-gce-root 2022/09/28 20:03 linux-next aaa11ce2ffc8 e2556bc3 .config log report syz C WARNING in __change_page_attr_set_clr
ci-upstream-linux-next-kasan-gce-root 2022/09/22 04:22 linux-next 483fed3b5dc8 60af5050 .config log report syz C WARNING in __change_page_attr_set_clr
ci-upstream-linux-next-kasan-gce-root 2022/10/17 01:10 linux-next aaa11ce2ffc8 67cb024c .config log report info WARNING in __change_page_attr_set_clr
ci-upstream-linux-next-kasan-gce-root 2022/10/16 21:08 linux-next aaa11ce2ffc8 67cb024c .config log report info WARNING in __change_page_attr_set_clr
ci-upstream-linux-next-kasan-gce-root 2022/10/16 20:03 linux-next aaa11ce2ffc8 67cb024c .config log report info WARNING in __change_page_attr_set_clr
ci-upstream-linux-next-kasan-gce-root 2022/10/16 17:44 linux-next aaa11ce2ffc8 67cb024c .config log report info WARNING in __change_page_attr_set_clr
ci-upstream-linux-next-kasan-gce-root 2022/10/16 12:25 linux-next aaa11ce2ffc8 67cb024c .config log report info WARNING in __change_page_attr_set_clr
ci-upstream-linux-next-kasan-gce-root 2022/10/16 11:13 linux-next aaa11ce2ffc8 67cb024c .config log report info WARNING in __change_page_attr_set_clr
ci-upstream-linux-next-kasan-gce-root 2022/10/16 10:35 linux-next aaa11ce2ffc8 67cb024c .config log report info WARNING in __change_page_attr_set_clr
ci-upstream-linux-next-kasan-gce-root 2022/10/16 04:03 linux-next aaa11ce2ffc8 67cb024c .config log report info WARNING in __change_page_attr_set_clr
ci-upstream-linux-next-kasan-gce-root 2022/10/16 02:50 linux-next aaa11ce2ffc8 67cb024c .config log report info WARNING in __change_page_attr_set_clr
ci-upstream-linux-next-kasan-gce-root 2022/10/16 01:53 linux-next aaa11ce2ffc8 67cb024c .config log report info WARNING in __change_page_attr_set_clr
ci-upstream-linux-next-kasan-gce-root 2022/10/16 00:51 linux-next aaa11ce2ffc8 67cb024c .config log report info WARNING in __change_page_attr_set_clr
ci-upstream-linux-next-kasan-gce-root 2022/10/15 22:44 linux-next aaa11ce2ffc8 67cb024c .config log report info WARNING in __change_page_attr_set_clr
ci-upstream-linux-next-kasan-gce-root 2022/10/15 21:31 linux-next aaa11ce2ffc8 67cb024c .config log report info WARNING in __change_page_attr_set_clr
ci-upstream-linux-next-kasan-gce-root 2022/10/15 20:05 linux-next aaa11ce2ffc8 67cb024c .config log report info WARNING in __change_page_attr_set_clr
ci-upstream-linux-next-kasan-gce-root 2022/10/15 18:41 linux-next aaa11ce2ffc8 67cb024c .config log report info WARNING in __change_page_attr_set_clr
ci-upstream-linux-next-kasan-gce-root 2022/10/15 17:39 linux-next aaa11ce2ffc8 67cb024c .config log report info WARNING in __change_page_attr_set_clr
ci-upstream-linux-next-kasan-gce-root 2022/10/15 14:30 linux-next aaa11ce2ffc8 67cb024c .config log report info WARNING in __change_page_attr_set_clr
ci-upstream-linux-next-kasan-gce-root 2022/10/15 11:56 linux-next aaa11ce2ffc8 67cb024c .config log report info WARNING in __change_page_attr_set_clr
ci-upstream-linux-next-kasan-gce-root 2022/10/15 10:26 linux-next aaa11ce2ffc8 67cb024c .config log report info WARNING in __change_page_attr_set_clr
ci-upstream-linux-next-kasan-gce-root 2022/10/15 09:09 linux-next aaa11ce2ffc8 67cb024c .config log report info WARNING in __change_page_attr_set_clr
ci-upstream-linux-next-kasan-gce-root 2022/10/15 07:51 linux-next aaa11ce2ffc8 67cb024c .config log report info WARNING in __change_page_attr_set_clr
ci-upstream-linux-next-kasan-gce-root 2022/10/15 07:17 linux-next aaa11ce2ffc8 67cb024c .config log report info WARNING in __change_page_attr_set_clr
ci-upstream-linux-next-kasan-gce-root 2022/10/15 07:11 linux-next aaa11ce2ffc8 67cb024c .config log report info WARNING in __change_page_attr_set_clr
ci-upstream-linux-next-kasan-gce-root 2022/10/14 22:53 linux-next aaa11ce2ffc8 4954e4b2 .config log report info WARNING in __change_page_attr_set_clr
ci-upstream-linux-next-kasan-gce-root 2022/10/14 21:21 linux-next aaa11ce2ffc8 4954e4b2 .config log report info WARNING in __change_page_attr_set_clr
ci-upstream-linux-next-kasan-gce-root 2022/10/14 19:21 linux-next aaa11ce2ffc8 4954e4b2 .config log report info WARNING in __change_page_attr_set_clr
ci-upstream-linux-next-kasan-gce-root 2022/10/14 18:06 linux-next aaa11ce2ffc8 4954e4b2 .config log report info WARNING in __change_page_attr_set_clr
ci-upstream-linux-next-kasan-gce-root 2022/10/14 15:50 linux-next aaa11ce2ffc8 4954e4b2 .config log report info WARNING in __change_page_attr_set_clr
ci-upstream-linux-next-kasan-gce-root 2022/10/14 14:42 linux-next aaa11ce2ffc8 4954e4b2 .config log report info WARNING in __change_page_attr_set_clr
ci-upstream-linux-next-kasan-gce-root 2022/10/14 14:01 linux-next aaa11ce2ffc8 4954e4b2 .config log report info WARNING in __change_page_attr_set_clr
ci-upstream-linux-next-kasan-gce-root 2022/10/14 12:29 linux-next aaa11ce2ffc8 4954e4b2 .config log report info WARNING in __change_page_attr_set_clr
ci-upstream-linux-next-kasan-gce-root 2022/10/14 12:28 linux-next aaa11ce2ffc8 4954e4b2 .config log report info WARNING in __change_page_attr_set_clr
ci-upstream-linux-next-kasan-gce-root 2022/10/14 02:53 linux-next aaa11ce2ffc8 adf90437 .config log report info WARNING in __change_page_attr_set_clr
ci-upstream-linux-next-kasan-gce-root 2022/10/14 01:22 linux-next aaa11ce2ffc8 adf90437 .config log report info WARNING in __change_page_attr_set_clr
ci-upstream-linux-next-kasan-gce-root 2022/10/13 23:15 linux-next aaa11ce2ffc8 adf90437 .config log report info WARNING in __change_page_attr_set_clr
ci-upstream-linux-next-kasan-gce-root 2022/10/13 22:13 linux-next aaa11ce2ffc8 adf90437 .config log report info WARNING in __change_page_attr_set_clr
ci-upstream-linux-next-kasan-gce-root 2022/10/13 21:00 linux-next aaa11ce2ffc8 adf90437 .config log report info WARNING in __change_page_attr_set_clr
ci-upstream-linux-next-kasan-gce-root 2022/10/13 20:11 linux-next aaa11ce2ffc8 adf90437 .config log report info WARNING in __change_page_attr_set_clr
ci-upstream-linux-next-kasan-gce-root 2022/10/13 19:07 linux-next aaa11ce2ffc8 adf90437 .config log report info WARNING in __change_page_attr_set_clr
ci-upstream-linux-next-kasan-gce-root 2022/10/13 17:40 linux-next aaa11ce2ffc8 adf90437 .config log report info WARNING in __change_page_attr_set_clr
ci-upstream-linux-next-kasan-gce-root 2022/10/13 16:36 linux-next aaa11ce2ffc8 adf90437 .config log report info WARNING in __change_page_attr_set_clr
ci-upstream-linux-next-kasan-gce-root 2022/10/13 16:21 linux-next aaa11ce2ffc8 adf90437 .config log report info WARNING in __change_page_attr_set_clr
ci-upstream-linux-next-kasan-gce-root 2022/10/13 15:19 linux-next aaa11ce2ffc8 adf90437 .config log report info WARNING in __change_page_attr_set_clr
ci-upstream-linux-next-kasan-gce-root 2022/10/13 02:13 linux-next aaa11ce2ffc8 89b5a509 .config log report info WARNING in __change_page_attr_set_clr
ci-upstream-linux-next-kasan-gce-root 2022/09/21 11:16 linux-next 483fed3b5dc8 380f82fb .config log report info WARNING in __change_page_attr_set_clr
* Struck through repros no longer work on HEAD.