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: 805d, last: 138d
similar bugs (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KMSAN: uninit-value in __crc32c_le_base syz 567 910d 956d 16/22 fixed on 2020/02/14 01:19
Patch testing requests:
Created Duration User Patch Repo Result
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 (165):
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/02/18 03:16 https://github.com/google/kmsan.git master 85cfd6e539bd 3cd800e4 .config log report info KMSAN: uninit-value in __crc32c_le_base
ci-upstream-kmsan-gce-386 2022/02/12 18:26 https://github.com/google/kmsan.git master 85cfd6e539bd 8b9ca619 .config log report info KMSAN: uninit-value in __crc32c_le_base
ci-upstream-kmsan-gce-386 2022/02/10 17:12 https://github.com/google/kmsan.git master 85cfd6e539bd 0b33604d .config log report info KMSAN: uninit-value in __crc32c_le_base
ci-upstream-kmsan-gce-386 2022/02/10 09:57 https://github.com/google/kmsan.git master 85cfd6e539bd 0b33604d .config log report info KMSAN: uninit-value in __crc32c_le_base
ci-upstream-kmsan-gce-386 2022/02/03 15:23 https://github.com/google/kmsan.git master 85cfd6e539bd 4ebb2798 .config log report info KMSAN: uninit-value in __crc32c_le_base
ci-upstream-kmsan-gce-386 2022/01/31 11:09 https://github.com/google/kmsan.git master 85cfd6e539bd 6b7c57fe .config log report info KMSAN: uninit-value in __crc32c_le_base
ci-upstream-kmsan-gce-386 2022/01/28 14:34 https://github.com/google/kmsan.git master 85cfd6e539bd 495e00c5 .config log report info KMSAN: uninit-value in __crc32c_le_base
ci-upstream-kmsan-gce-386 2022/01/26 12:25 https://github.com/google/kmsan.git master 85cfd6e539bd 2cbffd88 .config log report info KMSAN: uninit-value in __crc32c_le_base
ci-upstream-kmsan-gce-386 2022/01/26 03:10 https://github.com/google/kmsan.git master 85cfd6e539bd 2cbffd88 .config log report info KMSAN: uninit-value in __crc32c_le_base
ci-upstream-kmsan-gce-386 2022/01/22 02:16 https://github.com/google/kmsan.git master 85cfd6e539bd 214351e1 .config log report info KMSAN: uninit-value in __crc32c_le_base
ci-upstream-kmsan-gce-386 2022/01/21 22:44 https://github.com/google/kmsan.git master 85cfd6e539bd 214351e1 .config log report info KMSAN: uninit-value in __crc32c_le_base
ci-upstream-kmsan-gce-386 2022/01/21 12:49 https://github.com/google/kmsan.git master 85cfd6e539bd ab3d9f17 .config log report info KMSAN: uninit-value in __crc32c_le_base
ci-upstream-kmsan-gce-386 2022/01/20 03:24 https://github.com/google/kmsan.git master fa3879a274df 5da9499f .config log report info KMSAN: uninit-value in __crc32c_le_base
ci-upstream-kmsan-gce-386 2022/01/06 15:15 https://github.com/google/kmsan.git master 81c325bbf94e 6acc789a .config log report info KMSAN: uninit-value in __crc32c_le_base
ci-upstream-kmsan-gce-386 2022/01/05 15:37 https://github.com/google/kmsan.git master 81c325bbf94e 6acc789a .config log report info KMSAN: uninit-value in __crc32c_le_base
ci-upstream-kmsan-gce-386 2022/01/03 11:14 https://github.com/google/kmsan.git master 81c325bbf94e e1768e9c .config log report info KMSAN: uninit-value in __crc32c_le_base
ci-upstream-kmsan-gce-386 2022/01/02 13:24 https://github.com/google/kmsan.git master 81c325bbf94e e1768e9c .config log report info KMSAN: uninit-value in __crc32c_le_base
ci-upstream-kmsan-gce-386 2021/12/31 06:44 https://github.com/google/kmsan.git master 81c325bbf94e 36bd2e48 .config log report info KMSAN: uninit-value in __crc32c_le_base
ci-upstream-kmsan-gce-386 2021/12/29 05:29 https://github.com/google/kmsan.git master 81c325bbf94e 76c8cf06 .config log report info KMSAN: uninit-value in __crc32c_le_base
ci-upstream-kmsan-gce-386 2021/12/24 09:52 https://github.com/google/kmsan.git master 81c325bbf94e 6caa12e4 .config log report info KMSAN: uninit-value in __crc32c_le_base
ci-upstream-kmsan-gce-386 2021/12/22 07:21 https://github.com/google/kmsan.git master 81c325bbf94e 6caa12e4 .config log report info KMSAN: uninit-value in __crc32c_le_base
ci-upstream-kmsan-gce-386 2021/12/21 13:42 https://github.com/google/kmsan.git master 81c325bbf94e a938f0b8 .config log report info KMSAN: uninit-value in __crc32c_le_base
ci-upstream-kmsan-gce-386 2021/12/20 14:12 https://github.com/google/kmsan.git master b0a8b5053e8b 021b36cb .config log report info KMSAN: uninit-value in __crc32c_le_base
ci-upstream-kmsan-gce-386 2021/12/19 07:35 https://github.com/google/kmsan.git master b0a8b5053e8b 44068e19 .config log report info KMSAN: uninit-value in __crc32c_le_base
ci-upstream-kmsan-gce-386 2021/03/13 08:50 https://github.com/google/kmsan.git master 29ad81a1074a 4a003785 .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 2020/07/21 22:53 https://github.com/google/kmsan.git master 91e18444d6b0 21f1765e .config log report
ci-upstream-kmsan-gce 2020/07/21 21:34 https://github.com/google/kmsan.git master 91e18444d6b0 21f1765e .config log report
ci-upstream-kmsan-gce 2020/07/21 18:44 https://github.com/google/kmsan.git master 91e18444d6b0 21f1765e .config log report
ci-upstream-kmsan-gce 2020/07/21 12:57 https://github.com/google/kmsan.git master 91e18444d6b0 d88894e6 .config log report
ci-upstream-kmsan-gce 2020/07/20 23:07 https://github.com/google/kmsan.git master 91e18444d6b0 4285ffa3 .config log report
ci-upstream-kmsan-gce 2020/07/20 14:51 https://github.com/google/kmsan.git master 91e18444d6b0 4285ffa3 .config log report
ci-upstream-kmsan-gce 2020/07/20 14:30 https://github.com/google/kmsan.git master 91e18444d6b0 4285ffa3 .config log report
ci-upstream-kmsan-gce 2020/07/20 11:13 https://github.com/google/kmsan.git master 14525656779e 9c812472 .config log report
ci-upstream-kmsan-gce 2020/07/19 17:35 https://github.com/google/kmsan.git master 14525656779e 9c812472 .config log report
ci-upstream-kmsan-gce 2020/07/19 13:44 https://github.com/google/kmsan.git master 14525656779e 9c812472 .config log report
ci-upstream-kmsan-gce 2020/07/19 00:40 https://github.com/google/kmsan.git master 14525656779e 9c812472 .config log report
ci-upstream-kmsan-gce 2020/07/18 18:07 https://github.com/google/kmsan.git master 14525656779e 9c812472 .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/07/22 04:07 https://github.com/google/kmsan.git master 91e18444d6b0 21f1765e .config log report
ci-upstream-kmsan-gce-386 2020/07/22 00:52 https://github.com/google/kmsan.git master 91e18444d6b0 21f1765e .config log report
ci-upstream-kmsan-gce-386 2020/07/19 16:19 https://github.com/google/kmsan.git master 14525656779e 9c812472 .config log report
ci-upstream-kmsan-gce-386 2020/07/19 14:59 https://github.com/google/kmsan.git master 14525656779e 9c812472 .config log report
ci-upstream-kmsan-gce-386 2020/07/19 14:49 https://github.com/google/kmsan.git master 14525656779e 9c812472 .config log report
ci-upstream-kmsan-gce-386 2020/07/19 04:42 https://github.com/google/kmsan.git master 14525656779e 9c812472 .config log report
ci-upstream-kmsan-gce-386 2020/07/19 03:01 https://github.com/google/kmsan.git master 14525656779e 9c812472 .config log report
ci-upstream-kmsan-gce-386 2020/07/19 03:01 https://github.com/google/kmsan.git master 14525656779e 9c812472 .config log report
ci-upstream-kmsan-gce-386 2020/07/18 20:12 https://github.com/google/kmsan.git master 14525656779e 9c812472 .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