syzbot


KMSAN: uninit-value in __crc32c_le_base (2)

Status: upstream: reported C repro on 2020/04/26 06:08
Reported-by: syzbot+5dee08649ac6f0707a43@syzkaller.appspotmail.com
First crash: 959d, last: 26m
similar bugs (5):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KMSAN: uninit-value in __crc32c_le_base syz 567 1063d 1109d 16/24 fixed on 2020/02/14 01:19
upstream KMSAN: uninit-value in aes_encrypt (4) C 6 13d 817d 0/24 upstream: reported C repro on 2020/09/10 14:09
upstream KMSAN: uninit-value in post_read_mst_fixup 199 310d 749d 0/24 auto-closed as invalid on 2022/05/31 07:12
upstream KMSAN: kernel-infoleak in _copy_to_iter (7) C 73181 now 273d 23/24 internal: reported C repro on 2022/03/09 07:32
upstream KMSAN: uninit-value in btrfs_clean_tree_block (2) 13320 9m 381d 23/24 upstream: reported on 2021/11/20 10:47
Patch testing requests:
Created Duration User Patch Repo Result
2022/09/02 08:27 6m retest repro https://github.com/google/kmsan.git master error
2020/09/20 16:20 19m anant.thazhemadam@gmail.com https://github.com/google/kmsan.git master OK

Sample crash report:
=====================================================
BUG: KMSAN: uninit-value in crc32_body lib/crc32.c:121 [inline]
BUG: KMSAN: uninit-value in crc32_le_generic lib/crc32.c:179 [inline]
BUG: KMSAN: uninit-value in __crc32c_le_base+0xbdd/0xd10 lib/crc32.c:202
CPU: 0 PID: 8830 Comm: syz-executor078 Not tainted 5.6.0-rc7-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+0x1c9/0x220 lib/dump_stack.c:118
 kmsan_report+0xf7/0x1e0 mm/kmsan/kmsan_report.c:118
 __msan_warning+0x58/0xa0 mm/kmsan/kmsan_instr.c:215
 crc32_body lib/crc32.c:121 [inline]
 crc32_le_generic lib/crc32.c:179 [inline]
 __crc32c_le_base+0xbdd/0xd10 lib/crc32.c:202
 chksum_update+0xb2/0x110 crypto/crc32c_generic.c:88
 crypto_shash_update+0x4e9/0x550 crypto/shash.c:106
 shash_ahash_update crypto/shash.c:246 [inline]
 shash_async_update+0x113/0x1d0 crypto/shash.c:254
 crypto_ahash_update include/crypto/hash.h:547 [inline]
 hash_sendpage+0x8ef/0xdf0 crypto/algif_hash.c:168
 kernel_sendpage net/socket.c:3791 [inline]
 sock_sendpage+0x1e1/0x2c0 net/socket.c:950
 pipe_to_sendpage+0x38c/0x4c0 fs/splice.c:458
 splice_from_pipe_feed fs/splice.c:512 [inline]
 __splice_from_pipe+0x539/0xed0 fs/splice.c:636
 splice_from_pipe fs/splice.c:671 [inline]
 generic_splice_sendpage+0x1d5/0x2d0 fs/splice.c:844
 do_splice_from fs/splice.c:863 [inline]
 direct_splice_actor+0x19e/0x200 fs/splice.c:1037
 splice_direct_to_actor+0x8a9/0x11e0 fs/splice.c:992
 do_splice_direct+0x342/0x580 fs/splice.c:1080
 do_sendfile+0xff5/0x1d10 fs/read_write.c:1520
 __do_compat_sys_sendfile fs/read_write.c:1602 [inline]
 __se_compat_sys_sendfile+0x301/0x3c0 fs/read_write.c:1585
 __ia32_compat_sys_sendfile+0x11a/0x160 fs/read_write.c:1585
 do_syscall_32_irqs_on arch/x86/entry/common.c:339 [inline]
 do_fast_syscall_32+0x3c7/0x6e0 arch/x86/entry/common.c:410
 entry_SYSENTER_compat+0x68/0x77 arch/x86/entry/entry_64_compat.S:139
RIP: 0023:0xf7f34d99
Code: 90 e8 0b 00 00 00 f3 90 0f ae e8 eb f9 8d 74 26 00 89 3c 24 c3 90 90 90 90 90 90 90 90 90 90 90 90 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 eb 0d 90 90 90 90 90 90 90 90 90 90 90 90
RSP: 002b:00000000ffe3de3c EFLAGS: 00000296 ORIG_RAX: 00000000000000bb
RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 0000000000000003
RDX: 0000000000000000 RSI: 00000000ffffffff RDI: 0000000000000004
RBP: 0000000020000480 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000

