general protection fault in relay_switch_subbuf

16 views
Skip to first unread message

syzbot

unread,
Aug 17, 2019, 5:14:06 AM8/17/19
to syzkaller...@googlegroups.com
Hello,

syzbot found the following crash on:

HEAD commit: a5aa8058 Linux 4.19.67
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=10f8ab3c600000
kernel config: https://syzkaller.appspot.com/x/.config?x=8e5f93d2c874cdab
dashboard link: https://syzkaller.appspot.com/bug?extid=adc5b8186062540592ce
compiler: gcc (GCC) 9.0.0 20181231 (experimental)

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

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

EXT4-fs warning (device sda1): ext4_group_extend:1793: will only finish
group (524288 blocks, 256 new)
print_req_error: I/O error, dev loop0, sector 0
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
kobject: 'kvm' (00000000f3a54013): kobject_uevent_env
CPU: 1 PID: 21185 Comm: syz-executor.0 Not tainted 4.19.67 #41
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
Google 01/01/2011
RIP: 0010:relay_switch_subbuf+0x216/0x920 kernel/relay.c:755
Code: 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 bc 06 00 00 48 b8 00 00 00 00
00 fc ff df 4c 8b 7b 58 49 8d 7f 50 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f
85 7d 06 00 00 48 ba 00 00 00 00 00 fc ff df 49 8b
FAULT_INJECTION: forcing a failure.
name failslab, interval 1, probability 0, space 0, times 0
RSP: 0018:ffff888089377870 EFLAGS: 00010006
RAX: dffffc0000000000 RBX: ffff8880971c9420 RCX: ffffc90006078000
EXT4-fs warning (device sda1): ext4_group_extend:1799: can't read last
block, resize aborted
RDX: 000000000000000a RSI: ffffffff816bf53e RDI: 0000000000000050
RBP: ffff8880893778c8 R08: ffff88805bf1e500 R09: 0000000000000010
R10: fffffbfff10c1b70 R11: ffffffff8860db83 R12: 0000000000000040
R13: 0000000000000000 R14: ffff8880934c8c80 R15: 0000000000000000
FS: 00007f48eacf1700(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000000075c000 CR3: 0000000096190000 CR4: 00000000001426e0
kobject: 'kvm' (00000000f3a54013): fill_kobj_path: path
= '/devices/virtual/misc/kvm'
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
relay_reserve include/linux/relay.h:261 [inline]
trace_note.isra.0+0x5b8/0x6e0 kernel/trace/blktrace.c:93
trace_note_tsk kernel/trace/blktrace.c:124 [inline]
__blk_add_trace+0xb70/0xe10 kernel/trace/blktrace.c:264
CPU: 0 PID: 21186 Comm: syz-executor.5 Not tainted 4.19.67 #41
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
Google 01/01/2011
blk_add_trace_bio.isra.0+0x166/0x1e0 kernel/trace/blktrace.c:870
Call Trace:
__dump_stack lib/dump_stack.c:77 [inline]
dump_stack+0x172/0x1f0 lib/dump_stack.c:113
blk_add_trace_bio_queue+0x46/0x60 kernel/trace/blktrace.c:907
fail_dump lib/fault-inject.c:51 [inline]
should_fail.cold+0xa/0x1b lib/fault-inject.c:149
trace_block_bio_queue include/trace/events/block.h:357 [inline]
generic_make_request_checks+0x1cc2/0x24c0 block/blk-core.c:2339
generic_make_request+0x24c/0x12d0 block/blk-core.c:2405
submit_bio+0xba/0x480 block/blk-core.c:2569
submit_bio_wait+0x115/0x1c0 block/bio.c:930
blkdev_issue_flush+0x20b/0x300 block/blk-flush.c:553
blkdev_fsync+0x95/0xd0 fs/block_dev.c:647
vfs_fsync_range+0x141/0x230 fs/sync.c:197
vfs_fsync fs/sync.c:211 [inline]
do_fsync+0x54/0xa0 fs/sync.c:221
__do_sys_fdatasync fs/sync.c:234 [inline]
__se_sys_fdatasync fs/sync.c:232 [inline]
__x64_sys_fdatasync+0x36/0x50 fs/sync.c:232
do_syscall_64+0xfd/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x459829
Code: fd b7 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 cb b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f48eacf0c78 EFLAGS: 00000246
__should_failslab+0x121/0x190 mm/failslab.c:32
ORIG_RAX: 000000000000004b
should_failslab+0x9/0x14 mm/slab_common.c:1557
RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 0000000000459829
slab_pre_alloc_hook mm/slab.h:424 [inline]
slab_alloc mm/slab.c:3383 [inline]
kmem_cache_alloc+0x2ae/0x700 mm/slab.c:3557
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000003
kmem_cache_zalloc include/linux/slab.h:699 [inline]
mmu_topup_memory_cache arch/x86/kvm/mmu.c:933 [inline]
mmu_topup_memory_cache arch/x86/kvm/mmu.c:925 [inline]
mmu_topup_memory_caches+0x97/0x3a0 arch/x86/kvm/mmu.c:979
RBP: 000000000075bfc8 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f48eacf16d4
kvm_mmu_load+0x21/0xf60 arch/x86/kvm/mmu.c:4968
R13: 00000000004c00c7 R14: 00000000004d2190 R15: 00000000ffffffff
Modules linked in:
kvm_mmu_reload arch/x86/kvm/mmu.h:86 [inline]
vcpu_enter_guest+0x3cdb/0x6120 arch/x86/kvm/x86.c:7600
---[ end trace e4643273033d4fea ]---
RIP: 0010:relay_switch_subbuf+0x216/0x920 kernel/relay.c:755
Code: 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 bc 06 00 00 48 b8 00 00 00 00
00 fc ff df 4c 8b 7b 58 49 8d 7f 50 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f
85 7d 06 00 00 48 ba 00 00 00 00 00 fc ff df 49 8b
RSP: 0018:ffff888089377870 EFLAGS: 00010006
RAX: dffffc0000000000 RBX: ffff8880971c9420 RCX: ffffc90006078000
vcpu_run arch/x86/kvm/x86.c:7798 [inline]
kvm_arch_vcpu_ioctl_run+0x457/0x16b0 arch/x86/kvm/x86.c:7998
RDX: 000000000000000a RSI: ffffffff816bf53e RDI: 0000000000000050
RBP: ffff8880893778c8 R08: ffff88805bf1e500 R09: 0000000000000010
kvm_vcpu_ioctl+0x4dc/0xf90 arch/x86/kvm/../../../virt/kvm/kvm_main.c:2617
R10: fffffbfff10c1b70 R11: ffffffff8860db83 R12: 0000000000000040
R13: 0000000000000000 R14: ffff8880934c8c80 R15: 0000000000000000
FS: 00007f48eacf1700(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000000075c000 CR3: 0000000096190000 CR4: 00000000001426e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
vfs_ioctl fs/ioctl.c:46 [inline]
file_ioctl fs/ioctl.c:501 [inline]
do_vfs_ioctl+0xd5f/0x1380 fs/ioctl.c:688


---
This bug 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 bug report. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

syzbot

unread,
Dec 15, 2019, 3:14:05 AM12/15/19
to syzkaller...@googlegroups.com
Auto-closing this bug as obsolete.
Crashes did not happen for a while, no reproducer and no activity.

syzbot

unread,
Dec 24, 2019, 8:50:09 PM12/24/19
to syzkaller...@googlegroups.com
Hello,

syzbot found the following crash on:

HEAD commit: e1f7d50a Linux 4.14.160
git tree: linux-4.14.y
console output: https://syzkaller.appspot.com/x/log.txt?x=118426c1e00000
kernel config: https://syzkaller.appspot.com/x/.config?x=46599517442ad9fb
dashboard link: https://syzkaller.appspot.com/bug?extid=0160082cd978abb9d31d
compiler: gcc (GCC) 9.0.0 20181231 (experimental)

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

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

relay: one or more items not logged [item size (56) > sub-buffer size (9)]
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
devpts: called with bogus options
general protection fault: 0000 [#1] PREEMPT SMP KASAN
Modules linked in:
CPU: 0 PID: 18666 Comm: syz-executor.5 Not tainted 4.14.160-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
Google 01/01/2011
task: ffff88808cf82380 task.stack: ffff88802ba68000
RIP: 0010:relay_switch_subbuf+0x1f3/0x8e0 kernel/relay.c:754
RSP: 0018:ffff88802ba6fa88 EFLAGS: 00010206
RAX: dffffc0000000000 RBX: ffff8880a6f41dc0 RCX: ffffc9000682b000
RDX: 000000000000000a RSI: ffffffff815dcb4b RDI: 0000000000000050
RBP: ffff88802ba6fad8 R08: dffffc0000000000 R09: ffffffff8958dc98
R10: ffff88802ba6fad8 R11: ffff88808cf82380 R12: 0000000000000000
R13: 0000000000000000 R14: ffff8880527f43c0 R15: 0000000000000000
FS: 00007f787cf47700(0000) GS:ffff8880aec00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020001000 CR3: 000000009fe8c000 CR4: 00000000001426f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
relay_flush kernel/relay.c:882 [inline]
relay_flush+0x1ae/0x270 kernel/relay.c:866
blk_trace_startstop+0x203/0x5c0 kernel/trace/blktrace.c:657
kobject: 'loop1' (ffff8880a401b4e0): kobject_uevent_env
blk_trace_ioctl+0x1b1/0x270 kernel/trace/blktrace.c:705
kobject: 'loop1' (ffff8880a401b4e0): fill_kobj_path: path
= '/devices/virtual/block/loop1'
blkdev_ioctl+0x100/0x1860 block/ioctl.c:580
block_ioctl+0xde/0x120 fs/block_dev.c:1881
vfs_ioctl fs/ioctl.c:46 [inline]
file_ioctl fs/ioctl.c:500 [inline]
do_vfs_ioctl+0x7ae/0x1060 fs/ioctl.c:684
SYSC_ioctl fs/ioctl.c:701 [inline]
SyS_ioctl+0x8f/0xc0 fs/ioctl.c:692
do_syscall_64+0x1e8/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x45a919
RSP: 002b:00007f787cf46c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 000000000045a919
RDX: 0000000000000000 RSI: 0000000000001275 RDI: 0000000000000003
RBP: 000000000075c070 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f787cf476d4
R13: 00000000004c2301 R14: 00000000004d74d8 R15: 00000000ffffffff
Code: df 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 9d 06 00 00 48 b8 00 00 00
00 00 fc ff df 4c 8b 7b 58 49 8d 7f 50 48 89 fa 48 c1 ea 03 <80> 3c 02 00
0f 85 5e 06 00 00 48 ba 00 00 00 00 00 fc ff df 49
RIP: relay_switch_subbuf+0x1f3/0x8e0 kernel/relay.c:754 RSP:
ffff88802ba6fa88
kobject: 'loop0' (ffff888050efb4e0): kobject_uevent_env
kobject: 'loop0' (ffff888050efb4e0): fill_kobj_path: path
= '/devices/virtual/block/loop0'
---[ end trace 4630b2e189ddcda9 ]---

syzbot

unread,
Jul 24, 2020, 11:12:17 PM7/24/20
to syzkaller...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages