KASAN: use-after-free Read in snd_timer_resolution

18 views
Skip to first unread message

syzbot

unread,
Jan 19, 2020, 6:14:10 AM1/19/20
to syzkaller...@googlegroups.com
Hello,

syzbot found the following crash on:

HEAD commit: dc4ba5be Linux 4.19.97
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1750f4c9e00000
kernel config: https://syzkaller.appspot.com/x/.config?x=cc17a984a7e9c2f3
dashboard link: https://syzkaller.appspot.com/bug?extid=b27e2837b883b189bbd5
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+b27e28...@syzkaller.appspotmail.com

==================================================================
BUG: KASAN: use-after-free in snd_timer_resolution+0xf1/0x110 sound/core/timer.c:467
Read of size 8 at addr ffff88808c4ab040 by task syz-executor.4/13257

CPU: 1 PID: 13257 Comm: syz-executor.4 Not tainted 4.19.97-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:77 [inline]
dump_stack+0x197/0x210 lib/dump_stack.c:118
print_address_description.cold+0x7c/0x20d mm/kasan/report.c:256
kasan_report_error mm/kasan/report.c:354 [inline]
kasan_report mm/kasan/report.c:412 [inline]
kasan_report.cold+0x8c/0x2ba mm/kasan/report.c:396
__asan_report_load8_noabort+0x14/0x20 mm/kasan/report.c:433
snd_timer_resolution+0xf1/0x110 sound/core/timer.c:467
snd_seq_info_timer_read+0x95/0x2f1 sound/core/seq/seq_timer.c:489
snd_info_seq_show+0xcb/0x120 sound/core/info.c:378
seq_read+0x4ca/0x1110 fs/seq_file.c:229
proc_reg_read+0x1f8/0x2b0 fs/proc/inode.c:231
do_loop_readv_writev fs/read_write.c:701 [inline]
do_loop_readv_writev fs/read_write.c:688 [inline]
do_iter_read+0x490/0x640 fs/read_write.c:925
vfs_readv+0xf0/0x160 fs/read_write.c:987
do_preadv+0x1c4/0x280 fs/read_write.c:1071
__do_sys_preadv fs/read_write.c:1121 [inline]
__se_sys_preadv fs/read_write.c:1116 [inline]
__x64_sys_preadv+0x9a/0xf0 fs/read_write.c:1116
do_syscall_64+0xfd/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x45b159
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:00007f2b2acd8c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000127
RAX: ffffffffffffffda RBX: 00007f2b2acd96d4 RCX: 000000000045b159
RDX: 0000000000000240 RSI: 00000000200017c0 RDI: 0000000000000004
RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 000000000000082a R14: 00000000004c97bf R15: 000000000075bf2c

Allocated by task 13267:
save_stack+0x45/0xd0 mm/kasan/kasan.c:448
set_track mm/kasan/kasan.c:460 [inline]
kasan_kmalloc mm/kasan/kasan.c:553 [inline]
kasan_kmalloc+0xce/0xf0 mm/kasan/kasan.c:531
kmem_cache_alloc_trace+0x152/0x760 mm/slab.c:3625
kmalloc include/linux/slab.h:515 [inline]
kzalloc include/linux/slab.h:709 [inline]
snd_timer_instance_new+0x4f/0x3d0 sound/core/timer.c:111
snd_timer_open+0x989/0x1850 sound/core/timer.c:321
snd_seq_timer_open+0x240/0x580 sound/core/seq/seq_timer.c:290
queue_use+0xcb/0x240 sound/core/seq/seq_queue.c:502
snd_seq_queue_alloc+0x2c5/0x4d0 sound/core/seq/seq_queue.c:189
snd_seq_ioctl_create_queue+0xb0/0x330 sound/core/seq/seq_clientmgr.c:1531
snd_seq_kernel_client_ctl+0xf8/0x140 sound/core/seq/seq_clientmgr.c:2355
alloc_seq_queue.isra.0+0xdc/0x180 sound/core/seq/oss/seq_oss_init.c:370
snd_seq_oss_open+0x2ff/0x960 sound/core/seq/oss/seq_oss_init.c:228
odev_open+0x70/0x90 sound/core/seq/oss/seq_oss.c:138
soundcore_open+0x453/0x610 sound/sound_core.c:598
chrdev_open+0x245/0x6b0 fs/char_dev.c:423
do_dentry_open+0x4c3/0x1210 fs/open.c:796
vfs_open+0xa0/0xd0 fs/open.c:905
do_last fs/namei.c:3418 [inline]
path_openat+0x10d7/0x45e0 fs/namei.c:3534
do_filp_open+0x1a1/0x280 fs/namei.c:3564
do_sys_open+0x3fe/0x550 fs/open.c:1088
__do_sys_openat fs/open.c:1115 [inline]
__se_sys_openat fs/open.c:1109 [inline]
__x64_sys_openat+0x9d/0x100 fs/open.c:1109
do_syscall_64+0xfd/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe

