Bluetooth: Invalid header checksum ================================================================== BUG: KASAN: use-after-free in atomic_read include/asm-generic/atomic-instrumented.h:26 [inline] BUG: KASAN: use-after-free in refcount_read include/linux/refcount.h:43 [inline] BUG: KASAN: use-after-free in skb_unref include/linux/skbuff.h:1010 [inline] BUG: KASAN: use-after-free in kfree_skb+0x2d/0x2b0 net/core/skbuff.c:693 Read of size 4 at addr ffff888090c57c14 by task syz-executor.5/31357 CPU: 1 PID: 31357 Comm: syz-executor.5 Not tainted 5.3.0-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+0x113/0x167 lib/dump_stack.c:113 print_address_description.constprop.8.cold.10+0x9/0x31d mm/kasan/report.c:374 __kasan_report.cold.11+0x1b/0x3a mm/kasan/report.c:506 kasan_report+0x12/0x20 mm/kasan/common.c:634 check_memory_region_inline mm/kasan/generic.c:185 [inline] check_memory_region+0x153/0x1d0 mm/kasan/generic.c:192 __kasan_check_read+0x11/0x20 mm/kasan/common.c:92 atomic_read include/asm-generic/atomic-instrumented.h:26 [inline] refcount_read include/linux/refcount.h:43 [inline] skb_unref include/linux/skbuff.h:1010 [inline] kfree_skb+0x2d/0x2b0 net/core/skbuff.c:693 h5_reset_rx+0x3d/0x100 drivers/bluetooth/hci_h5.c:530 h5_rx_3wire_hdr+0x287/0x350 drivers/bluetooth/hci_h5.c:440 h5_recv+0x28b/0x460 drivers/bluetooth/hci_h5.c:563 hci_uart_tty_receive+0x1fc/0x560 drivers/bluetooth/hci_ldisc.c:613 tiocsti drivers/tty/tty_io.c:2197 [inline] tty_ioctl+0x652/0x12f0 drivers/tty/tty_io.c:2573 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:509 [inline] do_vfs_ioctl+0x196/0x1150 fs/ioctl.c:696 ksys_ioctl+0x62/0x90 fs/ioctl.c:713 __do_sys_ioctl fs/ioctl.c:720 [inline] __se_sys_ioctl fs/ioctl.c:718 [inline] __x64_sys_ioctl+0x6e/0xb0 fs/ioctl.c:718 do_syscall_64+0xca/0x5d0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45c479 Code: ad b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 7b b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007eff29f35c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007eff29f366d4 RCX: 000000000045c479 RDX: 00000000200000c0 RSI: 0000000000005412 RDI: 0000000000000003 RBP: 000000000076bfc0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 0000000000000583 R14: 00000000004c7d91 R15: 000000000076bfcc Allocated by task 128: save_stack+0x21/0x90 mm/kasan/common.c:69 set_track mm/kasan/common.c:77 [inline] __kasan_kmalloc.constprop.13+0xc7/0xd0 mm/kasan/common.c:510 kasan_slab_alloc+0x12/0x20 mm/kasan/common.c:518 slab_post_alloc_hook mm/slab.h:584 [inline] slab_alloc_node mm/slab.c:3262 [inline] kmem_cache_alloc_node+0x138/0x760 mm/slab.c:3574 __alloc_skb+0xa7/0x570 net/core/skbuff.c:197 alloc_skb include/linux/skbuff.h:1049 [inline] bt_skb_alloc include/net/bluetooth/bluetooth.h:339 [inline] h5_rx_pkt_start+0xba/0x270 drivers/bluetooth/hci_h5.c:474 h5_recv+0x28b/0x460 drivers/bluetooth/hci_h5.c:563 hci_uart_tty_receive+0x1fc/0x560 drivers/bluetooth/hci_ldisc.c:613 tty_ldisc_receive_buf+0xff/0x1b0 drivers/tty/tty_buffer.c:465 tty_port_default_receive_buf+0x5f/0x90 drivers/tty/tty_port.c:38 receive_buf drivers/tty/tty_buffer.c:481 [inline] flush_to_ldisc+0x1aa/0x3a0 drivers/tty/tty_buffer.c:533 process_one_work+0x856/0x1630 kernel/workqueue.c:2269 worker_thread+0x85/0xb60 kernel/workqueue.c:2415 kthread+0x331/0x3f0 kernel/kthread.c:255 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:352 Freed by task 128: save_stack+0x21/0x90 mm/kasan/common.c:69 set_track mm/kasan/common.c:77 [inline] kasan_set_free_info mm/kasan/common.c:332 [inline] __kasan_slab_free+0x102/0x150 mm/kasan/common.c:471 kasan_slab_free+0xe/0x10 mm/kasan/common.c:480 __cache_free mm/slab.c:3425 [inline] kmem_cache_free+0x83/0x320 mm/slab.c:3693 kfree_skbmem+0x88/0xf0 net/core/skbuff.c:623 __kfree_skb net/core/skbuff.c:680 [inline] kfree_skb+0xbb/0x2b0 net/core/skbuff.c:697 h5_reset_rx+0x3d/0x100 drivers/bluetooth/hci_h5.c:530 h5_rx_3wire_hdr+0x287/0x350 drivers/bluetooth/hci_h5.c:440 h5_recv+0x28b/0x460 drivers/bluetooth/hci_h5.c:563 hci_uart_tty_receive+0x1fc/0x560 drivers/bluetooth/hci_ldisc.c:613 tty_ldisc_receive_buf+0xff/0x1b0 drivers/tty/tty_buffer.c:465 tty_port_default_receive_buf+0x5f/0x90 drivers/tty/tty_port.c:38 receive_buf drivers/tty/tty_buffer.c:481 [inline] flush_to_ldisc+0x1aa/0x3a0 drivers/tty/tty_buffer.c:533 process_one_work+0x856/0x1630 kernel/workqueue.c:2269 worker_thread+0x85/0xb60 kernel/workqueue.c:2415 kthread+0x331/0x3f0 kernel/kthread.c:255 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:352 The buggy address belongs to the object at ffff888090c57b40 which belongs to the cache skbuff_head_cache of size 224 The buggy address is located 212 bytes inside of 224-byte region [ffff888090c57b40, ffff888090c57c20) The buggy address belongs to the page: page:ffffea00024315c0 refcount:1 mapcount:0 mapping:ffff8880a99ff8c0 index:0xffff888090c57500 flags: 0xfffe0000000200(slab) raw: 00fffe0000000200 ffffea00028d0b08 ffffea0001dbd2c8 ffff8880a99ff8c0 raw: ffff888090c57500 ffff888090c57000 000000010000000b 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888090c57b00: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb ffff888090c57b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff888090c57c00: fb fb fb fb fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888090c57c80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888090c57d00: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc ==================================================================