===================================================== BUG: KMSAN: uninit-value in crc32_body lib/crc32.c:112 [inline] BUG: KMSAN: uninit-value in crc32_le_generic lib/crc32.c:179 [inline] BUG: KMSAN: uninit-value in __crc32c_le_base+0x4fa/0xd30 lib/crc32.c:202 CPU: 1 PID: 11687 Comm: sshd Not tainted 5.5.0-rc1-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+0xf8/0x1e0 mm/kmsan/kmsan_report.c:118 __msan_warning+0x58/0xa0 mm/kmsan/kmsan_instr.c:215 crc32_body lib/crc32.c:112 [inline] crc32_le_generic lib/crc32.c:179 [inline] __crc32c_le_base+0x4fa/0xd30 lib/crc32.c:202 chksum_update+0xb2/0x110 crypto/crc32c_generic.c:90 crypto_shash_update+0x4ed/0x550 crypto/shash.c:107 crc32c+0x150/0x220 lib/libcrc32c.c:47 sctp_csum_update+0x89/0xa0 include/net/sctp/checksum.h:36 __skb_checksum+0x12f7/0x1300 net/core/skbuff.c:2640 sctp_compute_cksum include/net/sctp/checksum.h:59 [inline] sctp_packet_pack net/sctp/output.c:528 [inline] sctp_packet_transmit+0x422d/0x4380 net/sctp/output.c:597 sctp_outq_flush_transports net/sctp/outqueue.c:1146 [inline] sctp_outq_flush+0x1823/0x5d80 net/sctp/outqueue.c:1194 sctp_outq_uncork+0xd0/0xf0 net/sctp/outqueue.c:757 sctp_cmd_interpreter net/sctp/sm_sideeffect.c:1786 [inline] sctp_side_effects net/sctp/sm_sideeffect.c:1189 [inline] sctp_do_sm+0x9105/0x9760 net/sctp/sm_sideeffect.c:1160 sctp_generate_heartbeat_event+0x3c6/0x5a0 net/sctp/sm_sideeffect.c:391 call_timer_fn+0x232/0x530 kernel/time/timer.c:1404 expire_timers kernel/time/timer.c:1449 [inline] __run_timers+0xd60/0x1270 kernel/time/timer.c:1773 run_timer_softirq+0x2d/0x50 kernel/time/timer.c:1786 __do_softirq+0x4a1/0x83a kernel/softirq.c:293 invoke_softirq kernel/softirq.c:375 [inline] irq_exit+0x230/0x280 kernel/softirq.c:416 exiting_irq+0xe/0x10 arch/x86/include/asm/apic.h:536 smp_apic_timer_interrupt+0x48/0x70 arch/x86/kernel/apic/apic.c:1140 apic_timer_interrupt+0x2e/0x40 arch/x86/entry/entry_64.S:834 RIP: 0010:__msan_chain_origin+0x70/0x90 mm/kmsan/kmsan_instr.c:168 Code: 7d 35 44 89 f7 e8 a0 f4 ff ff be ff ff ff ff 65 0f c1 35 c3 cd 37 7b ff ce 75 1e 89 c3 e8 b8 98 32 ff 4c 89 7d e0 ff 75 e0 9d <89> d8 48 83 c4 10 5b 41 5e 41 5f 5d c3 0f 0b 48 c7 c7 af 16 07 92 RSP: 0018:ffff9c54c321f0d8 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13 RAX: 0000000027d500c8 RBX: 0000000027d500c8 RCX: 0000000017a100c8 RDX: 0000000000000a20 RSI: 0000000000000000 RDI: 0000000007d500c8 RBP: ffff9c54c321f100 R08: 0000000000000003 R09: ffff9c54c321ee8c R10: 0000000000000003 R11: ffffffff84463cc0 R12: ffff894caf340009 R13: ffff894c07ae6ee0 R14: 0000000017a100c8 R15: 0000000000000246 __skb_clone+0x863/0x970 net/core/skbuff.c:1001 skb_clone+0x402/0x5d0 net/core/skbuff.c:1455 __tcp_transmit_skb+0x4bc/0x5ec0 net/ipv4/tcp_output.c:1043 tcp_transmit_skb net/ipv4/tcp_output.c:1186 [inline] tcp_write_xmit+0x3999/0xb0c0 net/ipv4/tcp_output.c:2441 __tcp_push_pending_frames+0x124/0x4e0 net/ipv4/tcp_output.c:2617 tcp_push+0x705/0x8b0 net/ipv4/tcp.c:726 tcp_sendmsg_locked+0x5bd4/0x6a40 net/ipv4/tcp.c:1405 tcp_sendmsg+0xb2/0x100 net/ipv4/tcp.c:1436 inet_sendmsg+0x178/0x2e0 net/ipv4/af_inet.c:807 sock_sendmsg_nosec net/socket.c:639 [inline] sock_sendmsg net/socket.c:659 [inline] sock_write_iter+0x599/0x650 net/socket.c:991 call_write_iter include/linux/fs.h:1902 [inline] new_sync_write fs/read_write.c:483 [inline] __vfs_write+0xa2c/0xcb0 fs/read_write.c:496 vfs_write+0x481/0x920 fs/read_write.c:558 ksys_write+0x265/0x430 fs/read_write.c:611 __do_sys_write fs/read_write.c:623 [inline] __se_sys_write+0x92/0xb0 fs/read_write.c:620 __x64_sys_write+0x4a/0x70 fs/read_write.c:620 do_syscall_64+0xb6/0x160 arch/x86/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x7effd6f5f370 Code: 73 01 c3 48 8b 0d c8 4a 2b 00 31 d2 48 29 c2 64 89 11 48 83 c8 ff eb ea 90 90 83 3d 85 a2 2b 00 00 75 10 b8 01 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 31 c3 48 83 ec 08 e8 0e 8a 01 00 48 89 04 24 RSP: 002b:00007ffd05110d78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00000000000007c8 RCX: 00007effd6f5f370 RDX: 00000000000007c8 RSI: 00005594e844e220 RDI: 0000000000000003 RBP: 00005594e844e220 R08: 0000000000000001 R09: 0101010101010101 R10: 0000000000000008 R11: 0000000000000246 R12: 00007ffd05110ddc R13: 00005594e74c7fb4 R14: 0000000000000028 R15: 00005594e74c9ca0 Uninit was stored to memory at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:144 [inline] kmsan_internal_chain_origin+0xc5/0x140 mm/kmsan/kmsan.c:310 kmsan_memcpy_memmove_metadata+0x25c/0x2e0 mm/kmsan/kmsan.c:247 kmsan_memcpy_metadata+0xb/0x10 mm/kmsan/kmsan.c:267 __msan_memcpy+0x44/0x50 mm/kmsan/kmsan_instr.c:116 skb_put_data include/linux/skbuff.h:2235 [inline] sctp_packet_pack net/sctp/output.c:470 [inline] sctp_packet_transmit+0x1dd1/0x4380 net/sctp/output.c:597 sctp_outq_flush_transports net/sctp/outqueue.c:1146 [inline] sctp_outq_flush+0x1823/0x5d80 net/sctp/outqueue.c:1194 sctp_outq_uncork+0xd0/0xf0 net/sctp/outqueue.c:757 sctp_cmd_interpreter net/sctp/sm_sideeffect.c:1786 [inline] sctp_side_effects net/sctp/sm_sideeffect.c:1189 [inline] sctp_do_sm+0x9105/0x9760 net/sctp/sm_sideeffect.c:1160 sctp_generate_heartbeat_event+0x3c6/0x5a0 net/sctp/sm_sideeffect.c:391 call_timer_fn+0x232/0x530 kernel/time/timer.c:1404 expire_timers kernel/time/timer.c:1449 [inline] __run_timers+0xd60/0x1270 kernel/time/timer.c:1773 run_timer_softirq+0x2d/0x50 kernel/time/timer.c:1786 __do_softirq+0x4a1/0x83a kernel/softirq.c:293 Uninit was stored to memory at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:144 [inline] kmsan_internal_chain_origin+0xc5/0x140 mm/kmsan/kmsan.c:310 kmsan_memcpy_memmove_metadata+0x25c/0x2e0 mm/kmsan/kmsan.c:247 kmsan_memcpy_metadata+0xb/0x10 mm/kmsan/kmsan.c:267 __msan_memcpy+0x44/0x50 mm/kmsan/kmsan_instr.c:116 skb_put_data include/linux/skbuff.h:2235 [inline] sctp_addto_chunk+0x21c/0x430 net/sctp/sm_make_chunk.c:1494 sctp_make_heartbeat+0x4eb/0x700 net/sctp/sm_make_chunk.c:1164 sctp_sf_heartbeat net/sctp/sm_statefuns.c:990 [inline] sctp_sf_sendbeat_8_3+0x18d/0xb10 net/sctp/sm_statefuns.c:1034 sctp_do_sm+0x2b4/0x9760 net/sctp/sm_sideeffect.c:1157 sctp_generate_heartbeat_event+0x3c6/0x5a0 net/sctp/sm_sideeffect.c:391 call_timer_fn+0x232/0x530 kernel/time/timer.c:1404 expire_timers kernel/time/timer.c:1449 [inline] __run_timers+0xd60/0x1270 kernel/time/timer.c:1773 run_timer_softirq+0x2d/0x50 kernel/time/timer.c:1786 __do_softirq+0x4a1/0x83a kernel/softirq.c:293 Uninit was stored to memory at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:144 [inline] kmsan_internal_chain_origin+0xc5/0x140 mm/kmsan/kmsan.c:310 kmsan_memcpy_memmove_metadata+0x25c/0x2e0 mm/kmsan/kmsan.c:247 kmsan_memcpy_metadata+0xb/0x10 mm/kmsan/kmsan.c:267 __msan_memcpy+0x44/0x50 mm/kmsan/kmsan_instr.c:116 sctp_make_heartbeat+0x3f7/0x700 net/sctp/sm_make_chunk.c:1156 sctp_sf_heartbeat net/sctp/sm_statefuns.c:990 [inline] sctp_sf_sendbeat_8_3+0x18d/0xb10 net/sctp/sm_statefuns.c:1034 sctp_do_sm+0x2b4/0x9760 net/sctp/sm_sideeffect.c:1157 sctp_generate_heartbeat_event+0x3c6/0x5a0 net/sctp/sm_sideeffect.c:391 call_timer_fn+0x232/0x530 kernel/time/timer.c:1404 expire_timers kernel/time/timer.c:1449 [inline] __run_timers+0xd60/0x1270 kernel/time/timer.c:1773 run_timer_softirq+0x2d/0x50 kernel/time/timer.c:1786 __do_softirq+0x4a1/0x83a kernel/softirq.c:293 Uninit was stored to memory at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:144 [inline] kmsan_internal_chain_origin+0xc5/0x140 mm/kmsan/kmsan.c:310 kmsan_memcpy_memmove_metadata+0x25c/0x2e0 mm/kmsan/kmsan.c:247 kmsan_memcpy_metadata+0xb/0x10 mm/kmsan/kmsan.c:267 __msan_memcpy+0x44/0x50 mm/kmsan/kmsan_instr.c:116 sctp_transport_init net/sctp/transport.c:47 [inline] sctp_transport_new+0x248/0xa20 net/sctp/transport.c:100 sctp_assoc_add_peer+0x5ba/0x2120 net/sctp/associola.c:617 sctp_process_param net/sctp/sm_make_chunk.c:2524 [inline] sctp_process_init+0x162b/0x3e30 net/sctp/sm_make_chunk.c:2345 sctp_cmd_process_init net/sctp/sm_sideeffect.c:672 [inline] sctp_cmd_interpreter net/sctp/sm_sideeffect.c:1379 [inline] sctp_side_effects net/sctp/sm_sideeffect.c:1189 [inline] sctp_do_sm+0x1a59/0x9760 net/sctp/sm_sideeffect.c:1160 sctp_assoc_bh_rcv+0x9ef/0xdb0 net/sctp/associola.c:1045 sctp_inq_push+0x300/0x420 net/sctp/inqueue.c:80 sctp_backlog_rcv+0x2eb/0x1240 net/sctp/input.c:344 sk_backlog_rcv include/net/sock.h:949 [inline] __release_sock+0x448/0x640 net/core/sock.c:2437 release_sock+0x99/0x2a0 net/core/sock.c:2953 sctp_wait_for_connect+0x3d7/0x840 net/sctp/socket.c:9282 __sctp_connect+0x1e9d/0x1f20 net/sctp/socket.c:1226 sctp_connect net/sctp/socket.c:4895 [inline] sctp_inet_connect+0x2dd/0x330 net/sctp/socket.c:4910 __sys_connect_file net/socket.c:1844 [inline] __sys_connect+0x6f3/0x770 net/socket.c:1861 __do_sys_connect net/socket.c:1872 [inline] __se_sys_connect+0x8d/0xb0 net/socket.c:1869 __x64_sys_connect+0x4a/0x70 net/socket.c:1869 do_syscall_64+0xb6/0x160 arch/x86/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Local variable ----addr.i@sctp_process_init created at: sctp_process_param net/sctp/sm_make_chunk.c:2495 [inline] sctp_process_init+0x603/0x3e30 net/sctp/sm_make_chunk.c:2345 sctp_process_param net/sctp/sm_make_chunk.c:2495 [inline] sctp_process_init+0x603/0x3e30 net/sctp/sm_make_chunk.c:2345 =====================================================