Uninit was stored to memory at:
 kmsan_save_stack_with_flags mm/kmsan/kmsan.c:144 [inline]
 kmsan_internal_chain_origin+0xad/0x130 mm/kmsan/kmsan.c:310
 kmsan_memcpy_memmove_metadata+0x272/0x2e0 mm/kmsan/kmsan.c:247
 kmsan_memcpy_metadata+0xb/0x10 mm/kmsan/kmsan.c:267
 kmsan_copy_to_user+0x50/0x90 mm/kmsan/kmsan_hooks.c:262
 _copy_to_user+0x15a/0x1f0 lib/usercopy.c:33
 copy_to_user include/linux/uaccess.h:174 [inline]
 proc_put_long kernel/sysctl.c:2260 [inline]
 __do_proc_dointvec+0xed3/0x1a70 kernel/sysctl.c:2385
 do_proc_dointvec kernel/sysctl.c:2412 [inline]
 proc_dointvec+0x139/0x160 kernel/sysctl.c:2572
 proc_do_sync_ports+0x26a/0x500 net/netfilter/ipvs/ip_vs_ctl.c:1803
 proc_sys_call_handler+0xa92/0xd00 fs/proc/proc_sysctl.c:616
 proc_sys_read+0xc6/0xe0 fs/proc/proc_sysctl.c:630
 do_loop_readv_writev fs/read_write.c:714 [inline]
 do_iter_read+0x8df/0xe10 fs/read_write.c:935
 vfs_readv+0x1ee/0x280 fs/read_write.c:1053
 kernel_readv fs/splice.c:365 [inline]
 default_file_splice_read+0xb1d/0x11d0 fs/splice.c:422
 do_splice_to fs/splice.c:892 [inline]
 splice_direct_to_actor+0x5d8/0x11e0 fs/splice.c:971
 do_splice_direct+0x342/0x580 fs/splice.c:1080
 do_sendfile+0xff5/0x1d10 fs/read_write.c:1520
 __do_compat_sys_sendfile fs/read_write.c:1602 [inline]
 __se_compat_sys_sendfile+0x301/0x3c0 fs/read_write.c:1585
 __ia32_compat_sys_sendfile+0x11a/0x160 fs/read_write.c:1585
 do_syscall_32_irqs_on arch/x86/entry/common.c:339 [inline]
 do_fast_syscall_32+0x3c7/0x6e0 arch/x86/entry/common.c:410
 entry_SYSENTER_compat+0x68/0x77 arch/x86/entry/entry_64_compat.S:139

Local variable ----tmp.i@__do_proc_dointvec created at:
 proc_put_long kernel/sysctl.c:2256 [inline]
 __do_proc_dointvec+0xd1b/0x1a70 kernel/sysctl.c:2385
 proc_put_long kernel/sysctl.c:2256 [inline]
 __do_proc_dointvec+0xd1b/0x1a70 kernel/sysctl.c:2385
=====================================================

