syzbot


general protection fault in rb_insert_color

Status: auto-closed as invalid on 2020/06/02 02:21
Subsystems: fbdev
[Documentation on labels]
Reported-by: syzbot+1213c130f87cc10f8035@syzkaller.appspotmail.com
First crash: 1508d, last: 1508d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 general protection fault in rb_insert_color 2 1433d 1446d 0/1 auto-closed as invalid on 2020/09/15 00:51
upstream general protection fault in rb_insert_color (2) net 1 1327d 1327d 0/26 auto-closed as invalid on 2020/10/30 19:33

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc0000000001: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f]
CPU: 1 PID: 23138 Comm: syz-executor.4 Not tainted 5.6.0-rc3-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__rb_insert lib/rbtree.c:115 [inline]
RIP: 0010:rb_insert_color+0x70/0xbd0 lib/rbtree.c:436
Code: 4c 89 e0 48 c1 e8 03 42 80 3c 30 00 0f 85 ff 06 00 00 49 8b 1c 24 f6 c3 01 0f 85 99 01 00 00 4c 8d 43 08 4c 89 c0 48 c1 e8 03 <42> 80 3c 30 00 0f 85 bf 06 00 00 4c 8b 7b 08 4d 39 e7 0f 84 85 01
RSP: 0018:ffffc900055a71c8 EFLAGS: 00010002
RAX: 0000000000000001 RBX: 0000000000000000 RCX: ffff8880ae9375c0
RDX: 1ffff11007581ca3 RSI: ffff8880ae9375f8 RDI: ffff88803ac0e518
RBP: ffffc900055a7208 R08: 0000000000000008 R09: ffff88803ac0e518
R10: fffff52000ab4e4f R11: 0000000000000003 R12: ffff88800014e3d8
R13: ffff88803ac0e518 R14: dffffc0000000000 R15: 000001868e743d01
FS:  00007f82ca83e700(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b31124000 CR3: 000000021102a000 CR4: 00000000001426e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 rb_insert_color_cached include/linux/rbtree.h:141 [inline]
 __enqueue_entity+0x142/0x390 kernel/sched/fair.c:590
 put_prev_entity+0xbf/0x2c0 kernel/sched/fair.c:4296
 pick_next_task_fair+0x65c/0xc70 kernel/sched/fair.c:6765
 pick_next_task kernel/sched/core.c:3920 [inline]
 __schedule+0x375/0x1f90 kernel/sched/core.c:4050
 preempt_schedule_irq+0xb5/0x160 kernel/sched/core.c:4337
 retint_kernel+0x1b/0x2b
RIP: 0010:__read_once_size include/linux/compiler.h:199 [inline]
RIP: 0010:check_kcov_mode kernel/kcov.c:155 [inline]
RIP: 0010:__sanitizer_cov_trace_pc+0x20/0x50 kernel/kcov.c:187
Code: 66 2e 0f 1f 84 00 00 00 00 00 55 48 89 e5 65 48 8b 04 25 c0 1e 02 00 65 8b 15 24 87 8c 7e 81 e2 00 01 1f 00 48 8b 75 08 75 2b <8b> 90 80 13 00 00 83 fa 02 75 20 48 8b 88 88 13 00 00 8b 80 84 13
RSP: 0018:ffffc900055a74c0 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13
RAX: ffff88803ac0e480 RBX: 0000000000000050 RCX: ffffffff83cc36d0
RDX: 0000000000000000 RSI: ffffffff83cc36ba RDI: 0000000000000004
RBP: ffffc900055a74c0 R08: ffff88803ac0e480 R09: ffffed10147d978c
R10: ffffed10147d978b R11: ffff8880a3ecbc5f R12: 000000000000004e
R13: ffff88800015233e R14: ffff8880001522f0 R15: 0000000000000000
 writeb arch/x86/include/asm/io.h:65 [inline]
 vga16fb_fillrect+0xa0a/0x19b0 drivers/video/fbdev/vga16fb.c:923
 bit_clear_margins+0x30b/0x530 drivers/video/fbdev/core/bitblit.c:232
 fbcon_clear_margins+0x1e9/0x250 drivers/video/fbdev/core/fbcon.c:1379
 fbcon_switch+0xd7f/0x17f0 drivers/video/fbdev/core/fbcon.c:2361
 redraw_screen+0x2b6/0x7d0 drivers/tty/vt/vt.c:1008
 fbcon_modechanged+0x5c3/0x790 drivers/video/fbdev/core/fbcon.c:2998
 fbcon_set_all_vcs+0x3cc/0x480 drivers/video/fbdev/core/fbcon.c:3036
 fbcon_update_vcs+0x2b/0x50 drivers/video/fbdev/core/fbcon.c:3043
 fb_set_var+0xb32/0xdd0 drivers/video/fbdev/core/fbmem.c:1056
 do_fb_ioctl+0x390/0x7d0 drivers/video/fbdev/core/fbmem.c:1109
 fb_ioctl+0xe6/0x130 drivers/video/fbdev/core/fbmem.c:1185
 vfs_ioctl fs/ioctl.c:47 [inline]
 ksys_ioctl+0x123/0x180 fs/ioctl.c:763
 __do_sys_ioctl fs/ioctl.c:772 [inline]
 __se_sys_ioctl fs/ioctl.c:770 [inline]
 __x64_sys_ioctl+0x73/0xb0 fs/ioctl.c:770
 do_syscall_64+0xfa/0x790 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x45c479
Code: ad b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 0f 83 7b b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f82ca83dc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f82ca83e6d4 RCX: 000000000045c479
RDX: 0000000020000000 RSI: 0000000000004601 RDI: 0000000000000004
RBP: 000000000076bf20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 00000000000002ef R14: 00000000004c5096 R15: 000000000076bf2c
Modules linked in:
---[ end trace 2373b6c1c70c8fbb ]---
RIP: 0010:__rb_insert lib/rbtree.c:115 [inline]
RIP: 0010:rb_insert_color+0x70/0xbd0 lib/rbtree.c:436
Code: 4c 89 e0 48 c1 e8 03 42 80 3c 30 00 0f 85 ff 06 00 00 49 8b 1c 24 f6 c3 01 0f 85 99 01 00 00 4c 8d 43 08 4c 89 c0 48 c1 e8 03 <42> 80 3c 30 00 0f 85 bf 06 00 00 4c 8b 7b 08 4d 39 e7 0f 84 85 01
RSP: 0018:ffffc900055a71c8 EFLAGS: 00010002
RAX: 0000000000000001 RBX: 0000000000000000 RCX: ffff8880ae9375c0
RDX: 1ffff11007581ca3 RSI: ffff8880ae9375f8 RDI: ffff88803ac0e518
RBP: ffffc900055a7208 R08: 0000000000000008 R09: ffff88803ac0e518
R10: fffff52000ab4e4f R11: 0000000000000003 R12: ffff88800014e3d8
R13: ffff88803ac0e518 R14: dffffc0000000000 R15: 000001868e743d01
FS:  00007f82ca83e700(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b31124000 CR3: 000000021102a000 CR4: 00000000001426e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/03/04 02:20 upstream 63623fd44972 c88c7b75 .config console log report ci-upstream-kasan-gce
* Struck through repros no longer work on HEAD.