syzbot


KMSAN: uninit-value in linear_transfer

Status: closed as invalid on 2018/09/05 16:42
Subsystems: sound
[Documentation on labels]
First crash: 2345d, last: 2336d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KMSAN: uninit-value in linear_transfer (2) sound C 7 2193d 2216d 11/28 fixed on 2018/12/07 08:24
upstream KMSAN: uninit-value in linear_transfer (3) sound C 469 2092d 2154d 0/28 closed as invalid on 2019/04/12 16:05

Sample crash report:
RDX: 0000000000001000 RSI: 0000000020000100 RDI: 0000000000000013
RBP: 000000000072bea0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000014
R13: 00000000004c0a0c R14: 00000000004d0d40 R15: 0000000000000004
==================================================================
BUG: KMSAN: uninit-value in __arch_swab32 arch/x86/include/uapi/asm/swab.h:10 [inline]
BUG: KMSAN: uninit-value in __fswab32 include/uapi/linux/swab.h:59 [inline]
BUG: KMSAN: uninit-value in do_convert sound/core/oss/linear.c:50 [inline]
BUG: KMSAN: uninit-value in convert sound/core/oss/linear.c:81 [inline]
BUG: KMSAN: uninit-value in linear_transfer+0x917/0xc10 sound/core/oss/linear.c:110
CPU: 1 PID: 8144 Comm: syz-executor6 Not tainted 4.18.0-rc4+ #25
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+0x185/0x1e0 lib/dump_stack.c:113
 kmsan_report+0x195/0x2c0 mm/kmsan/kmsan.c:1092
 __msan_warning_32+0x7d/0xe0 mm/kmsan/kmsan_instr.c:640
 __arch_swab32 arch/x86/include/uapi/asm/swab.h:10 [inline]
 __fswab32 include/uapi/linux/swab.h:59 [inline]
 do_convert sound/core/oss/linear.c:50 [inline]
 convert sound/core/oss/linear.c:81 [inline]
 linear_transfer+0x917/0xc10 sound/core/oss/linear.c:110
 snd_pcm_plug_read_transfer+0x921/0xb10 sound/core/oss/pcm_plugin.c:650
 snd_pcm_oss_read2 sound/core/oss/pcm_oss.c:1474 [inline]
 snd_pcm_oss_read1 sound/core/oss/pcm_oss.c:1531 [inline]
 snd_pcm_oss_read+0x12e5/0x1b80 sound/core/oss/pcm_oss.c:2752
 __vfs_read+0x1f0/0xb40 fs/read_write.c:416
 vfs_read+0x36c/0x6b0 fs/read_write.c:452
 ksys_read fs/read_write.c:578 [inline]
 __do_sys_read fs/read_write.c:588 [inline]
 __se_sys_read fs/read_write.c:586 [inline]
 __x64_sys_read+0x1cf/0x400 fs/read_write.c:586
 do_syscall_64+0x15b/0x230 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x63/0xe7
RIP: 0033:0x455a79
Code: 1d ba 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 eb b9 fb ff c3 66 2e 0f 1f 84 00 00 00 00 
RSP: 002b:00007f0f59203c68 EFLAGS: 00000246 ORIG_RAX: 0000000000000000
RAX: ffffffffffffffda RBX: 00007f0f592046d4 RCX: 0000000000455a79
RDX: 0000000000001000 RSI: 0000000020000100 RDI: 0000000000000013
RBP: 000000000072bea0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000014
R13: 00000000004c0a0c R14: 00000000004d0d40 R15: 0000000000000004