Crashes (478):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kmsan-gce-386 2020/04/22 00:54 https://github.com/google/kmsan.git master 9535d09e7cff 2e44d63e .config log report syz C
ci-upstream-kmsan-gce-386 2022/12/07 08:23 https://github.com/google/kmsan.git master 30d2727189c5 d88f3abb .config log report info KMSAN: uninit-value in __crc32c_le_base
ci-upstream-kmsan-gce-386 2022/12/07 06:47 https://github.com/google/kmsan.git master 30d2727189c5 d88f3abb .config log report info KMSAN: uninit-value in __crc32c_le_base
ci-upstream-kmsan-gce-386 2022/12/07 04:53 https://github.com/google/kmsan.git master 30d2727189c5 d88f3abb .config log report info KMSAN: uninit-value in __crc32c_le_base
ci-upstream-kmsan-gce-386 2022/12/07 03:52 https://github.com/google/kmsan.git master 30d2727189c5 d88f3abb .config log report info KMSAN: uninit-value in __crc32c_le_base
ci-upstream-kmsan-gce-386 2022/12/07 02:28 https://github.com/google/kmsan.git master 30d2727189c5 d88f3abb .config log report info KMSAN: uninit-value in __crc32c_le_base
ci-upstream-kmsan-gce-386 2022/12/07 01:27 https://github.com/google/kmsan.git master 30d2727189c5 d88f3abb .config log report info KMSAN: uninit-value in __crc32c_le_base
ci-upstream-kmsan-gce-386 2022/12/07 00:27 https://github.com/google/kmsan.git master 30d2727189c5 d88f3abb .config log report info KMSAN: uninit-value in __crc32c_le_base
ci-upstream-kmsan-gce-386 2022/12/06 23:24 https://github.com/google/kmsan.git master 30d2727189c5 d88f3abb .config log report info KMSAN: uninit-value in __crc32c_le_base
ci-upstream-kmsan-gce-386 2022/12/06 21:42 https://github.com/google/kmsan.git master 30d2727189c5 d88f3abb .config log report info KMSAN: uninit-value in __crc32c_le_base
ci-upstream-kmsan-gce-386 2022/12/06 20:10 https://github.com/google/kmsan.git master 30d2727189c5 d88f3abb .config log report info KMSAN: uninit-value in __crc32c_le_base
ci-upstream-kmsan-gce-386 2022/12/06 07:47 https://github.com/google/kmsan.git master 0b9b391069d5 045cbb84 .config log report info KMSAN: uninit-value in __crc32c_le_base
ci-upstream-kmsan-gce-386 2022/12/06 03:58 https://github.com/google/kmsan.git master 0b9b391069d5 045cbb84 .config log report info KMSAN: uninit-value in __crc32c_le_base
ci-upstream-kmsan-gce-386 2022/12/06 02:55 https://github.com/google/kmsan.git master 0b9b391069d5 045cbb84 .config log report info KMSAN: uninit-value in __crc32c_le_base
ci-upstream-kmsan-gce-386 2022/12/05 23:37 https://github.com/google/kmsan.git master 0b9b391069d5 045cbb84 .config log report info KMSAN: uninit-value in __crc32c_le_base
ci-upstream-kmsan-gce-386 2022/12/05 22:34 https://github.com/google/kmsan.git master 0b9b391069d5 045cbb84 .config log report info KMSAN: uninit-value in __crc32c_le_base
ci-upstream-kmsan-gce-386 2022/12/05 21:55 https://github.com/google/kmsan.git master 0b9b391069d5 045cbb84 .config log report info KMSAN: uninit-value in __crc32c_le_base
ci-upstream-kmsan-gce-386 2022/12/05 10:53 https://github.com/google/kmsan.git master 49a9a20768f5 e080de16 .config log report info KMSAN: uninit-value in __crc32c_le_base
ci-upstream-kmsan-gce-386 2022/12/05 08:32 https://github.com/google/kmsan.git master 49a9a20768f5 e080de16 .config log report info KMSAN: uninit-value in __crc32c_le_base
ci-upstream-kmsan-gce-386 2022/12/05 03:15 https://github.com/google/kmsan.git master 49a9a20768f5 e080de16 .config log report info KMSAN: uninit-value in __crc32c_le_base
ci-upstream-kmsan-gce-386 2022/12/05 01:25 https://github.com/google/kmsan.git master 49a9a20768f5 e080de16 .config log report info KMSAN: uninit-value in __crc32c_le_base
ci-upstream-kmsan-gce-386 2022/12/04 21:10 https://github.com/google/kmsan.git master 49a9a20768f5 e080de16 .config log report info KMSAN: uninit-value in __crc32c_le_base
ci-upstream-kmsan-gce-386 2022/12/04 17:35 https://github.com/google/kmsan.git master 49a9a20768f5 e080de16 .config log report info KMSAN: uninit-value in __crc32c_le_base
ci-upstream-kmsan-gce-386 2022/12/04 13:02 https://github.com/google/kmsan.git master 49a9a20768f5 e080de16 .config log report info KMSAN: uninit-value in __crc32c_le_base
ci-upstream-kmsan-gce-386 2022/12/04 11:53 https://github.com/google/kmsan.git master 49a9a20768f5 e080de16 .config log report info KMSAN: uninit-value in __crc32c_le_base
ci-upstream-kmsan-gce-386 2022/12/04 11:03 https://github.com/google/kmsan.git master 49a9a20768f5 e080de16 .config log report info KMSAN: uninit-value in __crc32c_le_base
ci-upstream-kmsan-gce-386 2022/12/04 05:49 https://github.com/google/kmsan.git master 49a9a20768f5 e080de16 .config log report info KMSAN: uninit-value in __crc32c_le_base
ci-upstream-kmsan-gce-386 2022/12/04 04:26 https://github.com/google/kmsan.git master 49a9a20768f5 e080de16 .config log report info KMSAN: uninit-value in __crc32c_le_base
ci-upstream-kmsan-gce-386 2022/12/04 03:02 https://github.com/google/kmsan.git master 49a9a20768f5 e080de16 .config log report info KMSAN: uninit-value in __crc32c_le_base
ci-upstream-kmsan-gce-386 2022/12/04 01:59 https://github.com/google/kmsan.git master 49a9a20768f5 e080de16 .config log report info KMSAN: uninit-value in __crc32c_le_base
ci-upstream-kmsan-gce-386 2022/12/04 00:29 https://github.com/google/kmsan.git master 49a9a20768f5 e080de16 .config log report info KMSAN: uninit-value in __crc32c_le_base
ci-upstream-kmsan-gce-386 2022/12/03 23:18 https://github.com/google/kmsan.git master 49a9a20768f5 e080de16 .config log report info KMSAN: uninit-value in __crc32c_le_base
ci-upstream-kmsan-gce-386 2022/12/03 21:26 https://github.com/google/kmsan.git master 49a9a20768f5 e080de16 .config log report info KMSAN: uninit-value in __crc32c_le_base
ci-upstream-kmsan-gce-386 2022/12/03 18:41 https://github.com/google/kmsan.git master 49a9a20768f5 e080de16 .config log report info KMSAN: uninit-value in __crc32c_le_base
ci-upstream-kmsan-gce-386 2022/12/03 17:09 https://github.com/google/kmsan.git master 49a9a20768f5 e080de16 .config log report info KMSAN: uninit-value in __crc32c_le_base
ci-upstream-kmsan-gce-386 2022/12/03 10:35 https://github.com/google/kmsan.git master 49a9a20768f5 e080de16 .config log report info KMSAN: uninit-value in __crc32c_le_base
ci-upstream-kmsan-gce-386 2022/12/03 09:03 https://github.com/google/kmsan.git master 49a9a20768f5 e080de16 .config log report info KMSAN: uninit-value in __crc32c_le_base
ci-upstream-kmsan-gce-386 2022/12/03 06:59 https://github.com/google/kmsan.git master 49a9a20768f5 e080de16 .config log report info KMSAN: uninit-value in __crc32c_le_base
ci-upstream-kmsan-gce-386 2022/12/03 00:41 https://github.com/google/kmsan.git master 49a9a20768f5 e080de16 .config log report info KMSAN: uninit-value in __crc32c_le_base
ci-upstream-kmsan-gce-386 2022/12/02 23:10 https://github.com/google/kmsan.git master 49a9a20768f5 e080de16 .config log report info KMSAN: uninit-value in __crc32c_le_base
ci-upstream-kmsan-gce-386 2022/12/02 22:53 https://github.com/google/kmsan.git master 49a9a20768f5 e080de16 .config log report info KMSAN: uninit-value in __crc32c_le_base
ci-upstream-kmsan-gce-386 2022/12/02 21:13 https://github.com/google/kmsan.git master 49a9a20768f5 e080de16 .config log report info KMSAN: uninit-value in __crc32c_le_base
ci-upstream-kmsan-gce-386 2022/12/02 19:21 https://github.com/google/kmsan.git master 49a9a20768f5 e080de16 .config log report info KMSAN: uninit-value in __crc32c_le_base
ci-upstream-kmsan-gce-386 2022/12/02 17:08 https://github.com/google/kmsan.git master 49a9a20768f5 e080de16 .config log report info KMSAN: uninit-value in __crc32c_le_base
ci-upstream-kmsan-gce-386 2022/12/02 16:46 https://github.com/google/kmsan.git master 49a9a20768f5 e080de16 .config log report info KMSAN: uninit-value in __crc32c_le_base
ci-upstream-kmsan-gce-386 2022/12/02 15:43 https://github.com/google/kmsan.git master 49a9a20768f5 e080de16 .config log report info KMSAN: uninit-value in __crc32c_le_base
ci-upstream-kmsan-gce 2020/07/22 02:01 https://github.com/google/kmsan.git master 91e18444d6b0 21f1765e .config log report
ci-upstream-kmsan-gce-386 2022/01/14 10:04 https://github.com/google/kmsan.git master fa3879a274df b8d780ab .config log report info KMSAN: uninit-value in macvlan_forward_source
ci-upstream-kmsan-gce-386 2022/01/08 00:36 https://github.com/google/kmsan.git master 81c325bbf94e 2ca0d385 .config log report info KMSAN: uninit-value in neigh_timer_handler
ci-upstream-kmsan-gce-386 2020/07/22 05:14 https://github.com/google/kmsan.git master 91e18444d6b0 21f1765e .config log report
ci-upstream-kmsan-gce-386 2020/04/21 20:11 https://github.com/google/kmsan.git master 9535d09e7cff 2e44d63e .config log report
* Struck through repros no longer work on HEAD.