==================================================================
BUG: KASAN: unknown-crash in __run_hrtimer kernel/time/hrtimer.c:1669 [inline]
BUG: KASAN: unknown-crash in __hrtimer_run_queues+0xb18/0xc10 kernel/time/hrtimer.c:1752
Read of size 8 at addr ffffc9000485fc80 by task syz-executor.0/5462
CPU: 0 PID: 5462 Comm: syz-executor.0 Not tainted 6.5.0-rc7-next-20230822-syzkaller-g28c736b0e92e #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xd9/0x1b0 lib/dump_stack.c:106
print_address_description mm/kasan/report.c:364 [inline]
print_report+0xc4/0x620 mm/kasan/report.c:475
kasan_report+0xda/0x110 mm/kasan/report.c:588
__run_hrtimer kernel/time/hrtimer.c:1669 [inline]
__hrtimer_run_queues+0xb18/0xc10 kernel/time/hrtimer.c:1752
hrtimer_interrupt+0x31b/0x800 kernel/time/hrtimer.c:1814
local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1063 [inline]
__sysvec_apic_timer_interrupt+0x105/0x3f0 arch/x86/kernel/apic/apic.c:1080
sysvec_apic_timer_interrupt+0x8e/0xc0 arch/x86/kernel/apic/apic.c:1074
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:645
RIP: 0010:memmove+0x28/0x1b0 arch/x86/lib/memmove_64.S:44
Code: c3 90 f3 0f 1e fa 48 89 f8 48 39 fe 7d 0f 49 89 f0 49 01 d0 49 39 f8 0f 8f b5 00 00 00 48 83 fa 20 0f 82 01 01 00 00 48 89 d1 a4 c3 48 81 fa a8 02 00 00 72 05 40 38 fe 74 47 48 83 ea 20 48
RSP: 0018:ffffc90004caef18 EFLAGS: 00010286
RAX: ffff888065490fb4 RBX: 0000000000000002 RCX: fffffffffb6eb3f7
RDX: ffffffffffffffe0 RSI: ffff888069da5b8d RDI: ffff888069da5b9d
RBP: 0000000000000020 R08: ffff888065490f84 R09: 0000766972705f73
R10: 667265736965722e R11: 0000766972705f73 R12: 0000000000000001
R13: 0000000000000000 R14: ffff888065490fa4 R15: 0000000000000010
leaf_paste_entries+0x43c/0x920 fs/reiserfs/lbalance.c:1377
balance_leaf_finish_node_paste_dirent fs/reiserfs/do_balan.c:1295 [inline]
balance_leaf_finish_node_paste fs/reiserfs/do_balan.c:1321 [inline]
balance_leaf_finish_node fs/reiserfs/do_balan.c:1364 [inline]
balance_leaf+0x9476/0xcd90 fs/reiserfs/do_balan.c:1452
do_balance+0x337/0x840 fs/reiserfs/do_balan.c:1888
reiserfs_paste_into_item+0x62a/0x7c0 fs/reiserfs/stree.c:2157
reiserfs_add_entry+0x936/0xd20 fs/reiserfs/namei.c:565
reiserfs_mkdir+0x68a/0x9a0 fs/reiserfs/namei.c:860
xattr_mkdir fs/reiserfs/xattr.c:77 [inline]
create_privroot fs/reiserfs/xattr.c:891 [inline]
reiserfs_xattr_init+0x57f/0xbb0 fs/reiserfs/xattr.c:1007
reiserfs_fill_super+0x2139/0x3150 fs/reiserfs/super.c:2175
mount_bdev+0x1f3/0x2e0 fs/super.c:1592
legacy_get_tree+0x109/0x220 fs/fs_context.c:638
vfs_get_tree+0x8c/0x370 fs/super.c:1713
do_new_mount fs/namespace.c:3335 [inline]
path_mount+0x1492/0x1ed0 fs/namespace.c:3662
do_mount fs/namespace.c:3675 [inline]
__do_sys_mount fs/namespace.c:3884 [inline]
__se_sys_mount fs/namespace.c:3861 [inline]
__x64_sys_mount+0x293/0x310 fs/namespace.c:3861
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f12a8c7e1ea
Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 09 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f12a992eee8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f12a992ef80 RCX: 00007f12a8c7e1ea
RDX: 0000000020001100 RSI: 0000000020000040 RDI: 00007f12a992ef40
RBP: 0000000020001100 R08: 00007f12a992ef80 R09: 0000000000000080
R10: 0000000000000080 R11: 0000000000000246 R12: 0000000020000040
R13: 00007f12a992ef40 R14: 00000000000010f6 R15: 00000000200000c0
The buggy address belongs to the virtual mapping at
[ffffc90004858000, ffffc90004861000) created by:
kernel_clone+0xfd/0x930 kernel/fork.c:2916
The buggy address belongs to the physical page:
page:ffffea0001a5f040 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x697c1
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
page_type: 0xffffffff()
raw: 00fff00000000000 0000000000000000 dead000000000122 0000000000000000
raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 0, migratetype Unmovable, gfp_mask 0x102dc2(GFP_HIGHUSER|__GFP_NOWARN|__GFP_ZERO), pid 5385, tgid 5385 (syz-execprog), ts 96806686158, free_ts 96668437228
set_page_owner include/linux/page_owner.h:31 [inline]
post_alloc_hook+0x2cf/0x340 mm/page_alloc.c:1530
prep_new_page mm/page_alloc.c:1537 [inline]
get_page_from_freelist+0x10d7/0x31b0 mm/page_alloc.c:3213
__alloc_pages+0x1d0/0x4a0 mm/page_alloc.c:4469
alloc_pages+0x1a9/0x270 mm/mempolicy.c:2298
vm_area_alloc_pages mm/vmalloc.c:3063 [inline]
__vmalloc_area_node mm/vmalloc.c:3139 [inline]
__vmalloc_node_range+0xa6e/0x1540 mm/vmalloc.c:3320
alloc_thread_stack_node kernel/fork.c:309 [inline]
dup_task_struct kernel/fork.c:1121 [inline]
copy_process+0x13f1/0x7400 kernel/fork.c:2334
kernel_clone+0xfd/0x930 kernel/fork.c:2916
__do_sys_clone+0xba/0x100 kernel/fork.c:3059
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
page last free stack trace:
reset_page_owner include/linux/page_owner.h:24 [inline]
free_pages_prepare mm/page_alloc.c:1130 [inline]
free_unref_page_prepare+0x476/0xa40 mm/page_alloc.c:2342
free_unref_page+0x33/0x3b0 mm/page_alloc.c:2435
__unfreeze_partials+0x21d/0x240 mm/slub.c:2655
qlink_free mm/kasan/quarantine.c:166 [inline]
qlist_free_all+0x6a/0x170 mm/kasan/quarantine.c:185
kasan_quarantine_reduce+0x18b/0x1d0 mm/kasan/quarantine.c:292
__kasan_slab_alloc+0x65/0x90 mm/kasan/common.c:305
kasan_slab_alloc include/linux/kasan.h:188 [inline]
slab_post_alloc_hook mm/slab.h:762 [inline]
slab_alloc_node mm/slub.c:3478 [inline]
__kmem_cache_alloc_node+0x19b/0x350 mm/slub.c:3517
__do_kmalloc_node mm/slab_common.c:1022 [inline]
__kmalloc+0x4f/0x100 mm/slab_common.c:1036
kmalloc include/linux/slab.h:603 [inline]
tomoyo_add_entry security/tomoyo/common.c:2023 [inline]
tomoyo_supervisor+0xcdb/0xea0 security/tomoyo/common.c:2095
tomoyo_audit_path_log security/tomoyo/file.c:168 [inline]
tomoyo_execute_permission+0x38a/0x4a0 security/tomoyo/file.c:619
tomoyo_find_next_domain+0x367/0x2020 security/tomoyo/domain.c:752
tomoyo_bprm_check_security security/tomoyo/tomoyo.c:101 [inline]
tomoyo_bprm_check_security+0x12d/0x1d0 security/tomoyo/tomoyo.c:91
security_bprm_check+0x6a/0xe0 security/security.c:1103
search_binary_handler fs/exec.c:1727 [inline]
exec_binprm fs/exec.c:1781 [inline]
bprm_execve fs/exec.c:1856 [inline]
bprm_execve+0x74d/0x1a50 fs/exec.c:1812
do_execveat_common.isra.0+0x5d3/0x740 fs/exec.c:1964
do_execve fs/exec.c:2038 [inline]
__do_sys_execve fs/exec.c:2114 [inline]
__se_sys_execve fs/exec.c:2109 [inline]
__x64_sys_execve+0x8c/0xb0 fs/exec.c:2109
Memory state around the buggy address:
ffffc9000485fb80: 20 00 04 00 01 00 00 00 01 ff 00 00 00 00 00 00
ffffc9000485fc00: 20 00 04 00 01 00 00 00 01 ff 00 00 00 00 00 00
>ffffc9000485fc80: 20 00 04 00 01 00 00 00 01 ff 00 00 00 00 00 00
^
ffffc9000485fd00: 20 00 04 00 01 00 00 00 01 ff 00 00 00 00 00 00
ffffc9000485fd80: 20 00 04 00 01 00 00 00 01 ff 00 00 00 00 00 00
==================================================================
BUG: unable to handle page fault for address: 0000000100040020
#PF: supervisor instruction fetch in kernel mode
#PF: error_code(0x0010) - not-present page
PGD 25706067 P4D 25706067 PUD 0
Oops: 0010 [#2] PREEMPT SMP KASAN
CPU: 0 PID: 5462 Comm: syz-executor.0 Tainted: G B D 6.5.0-rc7-next-20230822-syzkaller-g28c736b0e92e #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023
RIP: 0010:0x100040020
Code: Unable to access opcode bytes at 0x10003fff6.
RSP: 0018:ffffc90000007e38 EFLAGS: 00010046
RAX: ffff888079a28000 RBX: ffff8880b982b9c0 RCX: 1ffff1100f345156
RDX: ffff888079a28000 RSI: ffffffff8176bd0f RDI: ffffc9000485fc58
RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: 3d3d3d3d3d3d3d3d R12: ffff8880b982b940
R13: 0000000000000000 R14: ffffc9000485fc58 R15: 0000000100040020
FS: 00007f12a992f6c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000100040020 CR3: 000000005266b000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
Modules linked in:
CR2: 0000000100040020
---[ end trace 0000000000000000 ]---
RIP: 0010:__phys_addr+0xd3/0x140 arch/x86/mm/physaddr.c:28
Code: 48 89 d8 31 ff 48 d3 e8 48 89 c5 48 89 c6 e8 74 46 4c 00 48 85 ed 75 0d e8 da 4a 4c 00 48 89 d8 5b 5d 41 5c c3 e8 cd 4a 4c 00 <0f> 0b e8 c6 4a 4c 00 48 c7 c0 10 f0 99 8c 48 ba 00 00 00 00 00 fc
RSP: 0018:ffffc90000067cd8 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 0000778100040020 RCX: 0000000000000000
RDX: ffff888015668000 RSI: ffffffff813b8773 RDI: 0000000000000006
RBP: 0000000180040020 R08: 0000000000000006 R09: 0000000180040020
R10: 0000778100040020 R11: 0000000000000000 R12: 0000000000000000
R13: ffffc90000067d38 R14: 0000000100040020 R15: 0000000000000000
FS: 00007f12a992f6c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000100040020 CR3: 000000005266b000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: c3 ret
1: 90 nop
2: f3 0f 1e fa endbr64
6: 48 89 f8 mov %rdi,%rax
9: 48 39 fe cmp %rdi,%rsi
c: 7d 0f jge 0x1d
e: 49 89 f0 mov %rsi,%r8
11: 49 01 d0 add %rdx,%r8
14: 49 39 f8 cmp %rdi,%r8
17: 0f 8f b5 00 00 00 jg 0xd2
1d: 48 83 fa 20 cmp $0x20,%rdx
21: 0f 82 01 01 00 00 jb 0x128
27: 48 89 d1 mov %rdx,%rcx
* 2a: f3 a4 rep movsb %ds:(%rsi),%es:(%rdi) <-- trapping instruction
2c: c3 ret
2d: 48 81 fa a8 02 00 00 cmp $0x2a8,%rdx
34: 72 05 jb 0x3b
36: 40 38 fe cmp %dil,%sil
39: 74 47 je 0x82
3b: 48 83 ea 20 sub $0x20,%rdx
3f: 48 rex.W