Uninit was stored to memory at:
 kmsan_save_stack_with_flags mm/kmsan/kmsan.c:256 [inline]
 kmsan_save_stack mm/kmsan/kmsan.c:271 [inline]
 kmsan_internal_chain_origin+0x13c/0x240 mm/kmsan/kmsan.c:683
 kmsan_memcpy_origins+0x13d/0x1b0 mm/kmsan/kmsan.c:397
 __msan_memcpy+0xe7/0x150 mm/kmsan/kmsan_instr.c:432
 do_convert sound/core/oss/linear.c:48 [inline]
 convert sound/core/oss/linear.c:81 [inline]
 linear_transfer+0x6bc/0xc10 sound/core/oss/linear.c:110
 snd_pcm_plug_read_transfer+0x921/0xb10 sound/core/oss/pcm_plugin.c:650
 snd_pcm_oss_read2 sound/core/oss/pcm_oss.c:1474 [inline]
 snd_pcm_oss_read1 sound/core/oss/pcm_oss.c:1531 [inline]
 snd_pcm_oss_read+0x12e5/0x1b80 sound/core/oss/pcm_oss.c:2752
 __vfs_read+0x1f0/0xb40 fs/read_write.c:416
 vfs_read+0x36c/0x6b0 fs/read_write.c:452
 ksys_read fs/read_write.c:578 [inline]
 __do_sys_read fs/read_write.c:588 [inline]
 __se_sys_read fs/read_write.c:586 [inline]
 __x64_sys_read+0x1cf/0x400 fs/read_write.c:586
 do_syscall_64+0x15b/0x230 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x63/0xe7

Uninit was created at:
 kmsan_save_stack_with_flags mm/kmsan/kmsan.c:256 [inline]
 kmsan_internal_alloc_meta_for_pages+0x157/0x730 mm/kmsan/kmsan.c:804
 kmsan_alloc_page+0x80/0xe0 mm/kmsan/kmsan_hooks.c:250
 __alloc_pages_nodemask+0x105b/0x6320 mm/page_alloc.c:4409
 alloc_pages_current+0x6b1/0x970 mm/mempolicy.c:2093
 alloc_pages include/linux/gfp.h:494 [inline]
 __vmalloc_area_node mm/vmalloc.c:1689 [inline]
 __vmalloc_node_range+0x8bf/0x1170 mm/vmalloc.c:1754
FAULT_INJECTION: forcing a failure.
name failslab, interval 1, probability 0, space 0, times 0
 __vmalloc_node mm/vmalloc.c:1799 [inline]
 __vmalloc_node_flags mm/vmalloc.c:1813 [inline]
 vmalloc+0xd8/0xf0 mm/vmalloc.c:1835
 snd_pcm_plugin_alloc+0x29a/0xc70 sound/core/oss/pcm_plugin.c:70
 snd_pcm_plug_alloc+0x281/0x5d0 sound/core/oss/pcm_plugin.c:129
 snd_pcm_oss_change_params_locked+0x5c23/0x6bf0 sound/core/oss/pcm_oss.c:1038
 snd_pcm_oss_make_ready_locked sound/core/oss/pcm_oss.c:1183 [inline]
 snd_pcm_oss_read1 sound/core/oss/pcm_oss.c:1507 [inline]
 snd_pcm_oss_read+0x4d0/0x1b80 sound/core/oss/pcm_oss.c:2752
 __vfs_read+0x1f0/0xb40 fs/read_write.c:416
 vfs_read+0x36c/0x6b0 fs/read_write.c:452
CPU: 0 PID: 8164 Comm: syz-executor0 Not tainted 4.18.0-rc4+ #25
 ksys_read fs/read_write.c:578 [inline]
 __do_sys_read fs/read_write.c:588 [inline]
 __se_sys_read fs/read_write.c:586 [inline]
 __x64_sys_read+0x1cf/0x400 fs/read_write.c:586
 do_syscall_64+0x15b/0x230 arch/x86/entry/common.c:290
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
 entry_SYSCALL_64_after_hwframe+0x63/0xe7
Call Trace:

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/07/12 13:25 https://github.com/google/kmsan.git master b64f7ec04e12 06c33b3a .config console log report ci-upstream-kmsan-gce
2018/07/05 23:23 https://github.com/google/kmsan.git master 86eb85c04833 d3b2a0e2 .config console log report ci-upstream-kmsan-gce
2018/07/03 05:27 https://github.com/google/kmsan.git master 4ca559bbdeaf 317fc8ea .config console log report ci-upstream-kmsan-gce
2018/07/03 01:42 https://github.com/google/kmsan.git master 6c3632ffef26 574780b0 .config console log report ci-upstream-kmsan-gce
* Struck through repros no longer work on HEAD.