BUG: unable to handle kernel NULL pointer dereference in vivid_stop_generating_vid_cap

21 views
Skip to first unread message

syzbot

unread,
Sep 25, 2019, 1:35:09 PM9/25/19
to syzkaller...@googlegroups.com
Hello,

syzbot found the following crash on:

HEAD commit: f6e27dbb Linux 4.14.146
git tree: linux-4.14.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1727c261600000
kernel config: https://syzkaller.appspot.com/x/.config?x=cb75afefe94a0801
dashboard link: https://syzkaller.appspot.com/bug?extid=7250431a239fc633b813
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+725043...@syzkaller.appspotmail.com

BUG: unable to handle kernel NULL pointer dereference at 0000000000000020
IP: atomic_inc arch/x86/include/asm/atomic.h:92 [inline]
IP: kthread_stop+0x4c/0x650 kernel/kthread.c:525
PGD 8fc4f067 P4D 8fc4f067 PUD 84816067 PMD 0
Oops: 0002 [#1] PREEMPT SMP KASAN
Modules linked in:
CPU: 0 PID: 7583 Comm: syz-executor.1 Not tainted 4.14.146 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
Google 01/01/2011
task: ffff88805a654440 task.stack: ffff88805a548000
RIP: 0010:atomic_inc arch/x86/include/asm/atomic.h:92 [inline]
RIP: 0010:kthread_stop+0x4c/0x650 kernel/kthread.c:525
RSP: 0018:ffff88805a54fb50 EFLAGS: 00010297
RAX: ffff88805a654440 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 00000000ffffffff RDI: 0000000000000282
RBP: ffff88805a54fb70 R08: ffff88805a654440 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: ffff888084af1cb0 R14: ffff888084af1ca8 R15: ffffffff89bbfda0
FS: 00005555570b9940(0000) GS:ffff8880aee00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000020 CR3: 0000000092db2000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
vivid_stop_generating_vid_cap+0x1b9/0x664
drivers/media/platform/vivid/vivid-kthread-cap.c:934
vid_cap_stop_streaming+0x7c/0xd0
drivers/media/platform/vivid/vivid-vid-cap.c:273
__vb2_queue_cancel+0xa3/0x890 drivers/media/v4l2-core/videobuf2-core.c:1655
vb2_core_streamoff+0x52/0x110 drivers/media/v4l2-core/videobuf2-core.c:1788
__vb2_cleanup_fileio+0x78/0x150
drivers/media/v4l2-core/videobuf2-core.c:2313
vb2_core_queue_release+0x1d/0x80
drivers/media/v4l2-core/videobuf2-core.c:2040
vb2_queue_release drivers/media/v4l2-core/videobuf2-v4l2.c:669 [inline]
_vb2_fop_release+0x1cf/0x2a0 drivers/media/v4l2-core/videobuf2-v4l2.c:840
vb2_fop_release+0x75/0xc0 drivers/media/v4l2-core/videobuf2-v4l2.c:854
vivid_fop_release+0x180/0x3f0 drivers/media/platform/vivid/vivid-core.c:486
v4l2_release+0xf9/0x190 drivers/media/v4l2-core/v4l2-dev.c:446
__fput+0x275/0x7a0 fs/file_table.c:210
____fput+0x16/0x20 fs/file_table.c:244
task_work_run+0x114/0x190 kernel/task_work.c:113
tracehook_notify_resume include/linux/tracehook.h:191 [inline]
exit_to_usermode_loop+0x1da/0x220 arch/x86/entry/common.c:164
prepare_exit_to_usermode arch/x86/entry/common.c:199 [inline]
syscall_return_slowpath arch/x86/entry/common.c:270 [inline]
do_syscall_64+0x4bc/0x640 arch/x86/entry/common.c:297
entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x413711
RSP: 002b:00007fff8327d910 EFLAGS: 00000293 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 0000000000000006 RCX: 0000000000413711
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000005
RBP: 0000000000000001 R08: ffffffff8129397f R09: 00000000c904b60b
R10: 00007fff8327d9f0 R11: 0000000000000293 R12: 000000000075c9a0
R13: 000000000075c9a0 R14: 00000000007628a0 R15: 000000000075bfd4
Code: 00 65 8b 1d 67 59 c3 7e 83 fb 3f 0f 87 5e 04 00 00 e8 19 bb 1e 00 89
db 48 0f a3 1d ff 24 e7 06 0f 82 47 03 00 00 e8 04 bb 1e 00 <f0> 41 ff 44
24 20 49 8d 7c 24 24 48 b8 00 00 00 00 00 fc ff df
RIP: atomic_inc arch/x86/include/asm/atomic.h:92 [inline] RSP:
ffff88805a54fb50
RIP: kthread_stop+0x4c/0x650 kernel/kthread.c:525 RSP: ffff88805a54fb50
CR2: 0000000000000020
kobject: 'loop3' (ffff8880a4a8a920): kobject_uevent_env
kobject: 'loop3' (ffff8880a4a8a920): fill_kobj_path: path
= '/devices/virtual/block/loop3'
---[ end trace b6ad8f722bfc504c ]---


---
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,
Sep 25, 2019, 1:37:07 PM9/25/19
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following crash on:

HEAD commit: f6e27dbb Linux 4.14.146
git tree: linux-4.14.y
console output: https://syzkaller.appspot.com/x/log.txt?x=11f6394d600000
kernel config: https://syzkaller.appspot.com/x/.config?x=cb75afefe94a0801
dashboard link: https://syzkaller.appspot.com/bug?extid=7250431a239fc633b813
compiler: gcc (GCC) 9.0.0 20181231 (experimental)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=107465e3600000

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

IPv6: ADDRCONF(NETDEV_CHANGE): team_slave_0: link becomes ready
IPv6: ADDRCONF(NETDEV_UP): veth1_to_team: link is not ready
IPv6: ADDRCONF(NETDEV_UP): veth0_to_bridge: link is not ready
IPv6: ADDRCONF(NETDEV_CHANGE): team0: link becomes ready
IPv6: ADDRCONF(NETDEV_CHANGE): veth1_to_team: link becomes ready
BUG: unable to handle kernel NULL pointer dereference at 0000000000000020
IP: atomic_inc arch/x86/include/asm/atomic.h:92 [inline]
IP: kthread_stop+0x4c/0x650 kernel/kthread.c:525
PGD 7fccd067 P4D 7fccd067 PUD 8ba1a067 PMD 0
Oops: 0002 [#1] PREEMPT SMP KASAN
Modules linked in:
CPU: 0 PID: 6909 Comm: syz-executor.3 Not tainted 4.14.146 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
Google 01/01/2011
task: ffff88809a6ba640 task.stack: ffff888097208000
RIP: 0010:atomic_inc arch/x86/include/asm/atomic.h:92 [inline]
RIP: 0010:kthread_stop+0x4c/0x650 kernel/kthread.c:525
RSP: 0018:ffff88809720fb50 EFLAGS: 00010297
RAX: ffff88809a6ba640 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 00000000ffffffff RDI: 0000000000000282
RBP: ffff88809720fb70 R08: ffff88809a6ba640 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: ffff888099c83c70 R14: ffff888099c83c68 R15: ffffffff89bbfda0
FS: 000055555666c940(0000) GS:ffff8880aee00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000020 CR3: 000000009fb88000 CR4: 00000000001406f0
RSP: 002b:00007ffdf43c3060 EFLAGS: 00000293 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 0000000000000005 RCX: 0000000000413711
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000004
RBP: 0000000000000001 R08: ffffffffffffffff R09: ffffffffffffffff
R10: 00007ffdf43c3140 R11: 0000000000000293 R12: 000000000075c9a0
R13: 000000000075c9a0 R14: 0000000000761c20 R15: 000000000075bfd4
Code: 00 65 8b 1d 67 59 c3 7e 83 fb 3f 0f 87 5e 04 00 00 e8 19 bb 1e 00 89
db 48 0f a3 1d ff 24 e7 06 0f 82 47 03 00 00 e8 04 bb 1e 00 <f0> 41 ff 44
24 20 49 8d 7c 24 24 48 b8 00 00 00 00 00 fc ff df
RIP: atomic_inc arch/x86/include/asm/atomic.h:92 [inline] RSP:
ffff88809720fb50
RIP: kthread_stop+0x4c/0x650 kernel/kthread.c:525 RSP: ffff88809720fb50
CR2: 0000000000000020
IPv6: ADDRCONF(NETDEV_CHANGE): team_slave_1: link becomes ready
---[ end trace 412df94b1d9bcb57 ]---

Reply all
Reply to author
Forward
0 new messages