Freed by task 13265:
save_stack+0x45/0xd0 mm/kasan/kasan.c:448
set_track mm/kasan/kasan.c:460 [inline]
__kasan_slab_free+0x102/0x150 mm/kasan/kasan.c:521
kasan_slab_free+0xe/0x10 mm/kasan/kasan.c:528
__cache_free mm/slab.c:3503 [inline]
kfree+0xcf/0x220 mm/slab.c:3822
snd_timer_close_locked+0x7da/0xc00 sound/core/timer.c:416
snd_timer_close+0x8e/0xf0 sound/core/timer.c:442
snd_seq_timer_close+0x95/0xd0 sound/core/seq/seq_timer.c:329
queue_delete+0x52/0xb0 sound/core/seq/seq_queue.c:147
snd_seq_queue_delete+0x4e/0x70 sound/core/seq/seq_queue.c:209
snd_seq_ioctl_delete_queue+0x6a/0x90 sound/core/seq/seq_clientmgr.c:1553
snd_seq_kernel_client_ctl+0xf8/0x140 sound/core/seq/seq_clientmgr.c:2355
delete_seq_queue.part.0+0xb6/0x120 sound/core/seq/oss/seq_oss_init.c:389
delete_seq_queue sound/core/seq/oss/seq_oss_init.c:385 [inline]
snd_seq_oss_release+0x116/0x150 sound/core/seq/oss/seq_oss_init.c:434
odev_release+0x54/0x80 sound/core/seq/oss/seq_oss.c:153
__fput+0x2dd/0x8b0 fs/file_table.c:278
____fput+0x16/0x20 fs/file_table.c:309
task_work_run+0x145/0x1c0 kernel/task_work.c:113
tracehook_notify_resume include/linux/tracehook.h:193 [inline]
exit_to_usermode_loop+0x273/0x2c0 arch/x86/entry/common.c:167
prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline]
syscall_return_slowpath arch/x86/entry/common.c:271 [inline]
do_syscall_64+0x53d/0x620 arch/x86/entry/common.c:296
entry_SYSCALL_64_after_hwframe+0x49/0xbe

The buggy address belongs to the object at ffff88808c4ab040
which belongs to the cache kmalloc-256 of size 256
The buggy address is located 0 bytes inside of
256-byte region [ffff88808c4ab040, ffff88808c4ab140)
The buggy address belongs to the page:
page:ffffea0002312ac0 count:1 mapcount:0 mapping:ffff88812c31c7c0 index:0x0
flags: 0xfffe0000000100(slab)
raw: 00fffe0000000100 ffffea00024413c8 ffffea0002352d88 ffff88812c31c7c0
raw: 0000000000000000 ffff88808c4ab040 000000010000000c 0000000000000000
page dumped because: kasan: bad access detected

Memory state around the buggy address:
ffff88808c4aaf00: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
ffff88808c4aaf80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
>ffff88808c4ab000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb
^
ffff88808c4ab080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff88808c4ab100: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
==================================================================


---
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,
Jan 19, 2020, 7:38:09 AM1/19/20
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following crash on:

HEAD commit: dc4ba5be Linux 4.19.97
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=15f821d1e00000
kernel config: https://syzkaller.appspot.com/x/.config?x=cc17a984a7e9c2f3
dashboard link: https://syzkaller.appspot.com/bug?extid=b27e2837b883b189bbd5
compiler: gcc (GCC) 9.0.0 20181231 (experimental)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=151891d1e00000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=134960f1e00000

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

audit: type=1400 audit(1579437284.122:36): avc: denied { map } for pid=8045 comm="syz-executor234" path="/root/syz-executor234651426" dev="sda1" ino=16483 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1
==================================================================
BUG: KASAN: use-after-free in snd_timer_resolution+0xf1/0x110 sound/core/timer.c:467
Read of size 8 at addr ffff88808e6ff3c0 by task syz-executor234/8059

