syzbot


KMSAN: uninit-value in crc32_le_base (2)

Status: auto-closed as invalid on 2021/11/06 08:01
Reported-by: syzbot+ce18ece82e1fede33bf7@syzkaller.appspotmail.com
First crash: 669d, last: 509d
similar bugs (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KMSAN: uninit-value in crc32_le_base C 44 863d 866d 0/24 closed as invalid on 2020/07/22 14:12

Sample crash report:
=====================================================
BUG: KMSAN: uninit-value in crc32_body lib/crc32.c:110 [inline]
BUG: KMSAN: uninit-value in crc32_le_generic lib/crc32.c:179 [inline]
BUG: KMSAN: uninit-value in crc32_le_base+0x558/0xe70 lib/crc32.c:197
CPU: 1 PID: 8981 Comm: segctord Not tainted 5.12.0-rc6-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:79 [inline]
 dump_stack+0x24c/0x2e0 lib/dump_stack.c:120
 kmsan_report+0xfb/0x1e0 mm/kmsan/kmsan_report.c:121
 __msan_warning+0x5c/0xa0 mm/kmsan/kmsan_instr.c:197
 crc32_body lib/crc32.c:110 [inline]
 crc32_le_generic lib/crc32.c:179 [inline]
 crc32_le_base+0x558/0xe70 lib/crc32.c:197
 nilfs_segbuf_fill_in_segsum_crc fs/nilfs2/segbuf.c:182 [inline]
 nilfs_add_checksums_on_logs+0x388/0xde0 fs/nilfs2/segbuf.c:320
 nilfs_segctor_do_construct+0x7dd6/0xbf20 fs/nilfs2/segment.c:2067
 nilfs_segctor_construct+0x302/0x1040 fs/nilfs2/segment.c:2372
 nilfs_segctor_thread_construct+0xd6/0x840 fs/nilfs2/segment.c:2480
 nilfs_segctor_thread+0xf35/0x13c0 fs/nilfs2/segment.c:2563
 kthread+0x521/0x560 kernel/kthread.c:292
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294

Uninit was stored to memory at:
 kmsan_save_stack_with_flags mm/kmsan/kmsan.c:120 [inline]
 kmsan_internal_chain_origin+0xad/0x130 mm/kmsan/kmsan.c:288
 kmsan_memcpy_memmove_metadata+0x25e/0x2d0 mm/kmsan/kmsan.c:225
 kmsan_memcpy_metadata+0xb/0x10 mm/kmsan/kmsan.c:245
 __msan_memcpy+0x46/0x60 mm/kmsan/kmsan_instr.c:110
 nilfs_write_dat_node_binfo+0x17a/0x370 fs/nilfs2/segment.c:658
 nilfs_segctor_update_payload_blocknr fs/nilfs2/segment.c:1597 [inline]
 nilfs_segctor_assign fs/nilfs2/segment.c:1620 [inline]
 nilfs_segctor_do_construct+0x4b00/0xbf20 fs/nilfs2/segment.c:2047
 nilfs_segctor_construct+0x302/0x1040 fs/nilfs2/segment.c:2372
 nilfs_segctor_thread_construct+0xd6/0x840 fs/nilfs2/segment.c:2480
 nilfs_segctor_thread+0xf35/0x13c0 fs/nilfs2/segment.c:2563
 kthread+0x521/0x560 kernel/kthread.c:292
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294

Local variable ----binfo.i.i@nilfs_segctor_do_construct created at:
 nilfs_segctor_update_payload_blocknr fs/nilfs2/segment.c:1553 [inline]
 nilfs_segctor_assign fs/nilfs2/segment.c:1620 [inline]
 nilfs_segctor_do_construct+0x3deb/0xbf20 fs/nilfs2/segment.c:2047
 nilfs_segctor_update_payload_blocknr fs/nilfs2/segment.c:1553 [inline]
 nilfs_segctor_assign fs/nilfs2/segment.c:1620 [inline]
 nilfs_segctor_do_construct+0x3deb/0xbf20 fs/nilfs2/segment.c:2047
=====================================================

Crashes (5):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kmsan-gce-386 2021/07/09 08:00 https://github.com/google/kmsan.git master 57b5797c8013 1b20171a .config log report info KMSAN: uninit-value in crc32_le_base
ci-upstream-kmsan-gce-386 2021/05/07 19:46 https://github.com/google/kmsan.git master 4ebaab5fb428 f6da8120 .config log report info KMSAN: uninit-value in crc32_le_base
ci-upstream-kmsan-gce-386 2021/02/26 22:37 https://github.com/google/kmsan.git master 29ad81a1074a 4c37c133 .config log report info KMSAN: uninit-value in crc32_le_base
ci-upstream-kmsan-gce-386 2021/02/03 14:12 https://github.com/google/kmsan.git master 73d62e81b476 624dad51 .config log report info KMSAN: uninit-value in crc32_le_base
ci-upstream-kmsan-gce-386 2021/01/30 20:20 https://github.com/google/kmsan.git master 73d62e81b476 fc9fd31e .config log report info KMSAN: uninit-value in crc32_le_base
* Struck through repros no longer work on HEAD.