syzbot


general protection fault in psi_account_irqtime

Status: upstream: reported C repro on 2023/06/08 10:56
Subsystems: virtualization reiserfs
[Documentation on labels]
Reported-by: syzbot+85fda6d9c9dfad58eaca@syzkaller.appspotmail.com
First crash: 229d, last: 41d
Cause bisection: failed (error log, bisect log)
  
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [virt?] [reiserfs?] general protection fault in psi_account_irqtime 0 (1) 2023/06/08 10:56
Last patch testing requests (4)
Created Duration User Patch Repo Result
2023/12/01 16:49 20m retest repro linux-next OK log
2023/10/26 15:41 29m retest repro linux-next report log
2023/09/22 14:49 23m retest repro linux-next report log
2023/08/17 12:59 24m retest repro linux-next report log
Cause bisection attempts (2)
Created Duration User Patch Repo Result
2023/09/23 14:10 4m bisect linux-next error job log (0)
2023/06/08 15:03 0m bisect linux-next error job log (0)
marked invalid by nogikh@google.com

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc0000001ff1: 0000 [#1] PREEMPT SMP KASAN
KASAN: probably user-memory-access in range [0x000000000000ff88-0x000000000000ff8f]
CPU: 1 PID: 262176 Comm:  Not tainted 6.4.0-rc2-next-20230515-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023
RIP: 0010:task_dfl_cgroup include/linux/cgroup.h:493 [inline]
RIP: 0010:task_psi_group kernel/sched/psi.c:884 [inline]
RIP: 0010:psi_account_irqtime+0xeb/0x520 kernel/sched/psi.c:1013
Code: 38 13 00 00 e8 06 ef ac 08 85 c0 0f 85 b6 02 00 00 49 8d bc 24 88 00 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 e7 03 00 00 49 8b 9c 24 88 00 00 00 48 b8 00 00
RSP: 0018:ffffc900001e0c18 EFLAGS: 00010002
RAX: dffffc0000000000 RBX: ffff888079e20000 RCX: 0000000000000001
RDX: 0000000000001ff1 RSI: 000000000000a9cf RDI: 000000000000ff89
RBP: 000000000072af41 R08: 0000000bfb3e0a35 R09: fffff5200003c17f
R10: 0000000000000003 R11: 0000000000000000 R12: 000000000000ff01
R13: 0000000000000001 R14: 0000000bfb3e0a35 R15: ffff8880b993cfd8
FS:  00005555567f03c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffc77214000 CR3: 0000000029760000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 update_rq_clock_task kernel/sched/core.c:725 [inline]
 update_rq_clock kernel/sched/core.c:769 [inline]
 update_rq_clock+0x241/0xb40 kernel/sched/core.c:750
 ttwu_queue kernel/sched/core.c:3984 [inline]
 try_to_wake_up+0xba2/0x1a50 kernel/sched/core.c:4307
 wake_up_worker kernel/workqueue.c:863 [inline]
 insert_work+0x287/0x360 kernel/workqueue.c:1373
 __queue_work+0x5c6/0xfb0 kernel/workqueue.c:1526
 queue_work_on+0xf2/0x110 kernel/workqueue.c:1556
 queue_work include/linux/workqueue.h:505 [inline]
 stats_request+0xf2/0x130 drivers/virtio/virtio_balloon.c:369
 vring_interrupt drivers/virtio/virtio_ring.c:2501 [inline]
 vring_interrupt+0x2a1/0x3d0 drivers/virtio/virtio_ring.c:2476
 __handle_irq_event_percpu+0x22b/0x730 kernel/irq/handle.c:158
 handle_irq_event_percpu kernel/irq/handle.c:193 [inline]
 handle_irq_event+0xab/0x1e0 kernel/irq/handle.c:210
 handle_edge_irq+0x263/0xd00 kernel/irq/chip.c:819
 generic_handle_irq_desc include/linux/irqdesc.h:158 [inline]
 handle_irq arch/x86/kernel/irq.c:231 [inline]
 __common_interrupt+0xa1/0x220 arch/x86/kernel/irq.c:250
 common_interrupt+0xa8/0xd0 arch/x86/kernel/irq.c:240
 </IRQ>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:task_dfl_cgroup include/linux/cgroup.h:493 [inline]
RIP: 0010:task_psi_group kernel/sched/psi.c:884 [inline]
RIP: 0010:psi_account_irqtime+0xeb/0x520 kernel/sched/psi.c:1013
Code: 38 13 00 00 e8 06 ef ac 08 85 c0 0f 85 b6 02 00 00 49 8d bc 24 88 00 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 e7 03 00 00 49 8b 9c 24 88 00 00 00 48 b8 00 00
RSP: 0018:ffffc900001e0c18 EFLAGS: 00010002
RAX: dffffc0000000000 RBX: ffff888079e20000 RCX: 0000000000000001
RDX: 0000000000001ff1 RSI: 000000000000a9cf RDI: 000000000000ff89
RBP: 000000000072af41 R08: 0000000bfb3e0a35 R09: fffff5200003c17f
R10: 0000000000000003 R11: 0000000000000000 R12: 000000000000ff01
R13: 0000000000000001 R14: 0000000bfb3e0a35 R15: ffff8880b993cfd8
FS:  00005555567f03c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffc77214000 CR3: 0000000029760000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	38 13                	cmp    %dl,(%rbx)
   2:	00 00                	add    %al,(%rax)
   4:	e8 06 ef ac 08       	callq  0x8acef0f
   9:	85 c0                	test   %eax,%eax
   b:	0f 85 b6 02 00 00    	jne    0x2c7
  11:	49 8d bc 24 88 00 00 	lea    0x88(%r12),%rdi
  18:	00
  19:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  20:	fc ff df
  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 e7 03 00 00    	jne    0x41b
  34:	49 8b 9c 24 88 00 00 	mov    0x88(%r12),%rbx
  3b:	00
  3c:	48                   	rex.W
  3d:	b8                   	.byte 0xb8

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/06/08 10:56 linux-next 715abedee4cd 7086cdb9 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-linux-next-kasan-gce-root general protection fault in psi_account_irqtime
2023/09/08 13:58 linux-next af3c30d33476 72324844 .config console log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-linux-next-kasan-gce-root KASAN: use-after-free Read in psi_account_irqtime
2023/10/28 08:38 upstream 888cf78c29e2 3c418d72 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root general protection fault in psi_account_irqtime
2023/04/23 15:20 upstream 622322f53c6d 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root general protection fault in psi_account_irqtime
* Struck through repros no longer work on HEAD.