CPU: 1 PID: 8059 Comm: syz-executor234 Not tainted 4.19.97-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:77 [inline]
dump_stack+0x197/0x210 lib/dump_stack.c:118
print_address_description.cold+0x7c/0x20d mm/kasan/report.c:256
kasan_report_error mm/kasan/report.c:354 [inline]
kasan_report mm/kasan/report.c:412 [inline]
kasan_report.cold+0x8c/0x2ba mm/kasan/report.c:396
__asan_report_load8_noabort+0x14/0x20 mm/kasan/report.c:433
snd_timer_resolution+0xf1/0x110 sound/core/timer.c:467
snd_seq_info_timer_read+0x95/0x2f1 sound/core/seq/seq_timer.c:489
snd_info_seq_show+0xcb/0x120 sound/core/info.c:378
seq_read+0x4ca/0x1110 fs/seq_file.c:229
proc_reg_read+0x1f8/0x2b0 fs/proc/inode.c:231
do_loop_readv_writev fs/read_write.c:701 [inline]
do_loop_readv_writev fs/read_write.c:688 [inline]
do_iter_read+0x490/0x640 fs/read_write.c:925
vfs_readv+0xf0/0x160 fs/read_write.c:987
do_preadv+0x1c4/0x280 fs/read_write.c:1071
__do_sys_preadv fs/read_write.c:1121 [inline]
__se_sys_preadv fs/read_write.c:1116 [inline]
__x64_sys_preadv+0x9a/0xf0 fs/read_write.c:1116
do_syscall_64+0xfd/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x4413a9
Code: e8 ac e8 ff ff 48 83 c4 18 c3 0f 1f 80 00 00 00 00 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 eb 08 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffdf921a718 EFLAGS: 00000246 ORIG_RAX: 0000000000000127
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000004413a9
RDX: 0000000000000227 RSI: 00000000200017c0 RDI: 0000000000000004
RBP: 00007ffdf921a730 R08: 000000000000000f R09: 00000000000000c2
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000402120
R13: 00000000004021b0 R14: 0000000000000000 R15: 0000000000000000

Allocated by task 8055:
Freed by task 8055:
save_stack+0x45/0xd0 mm/kasan/kasan.c:448
set_track mm/kasan/kasan.c:460 [inline]
__kasan_slab_free+0x102/0x150 mm/kasan/kasan.c:521
kasan_slab_free+0xe/0x10 mm/kasan/kasan.c:528
__cache_free mm/slab.c:3503 [inline]
kfree+0xcf/0x220 mm/slab.c:3822
snd_timer_close_locked+0x7da/0xc00 sound/core/timer.c:416
snd_timer_close+0x8e/0xf0 sound/core/timer.c:442
snd_seq_timer_close+0x95/0xd0 sound/core/seq/seq_timer.c:329
queue_delete+0x52/0xb0 sound/core/seq/seq_queue.c:147
snd_seq_queue_delete+0x4e/0x70 sound/core/seq/seq_queue.c:209
snd_seq_ioctl_delete_queue+0x6a/0x90 sound/core/seq/seq_clientmgr.c:1553
snd_seq_kernel_client_ctl+0xf8/0x140 sound/core/seq/seq_clientmgr.c:2355
delete_seq_queue.part.0+0xb6/0x120 sound/core/seq/oss/seq_oss_init.c:389
delete_seq_queue sound/core/seq/oss/seq_oss_init.c:385 [inline]
snd_seq_oss_release+0x116/0x150 sound/core/seq/oss/seq_oss_init.c:434
odev_release+0x54/0x80 sound/core/seq/oss/seq_oss.c:153
__fput+0x2dd/0x8b0 fs/file_table.c:278
____fput+0x16/0x20 fs/file_table.c:309
task_work_run+0x145/0x1c0 kernel/task_work.c:113
exit_task_work include/linux/task_work.h:22 [inline]
do_exit+0xc1f/0x30d0 kernel/exit.c:880
do_group_exit+0x135/0x370 kernel/exit.c:983
__do_sys_exit_group kernel/exit.c:994 [inline]
__se_sys_exit_group kernel/exit.c:992 [inline]
__x64_sys_exit_group+0x44/0x50 kernel/exit.c:992
do_syscall_64+0xfd/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe

The buggy address belongs to the object at ffff88808e6ff3c0
which belongs to the cache kmalloc-256 of size 256
The buggy address is located 0 bytes inside of
256-byte region [ffff88808e6ff3c0, ffff88808e6ff4c0)
The buggy address belongs to the page:
page:ffffea000239bfc0 count:1 mapcount:0 mapping:ffff88812c31c7c0 index:0x0
flags: 0xfffe0000000100(slab)
raw: 00fffe0000000100 ffffea00022b5a88 ffffea00023643c8 ffff88812c31c7c0
raw: 0000000000000000 ffff88808e6ff000 000000010000000c 0000000000000000
page dumped because: kasan: bad access detected

