[kernel?] general protection fault in psi_account_irqtime

0 views
Skip to first unread message

syzbot

unread,
Apr 27, 2023, 11:31:56 AM4/27/23
to syzkaller-upst...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 622322f53c6d Merge tag 'mips-fixes_6.3_2' of git://git.ker..
git tree: upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=111b9280280000
kernel config: https://syzkaller.appspot.com/x/.config?x=f50728861d49a880
dashboard link: https://syzkaller.appspot.com/bug?extid=50da92260e77238198ed
compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2
CC: [linux-...@vger.kernel.org tg...@linutronix.de]

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/fdea3f510259/disk-622322f5.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/e85900ffb2b0/vmlinux-622322f5.xz
kernel image: https://storage.googleapis.com/syzbot-assets/9c998b65dd6a/bzImage-622322f5.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+50da92...@syzkaller.appspotmail.com

general protection fault, probably for non-canonical address 0xdffffc0040000029: 0000 [#1] PREEMPT SMP KASAN
KASAN: probably user-memory-access in range [0x0000000200000148-0x000000020000014f]
CPU: 0 PID: 11808 Comm: syz-executor.1 Not tainted 6.3.0-rc7-syzkaller-00191-g622322f53c6d #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023
RIP: 0010:cgroup_ino include/linux/cgroup.h:568 [inline]
RIP: 0010:cgroup_psi include/linux/psi.h:36 [inline]
RIP: 0010:task_psi_group kernel/sched/psi.c:865 [inline]
RIP: 0010:psi_account_irqtime+0x115/0x520 kernel/sched/psi.c:994
Code: 80 3c 02 00 0f 85 e7 03 00 00 49 8b 9c 24 88 00 00 00 48 b8 00 00 00 00 00 fc ff df 48 8d bb 48 01 00 00 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 db 03 00 00 4c 8b a3 48 01 00 00 48 b8 00 00 00
RSP: 0018:ffffc90000007cc0 EFLAGS: 00010002
RAX: dffffc0000000000 RBX: 0000000200000001 RCX: 0000000000000001
RDX: 0000000040000029 RSI: 0000000000010003 RDI: 0000000200000149
RBP: 00000000002df8b1 R08: 0000008196abce02 R09: 0000000000000003
R10: fffff52000000f94 R11: 0000000000000000 R12: ffff88804016e000
R13: 0000000000000000 R14: 0000008196abce02 R15: ffff8880b983ccd8
FS: 00007f778b8ce700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000100040048 CR3: 000000002996f000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<IRQ>
update_rq_clock_task kernel/sched/core.c:706 [inline]
update_rq_clock kernel/sched/core.c:749 [inline]
update_rq_clock+0x241/0xaa0 kernel/sched/core.c:730
ttwu_queue kernel/sched/core.c:3955 [inline]
try_to_wake_up+0xc82/0x1c40 kernel/sched/core.c:4278
hrtimer_wakeup+0x47/0x60 kernel/time/hrtimer.c:1939
__run_hrtimer kernel/time/hrtimer.c:1685 [inline]
__hrtimer_run_queues+0x5fa/0xbe0 kernel/time/hrtimer.c:1749
hrtimer_interrupt+0x320/0x7b0 kernel/time/hrtimer.c:1811
local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1096 [inline]
__sysvec_apic_timer_interrupt+0x14a/0x430 arch/x86/kernel/apic/apic.c:1113
sysvec_apic_timer_interrupt+0x92/0xc0 arch/x86/kernel/apic/apic.c:1107
</IRQ>
<TASK>
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:645
RIP: 0010:memmove+0x1ac/0x1b0 arch/x86/lib/memmove_64.S:213
Code: fa 02 72 16 66 44 8b 1e 66 44 8b 54 16 fe 66 44 89 1f 66 44 89 54 17 fe eb 0c 48 83 fa 01 72 06 44 8a 1e 44 88 1f c3 48 89 d1 <f3> a4 c3 90 f3 0f 1e fa eb 3a 0f 1f 00 49 89 f9 48 89 d1 83 e2 07
RSP: 0018:ffffc90003d5efb0 EFLAGS: 00010286
RAX: ffff88803f351fb4 RBX: 0000000000000002 RCX: ffffffffff11becc
RDX: ffffffffffffffe0 RSI: ffff8880402360b8 RDI: ffff8880402360c8
RBP: 0000000000000020 R08: ffff88803f351f84 R09: 0000000100000001
R10: 0004004800000002 R11: 0000000100000001 R12: 0000000000000001
R13: 0000000000000000 R14: ffff88803f351fa4 R15: 0000000000000010
leaf_paste_entries+0x44d/0x910 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+0x9853/0xddc0 fs/reiserfs/do_balan.c:1452
do_balance+0x319/0x810 fs/reiserfs/do_balan.c:1888
reiserfs_paste_into_item+0x74b/0x8d0 fs/reiserfs/stree.c:2159
reiserfs_add_entry+0x8cb/0xcf0 fs/reiserfs/namei.c:567
reiserfs_mkdir+0x683/0x990 fs/reiserfs/namei.c:862
xattr_mkdir fs/reiserfs/xattr.c:76 [inline]
create_privroot fs/reiserfs/xattr.c:882 [inline]
reiserfs_xattr_init+0x57e/0xc30 fs/reiserfs/xattr.c:1005
reiserfs_fill_super+0x2127/0x2ea0 fs/reiserfs/super.c:2175
mount_bdev+0x351/0x410 fs/super.c:1380
legacy_get_tree+0x109/0x220 fs/fs_context.c:610
vfs_get_tree+0x8d/0x350 fs/super.c:1510
do_new_mount fs/namespace.c:3042 [inline]
path_mount+0x1342/0x1e40 fs/namespace.c:3372
do_mount fs/namespace.c:3385 [inline]
__do_sys_mount fs/namespace.c:3594 [inline]
__se_sys_mount fs/namespace.c:3571 [inline]
__x64_sys_mount+0x283/0x300 fs/namespace.c:3571
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f778aa8d69a
Code: 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff eb d2 e8 b8 04 00 00 0f 1f 84 00 00 00 00 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f778b8cdf88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000000001115 RCX: 00007f778aa8d69a
RDX: 0000000020001100 RSI: 00000000200001c0 RDI: 00007f778b8cdfe0
RBP: 00007f778b8ce020 R08: 00007f778b8ce020 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000202 R12: 0000000020001100
R13: 00000000200001c0 R14: 00007f778b8cdfe0 R15: 0000000020000240
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:cgroup_ino include/linux/cgroup.h:568 [inline]
RIP: 0010:cgroup_psi include/linux/psi.h:36 [inline]
RIP: 0010:task_psi_group kernel/sched/psi.c:865 [inline]
RIP: 0010:psi_account_irqtime+0x115/0x520 kernel/sched/psi.c:994
Code: 80 3c 02 00 0f 85 e7 03 00 00 49 8b 9c 24 88 00 00 00 48 b8 00 00 00 00 00 fc ff df 48 8d bb 48 01 00 00 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 db 03 00 00 4c 8b a3 48 01 00 00 48 b8 00 00 00
RSP: 0018:ffffc90000007cc0 EFLAGS: 00010002
RAX: dffffc0000000000 RBX: 0000000200000001 RCX: 0000000000000001
RDX: 0000000040000029 RSI: 0000000000010003 RDI: 0000000200000149
RBP: 00000000002df8b1 R08: 0000008196abce02 R09: 0000000000000003
R10: fffff52000000f94 R11: 0000000000000000 R12: ffff88804016e000
R13: 0000000000000000 R14: 0000008196abce02 R15: ffff8880b983ccd8
FS: 00007f778b8ce700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000100040048 CR3: 000000002996f000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1)
4: 0f 85 e7 03 00 00 jne 0x3f1
a: 49 8b 9c 24 88 00 00 mov 0x88(%r12),%rbx
11: 00
12: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax
19: fc ff df
1c: 48 8d bb 48 01 00 00 lea 0x148(%rbx),%rdi
23: 48 89 fa mov %rdi,%rdx
26: 48 c1 ea 03 shr $0x3,%rdx
* 2a: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) <-- trapping instruction
2e: 0f 85 db 03 00 00 jne 0x40f
34: 4c 8b a3 48 01 00 00 mov 0x148(%rbx),%r12
3b: 48 rex.W
3c: b8 .byte 0xb8
3d: 00 00 add %al,(%rax)


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

If the bug is already fixed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want to change bug's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If you want to unassign a label, reply with:
#syz unset some-label

If the bug is a duplicate of another bug, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup

syzbot

unread,
Jun 8, 2023, 6:56:38 AM6/8/23
to syzkaller-upst...@googlegroups.com
Sending this report to the next reporting stage.
Reply all
Reply to author
Forward
0 new messages