================================================================== BUG: KMSAN: uninit-value in __list_add_valid+0x2a4/0x450 lib/list_debug.c:26 CPU: 1 PID: 7463 Comm: syz-executor1 Not tainted 4.17.0+ #9 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/0x1d0 lib/dump_stack.c:113 kmsan_report+0x188/0x2a0 mm/kmsan/kmsan.c:1125 __msan_warning_32+0x70/0xc0 mm/kmsan/kmsan_instr.c:620 __list_add_valid+0x2a4/0x450 lib/list_debug.c:26 __list_add include/linux/list.h:60 [inline] list_add_tail include/linux/list.h:93 [inline] cma_listen_on_all drivers/infiniband/core/cma.c:2301 [inline] rdma_listen+0x65f/0x10f0 drivers/infiniband/core/cma.c:3327 ucma_listen+0x4e9/0x630 drivers/infiniband/core/ucma.c:1096 ucma_write+0x57e/0x5f0 drivers/infiniband/core/ucma.c:1676 __vfs_write+0x1aa/0x9f0 fs/read_write.c:485 vfs_write+0x467/0x8c0 fs/read_write.c:549 ksys_write fs/read_write.c:598 [inline] __do_sys_write fs/read_write.c:610 [inline] __se_sys_write fs/read_write.c:607 [inline] __x64_sys_write+0x1bf/0x3e0 fs/read_write.c:607 do_syscall_64+0x15b/0x230 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x455b29 RSP: 002b:00007f3f65b32c68 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f3f65b336d4 RCX: 0000000000455b29 RDX: 0000000000000010 RSI: 0000000020000140 RDI: 0000000000000013 RBP: 000000000072bea0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000004c25fd R14: 00000000004d3c30 R15: 0000000000000000 Uninit was created at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:282 [inline] kmsan_internal_poison_shadow+0xb8/0x1b0 mm/kmsan/kmsan.c:192 kmsan_kmalloc+0x94/0x100 mm/kmsan/kmsan.c:318 __kmalloc+0x13a/0x350 mm/slub.c:3818 kmalloc include/linux/slab.h:517 [inline] tty_buffer_alloc drivers/tty/tty_buffer.c:170 [inline] __tty_buffer_request_room+0x469/0x8d0 drivers/tty/tty_buffer.c:268 __tty_insert_flip_char+0xb9/0x390 drivers/tty/tty_buffer.c:379 tty_insert_flip_char include/linux/tty_flip.h:31 [inline] put_queue drivers/tty/vt/keyboard.c:307 [inline] to_utf8+0x834/0x2340 drivers/tty/vt/keyboard.c:339 k_unicode drivers/tty/vt/keyboard.c:657 [inline] k_self+0x238/0x600 drivers/tty/vt/keyboard.c:680 kbd_keycode drivers/tty/vt/keyboard.c:1446 [inline] kbd_event+0x5337/0x57c0 drivers/tty/vt/keyboard.c:1464 input_to_handler drivers/input/input.c:121 [inline] input_pass_values+0xc35/0x1af0 drivers/input/input.c:148 input_handle_event+0x1b9b/0x2610 drivers/input/input.c:401 input_inject_event+0x29d/0x340 drivers/input/input.c:466 evdev_write+0x523/0x5f0 drivers/input/evdev.c:565 __vfs_write+0x1aa/0x9f0 fs/read_write.c:485 vfs_write+0x467/0x8c0 fs/read_write.c:549 ksys_write fs/read_write.c:598 [inline] __do_sys_write fs/read_write.c:610 [inline] __se_sys_write fs/read_write.c:607 [inline] __x64_sys_write+0x1bf/0x3e0 fs/read_write.c:607 do_syscall_64+0x15b/0x230 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x44/0xa9 ==================================================================