Memory state around the buggy address:
ffff88808e6ff280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff88808e6ff300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
>ffff88808e6ff380: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb
^
ffff88808e6ff400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff88808e6ff480: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
==================================================================

syzbot

unread,
Jan 21, 2020, 6:37:09 PM1/21/20
to syzkaller...@googlegroups.com
Hello,

syzbot found the following crash on:

HEAD commit: c1141b3a Linux 4.14.166
git tree: linux-4.14.y
console output: https://syzkaller.appspot.com/x/log.txt?x=15b67369e00000
kernel config: https://syzkaller.appspot.com/x/.config?x=a99b4b74c4c01851
dashboard link: https://syzkaller.appspot.com/bug?extid=ba49a54593a4deae9c1f
compiler: gcc (GCC) 9.0.0 20181231 (experimental)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=11b19369e00000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=10985985e00000

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

==================================================================
BUG: KASAN: use-after-free in snd_timer_resolution+0xd8/0xf0 sound/core/timer.c:457
Read of size 8 at addr ffff88809890b580 by task syz-executor232/7363

CPU: 1 PID: 7363 Comm: syz-executor232 Not tainted 4.14.166-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:17 [inline]
dump_stack+0x142/0x197 lib/dump_stack.c:58
print_address_description.cold+0x7c/0x1dc mm/kasan/report.c:252
kasan_report_error mm/kasan/report.c:351 [inline]
kasan_report mm/kasan/report.c:409 [inline]
kasan_report.cold+0xa9/0x2af mm/kasan/report.c:393
__asan_report_load8_noabort+0x14/0x20 mm/kasan/report.c:430
snd_timer_resolution+0xd8/0xf0 sound/core/timer.c:457
snd_seq_info_timer_read+0x96/0x2be sound/core/seq/seq_timer.c:488
snd_info_seq_show+0xcb/0x120 sound/core/info.c:378
seq_read+0x51a/0x1280 fs/seq_file.c:237
proc_reg_read+0xfa/0x170 fs/proc/inode.c:217
do_loop_readv_writev fs/read_write.c:695 [inline]
do_loop_readv_writev fs/read_write.c:682 [inline]
do_iter_read+0x3e2/0x5b0 fs/read_write.c:919
vfs_readv+0xd3/0x130 fs/read_write.c:981
do_preadv+0x15d/0x200 fs/read_write.c:1065
SYSC_preadv fs/read_write.c:1115 [inline]
SyS_preadv+0x31/0x40 fs/read_write.c:1110
do_syscall_64+0x1e8/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x441979
RSP: 002b:00007ffcf23cf7e8 EFLAGS: 00000246 ORIG_RAX: 0000000000000127
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000441979
RDX: 0000000000000227 RSI: 00000000200017c0 RDI: 0000000000000004
RBP: 000000000000e2a2 R08: 000000000000000f R09: 0000000000402780
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000004026f0
R13: 0000000000402780 R14: 0000000000000000 R15: 0000000000000000

Allocated by task 7359:
save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:59
save_stack+0x45/0xd0 mm/kasan/kasan.c:447
set_track mm/kasan/kasan.c:459 [inline]
kasan_kmalloc mm/kasan/kasan.c:551 [inline]
kasan_kmalloc+0xce/0xf0 mm/kasan/kasan.c:529
kmem_cache_alloc_trace+0x152/0x790 mm/slab.c:3618
kmalloc include/linux/slab.h:488 [inline]
kzalloc include/linux/slab.h:661 [inline]
snd_timer_instance_new+0x4f/0x3c0 sound/core/timer.c:111
snd_timer_open+0x882/0x15e0 sound/core/timer.c:321
snd_seq_timer_open+0x210/0x520 sound/core/seq/seq_timer.c:287
queue_use+0x9e/0x200 sound/core/seq/seq_queue.c:514
snd_seq_queue_alloc+0x2b5/0x490 sound/core/seq/seq_queue.c:199
snd_seq_ioctl_create_queue+0xad/0x2f0 sound/core/seq/seq_clientmgr.c:1528
snd_seq_kernel_client_ctl+0xd7/0x120 sound/core/seq/seq_clientmgr.c:2360
alloc_seq_queue.isra.0+0xcd/0x150 sound/core/seq/oss/seq_oss_init.c:370
snd_seq_oss_open+0x2d7/0x8d0 sound/core/seq/oss/seq_oss_init.c:228
odev_open+0x69/0x90 sound/core/seq/oss/seq_oss.c:138
soundcore_open+0x3f3/0x5a0 sound/sound_core.c:640
chrdev_open+0x207/0x590 fs/char_dev.c:423
do_dentry_open+0x73b/0xeb0 fs/open.c:777
vfs_open+0x105/0x220 fs/open.c:891
do_last fs/namei.c:3425 [inline]
path_openat+0x8bd/0x3f70 fs/namei.c:3566
do_filp_open+0x18e/0x250 fs/namei.c:3600
do_sys_open+0x2c5/0x430 fs/open.c:1084
SYSC_openat fs/open.c:1111 [inline]
SyS_openat+0x30/0x40 fs/open.c:1105
do_syscall_64+0x1e8/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x42/0xb7

