================================================================== BUG: KMSAN: uninit-value in skb_unref include/linux/skbuff.h:1017 [inline] BUG: KMSAN: uninit-value in kfree_skb+0x23c/0x4c0 net/core/skbuff.c:693 CPU: 0 PID: 12729 Comm: syz-executor.1 Not tainted 5.3.0-rc7+ #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+0x191/0x1f0 lib/dump_stack.c:113 kmsan_report+0x162/0x2d0 mm/kmsan/kmsan_report.c:109 __msan_warning+0x75/0xe0 mm/kmsan/kmsan_instr.c:294 skb_unref include/linux/skbuff.h:1017 [inline] kfree_skb+0x23c/0x4c0 net/core/skbuff.c:693 bcsp_close+0x127/0x1e0 drivers/bluetooth/hci_bcsp.c:748 hci_uart_tty_close+0x385/0x410 drivers/bluetooth/hci_ldisc.c:548 tty_ldisc_close drivers/tty/tty_ldisc.c:494 [inline] tty_ldisc_kill drivers/tty/tty_ldisc.c:642 [inline] tty_ldisc_release+0x5dd/0xdb0 drivers/tty/tty_ldisc.c:814 tty_release_struct+0x4f/0x1d0 drivers/tty/tty_io.c:1612 tty_release+0x1be2/0x1e80 drivers/tty/tty_io.c:1785 __fput+0x4c9/0xba0 fs/file_table.c:280 ____fput+0x37/0x40 fs/file_table.c:313 task_work_run+0x22e/0x2a0 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_usermode_loop arch/x86/entry/common.c:163 [inline] prepare_exit_to_usermode+0x39d/0x4d0 arch/x86/entry/common.c:194 syscall_return_slowpath+0x90/0x610 arch/x86/entry/common.c:274 do_syscall_64+0xe2/0xf0 arch/x86/entry/common.c:300 entry_SYSCALL_64_after_hwframe+0x63/0xe7 RIP: 0033:0x413711 Code: 75 14 b8 03 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 04 1b 00 00 c3 48 83 ec 08 e8 0a fc ff ff 48 89 04 24 b8 03 00 00 00 0f 05 <48> 8b 3c 24 48 89 c2 e8 53 fc ff ff 48 89 d0 48 83 c4 08 48 3d 01 RSP: 002b:0000000000a6fbf0 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000005 RCX: 0000000000413711 RDX: 0000000000000000 RSI: 000000000000021d RDI: 0000000000000004 RBP: 0000000000000001 R08: 000000001473c21d R09: 000000001473c221 R10: 0000000000a6fcd0 R11: 0000000000000293 R12: 000000000075c9a0 R13: 000000000075c9a0 R14: 0000000000760c60 R15: 000000000075c07c Uninit was created at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:174 [inline] kmsan_internal_poison_shadow+0x58/0xb0 mm/kmsan/kmsan.c:134 kmsan_slab_free+0x8d/0x100 mm/kmsan/kmsan_hooks.c:123 slab_free_freelist_hook mm/slub.c:1472 [inline] slab_free mm/slub.c:3038 [inline] kmem_cache_free+0x2d1/0x2b70 mm/slub.c:3054 kfree_skbmem net/core/skbuff.c:644 [inline] __kfree_skb net/core/skbuff.c:680 [inline] kfree_skb+0x473/0x4c0 net/core/skbuff.c:697 __netif_receive_skb_core+0x4a5a/0x51a0 net/core/dev.c:4985 __netif_receive_skb_one_core net/core/dev.c:5002 [inline] __netif_receive_skb net/core/dev.c:5118 [inline] process_backlog+0x612/0x1410 net/core/dev.c:5929 napi_poll net/core/dev.c:6352 [inline] net_rx_action+0x74b/0x1950 net/core/dev.c:6418 __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:537 smp_apic_timer_interrupt+0x48/0x70 arch/x86/kernel/apic/apic.c:1135 apic_timer_interrupt+0x2e/0x40 arch/x86/entry/entry_64.S:837 kmsan_get_shadow_origin_ptr+0x0/0x4c0 mm/kmsan/kmsan_shadow.c:107 sha256_transform crypto/sha256_generic.c:127 [inline] sha256_generic_block_fn+0x278f/0x8870 crypto/sha256_generic.c:233 sha256_base_do_update include/crypto/sha256_base.h:79 [inline] crypto_sha256_update+0x3f6/0x480 crypto/sha256_generic.c:241 crypto_shash_update+0x4eb/0x550 crypto/shash.c:107 ima_calc_file_hash_tfm security/integrity/ima/ima_crypto.c:361 [inline] ima_calc_file_shash security/integrity/ima/ima_crypto.c:381 [inline] ima_calc_file_hash+0x170a/0x3240 security/integrity/ima/ima_crypto.c:446 ima_collect_measurement+0x4a5/0x9e0 security/integrity/ima/ima_api.c:239 process_measurement+0x1a7d/0x2ba0 security/integrity/ima/ima_main.c:311 ima_file_check+0x131/0x170 security/integrity/ima/ima_main.c:422 do_last fs/namei.c:3420 [inline] path_openat+0x4b09/0x6bb0 fs/namei.c:3533 do_filp_open+0x2b8/0x710 fs/namei.c:3563 do_sys_open+0x642/0xa30 fs/open.c:1089 __do_sys_openat fs/open.c:1116 [inline] __se_sys_openat+0xcb/0xe0 fs/open.c:1110 __x64_sys_openat+0x56/0x70 fs/open.c:1110 do_syscall_64+0xbc/0xf0 arch/x86/entry/common.c:297 entry_SYSCALL_64_after_hwframe+0x63/0xe7 ==================================================================