Freed by task 7359:
save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:59
save_stack+0x45/0xd0 mm/kasan/kasan.c:447
set_track mm/kasan/kasan.c:459 [inline]
kasan_slab_free+0x75/0xc0 mm/kasan/kasan.c:524
__cache_free mm/slab.c:3496 [inline]
kfree+0xcc/0x270 mm/slab.c:3815
snd_timer_close_locked+0x758/0xb80 sound/core/timer.c:416
snd_timer_close+0x7b/0xe0 sound/core/timer.c:442
snd_seq_timer_close+0x91/0xd0 sound/core/seq/seq_timer.c:326
queue_delete+0x52/0xb0 sound/core/seq/seq_queue.c:147
snd_seq_queue_delete+0x41/0x60 sound/core/seq/seq_queue.c:219
snd_seq_ioctl_delete_queue+0x6a/0x90 sound/core/seq/seq_clientmgr.c:1550
snd_seq_kernel_client_ctl+0xd7/0x120 sound/core/seq/seq_clientmgr.c:2360
delete_seq_queue.part.0+0xa7/0xf0 sound/core/seq/oss/seq_oss_init.c:389
delete_seq_queue sound/core/seq/oss/seq_oss_init.c:385 [inline]
snd_seq_oss_release+0x103/0x140 sound/core/seq/oss/seq_oss_init.c:434
odev_release+0x54/0x80 sound/core/seq/oss/seq_oss.c:153
__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
exit_task_work include/linux/task_work.h:22 [inline]
do_exit+0xa1a/0x2cd0 kernel/exit.c:858
do_group_exit+0x111/0x330 kernel/exit.c:955
SYSC_exit_group kernel/exit.c:966 [inline]
SyS_exit_group+0x1d/0x20 kernel/exit.c:964
do_syscall_64+0x1e8/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x42/0xb7

The buggy address belongs to the object at ffff88809890b580
which belongs to the cache kmalloc-256 of size 256
The buggy address is located 0 bytes inside of
256-byte region [ffff88809890b580, ffff88809890b680)
The buggy address belongs to the page:
page:ffffea00026242c0 count:1 mapcount:0 mapping:ffff88809890b080 index:0x0
flags: 0xfffe0000000100(slab)
raw: 00fffe0000000100 ffff88809890b080 0000000000000000 000000010000000c
raw: ffffea00023c2f20 ffffea0002a3ef60 ffff8880aa8007c0 0000000000000000
page dumped because: kasan: bad access detected

Memory state around the buggy address:
ffff88809890b480: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffff88809890b500: 00 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc
>ffff88809890b580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
^
ffff88809890b600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff88809890b680: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb
==================================================================


---
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 can test patches for this bug, for details see:
https://goo.gl/tpsmEJ#testing-patches

syzbot

unread,
Feb 18, 2020, 11:35:04 AM2/18/20
to syzkaller...@googlegroups.com
syzbot suspects this bug was fixed by commit:

commit 20f2e4c228c712158113583947f4e16691e951f6
Author: Takashi Iwai <ti...@suse.de>
Date: Wed Jan 15 20:37:33 2020 +0000

ALSA: seq: Fix racy access for queue timer in proc read

bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=15243a09e00000
start commit: dc4ba5be Linux 4.19.97
git tree: linux-4.19.y
If the result looks correct, please mark the bug fixed by replying with:

#syz fix: ALSA: seq: Fix racy access for queue timer in proc read

For information about bisection process see: https://goo.gl/tpsmEJ#bisection

syzbot

unread,
Feb 20, 2020, 10:17:04 PM2/20/20
to syzkaller...@googlegroups.com
syzbot suspects this bug was fixed by commit:

commit 43bb0a16b25d5030193935b5c292648fa9abc0fc
Author: Takashi Iwai <ti...@suse.de>
Date: Wed Jan 15 20:37:33 2020 +0000

ALSA: seq: Fix racy access for queue timer in proc read

bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=10a45f95e00000
start commit: c1141b3a Linux 4.14.166
git tree: linux-4.14.y
Reply all
Reply to author
Forward
0 new messages