kasan: GPF could be caused by NULL-ptr deref or user memory access ksys_ioctl+0x62/0x90 fs/ioctl.c:705 general protection fault: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 599 Comm: kworker/u4:3 Not tainted 4.19.91-syzkaller #0 __do_sys_ioctl fs/ioctl.c:712 [inline] __se_sys_ioctl fs/ioctl.c:710 [inline] __x64_sys_ioctl+0x6e/0xb0 fs/ioctl.c:710 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 do_syscall_64+0xd6/0x4e0 arch/x86/entry/common.c:293 Workqueue: events_unbound flush_to_ldisc entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0010:skb_put+0x28/0x1e0 net/core/skbuff.c:1697 RIP: 0033:0x458c29 Code: 00 00 48 b8 00 00 00 00 00 fc ff df 55 48 89 e5 41 55 4c 8d af c8 00 00 00 41 54 4c 89 ea 53 48 89 fb 48 c1 ea 03 48 83 ec 10 <0f> b6 14 02 4c 89 e8 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 28 Code: ad b8 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 b8 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 0018:ffff8880a8887b70 EFLAGS: 00010282 RSP: 002b:00007f5a88ec7c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffff8880a3c36b78 RAX: ffffffffffffffda RBX: 00007f5a88ec7c90 RCX: 0000000000458c29 RDX: 0000000000000019 RSI: 0000000000000001 RDI: 0000000000000000 RBP: ffff8880a8887b98 R08: ffffed1015d64733 R09: ffffed1015d64732 RDX: 0000000020000100 RSI: 0000000000005412 RDI: 0000000000000003 R10: ffffed1015d64732 R11: ffff8880aeb23993 R12: ffff8880a539b26a R13: 00000000000000c8 R14: 000000000000005e R15: ffff8880a3c36a80 RBP: 000000000073bf00 R08: 0000000000000000 R09: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8880aeb00000(0000) knlGS:0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f5a88ec86d4 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 R13: 00000000004c3082 R14: 00000000004d6428 R15: 0000000000000004 kasan: CONFIG_KASAN_INLINE enabled CR2: 00007ffecd563f78 CR3: 000000009997a000 CR4: 00000000001406e0 kasan: GPF could be caused by NULL-ptr deref or user memory access DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: skb_put_data include/linux/skbuff.h:2109 [inline] bcsp_unslip_one_byte drivers/bluetooth/hci_bcsp.c:451 [inline] bcsp_recv+0x8bd/0x1470 drivers/bluetooth/hci_bcsp.c:613 hci_uart_tty_receive+0x1d4/0x470 drivers/bluetooth/hci_ldisc.c:620 tty_ldisc_receive_buf+0x103/0x1c0 drivers/tty/tty_buffer.c:460 tty_port_default_receive_buf+0x5f/0x90 drivers/tty/tty_port.c:38 receive_buf drivers/tty/tty_buffer.c:476 [inline] flush_to_ldisc+0x1af/0x3a0 drivers/tty/tty_buffer.c:528 process_one_work+0x835/0x1670 kernel/workqueue.c:2153 worker_thread+0x85/0xb60 kernel/workqueue.c:2296 kthread+0x327/0x3f0 kernel/kthread.c:246 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:415 Modules linked in: general protection fault: 0000 [#2] PREEMPT SMP KASAN CPU: 0 PID: 23 Comm: kworker/u4:1 Tainted: G D 4.19.91-syzkaller #0 CPU: 1 PID: 7166 Comm: syz-executor.5 Tainted: G D 4.19.91-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: Workqueue: events_unbound flush_to_ldisc __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x123/0x177 lib/dump_stack.c:118 RIP: 0010:skb_put+0x28/0x1e0 net/core/skbuff.c:1697 fail_dump lib/fault-inject.c:51 [inline] should_fail.cold.4+0x5/0x13 lib/fault-inject.c:149 Code: 00 00 48 b8 00 00 00 00 00 fc ff df 55 48 89 e5 41 55 4c 8d af c8 00 00 00 41 54 4c 89 ea 53 48 89 fb 48 c1 ea 03 48 83 ec 10 <0f> b6 14 02 4c 89 e8 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 28 RSP: 0018:ffff8880a98dfb70 EFLAGS: 00010282 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffff8880a6a6d938 RDX: 0000000000000019 RSI: 0000000000000001 RDI: 0000000000000000 __should_failslab+0xba/0xf0 mm/failslab.c:32 RBP: ffff8880a98dfb98 R08: 0000000000000001 R09: 0000000000000000 should_failslab+0x9/0x14 mm/slab_common.c:1557 R10: ffffed101531bf83 R11: 0000000000000000 R12: ffff8880a7b11b2a slab_pre_alloc_hook mm/slab.h:424 [inline] slab_alloc_node mm/slab.c:3304 [inline] kmem_cache_alloc_node+0x56/0x730 mm/slab.c:3647 R13: 00000000000000c8 R14: 000000000000005e R15: ffff8880a6a6d840 FS: 0000000000000000(0000) GS:ffff8880aea00000(0000) knlGS:0000000000000000 __alloc_skb+0xa7/0x580 net/core/skbuff.c:193 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffff8d11f68 CR3: 0000000007e6d000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: alloc_skb include/linux/skbuff.h:995 [inline] bt_skb_alloc include/net/bluetooth/bluetooth.h:339 [inline] bcsp_recv+0x196/0x1470 drivers/bluetooth/hci_bcsp.c:688 skb_put_data include/linux/skbuff.h:2109 [inline] bcsp_unslip_one_byte drivers/bluetooth/hci_bcsp.c:451 [inline] bcsp_recv+0x8bd/0x1470 drivers/bluetooth/hci_bcsp.c:613 hci_uart_tty_receive+0x1d4/0x470 drivers/bluetooth/hci_ldisc.c:620 hci_uart_tty_receive+0x1d4/0x470 drivers/bluetooth/hci_ldisc.c:620 tiocsti drivers/tty/tty_io.c:2194 [inline] tty_ioctl+0x64e/0x12a0 drivers/tty/tty_io.c:2580 tty_ldisc_receive_buf+0x103/0x1c0 drivers/tty/tty_buffer.c:460 tty_port_default_receive_buf+0x5f/0x90 drivers/tty/tty_port.c:38 receive_buf drivers/tty/tty_buffer.c:476 [inline] flush_to_ldisc+0x1af/0x3a0 drivers/tty/tty_buffer.c:528 process_one_work+0x835/0x1670 kernel/workqueue.c:2153 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:501 [inline] do_vfs_ioctl+0x199/0x10d0 fs/ioctl.c:688 worker_thread+0x85/0xb60 kernel/workqueue.c:2296 kthread+0x327/0x3f0 kernel/kthread.c:246 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:415 Modules linked in: Bluetooth: Can't allocate mem for new packet ksys_ioctl+0x62/0x90 fs/ioctl.c:705 __do_sys_ioctl fs/ioctl.c:712 [inline] __se_sys_ioctl fs/ioctl.c:710 [inline] __x64_sys_ioctl+0x6e/0xb0 fs/ioctl.c:710 do_syscall_64+0xd6/0x4e0 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe ---[ end trace 77b84d92641161d2 ]--- RIP: 0033:0x458c29 Code: ad b8 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 b8 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f843ff1ec78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f843ff1ec90 RCX: 0000000000458c29 RDX: 0000000020000100 RSI: 0000000000005412 RDI: 0000000000000003 RBP: 000000000073bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f843ff1f6d4 R13: 00000000004c3082 R14: 00000000004d6428 R15: 0000000000000004 RIP: 0010:skb_put+0x28/0x1e0 net/core/skbuff.c:1697 general protection fault: 0000 [#3] PREEMPT SMP KASAN Code: 00 00 48 b8 00 00 00 00 00 fc ff df 55 48 89 e5 41 55 4c 8d af c8 00 00 00 41 54 4c 89 ea 53 48 89 fb 48 c1 ea 03 48 83 ec 10 <0f> b6 14 02 4c 89 e8 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 28 CPU: 1 PID: 35 Comm: kworker/u4:2 Tainted: G D 4.19.91-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: events_unbound flush_to_ldisc RIP: 0010:skb_put+0x28/0x1e0 net/core/skbuff.c:1697 Code: 00 00 48 b8 00 00 00 00 00 fc ff df 55 48 89 e5 41 55 4c 8d af c8 00 00 00 41 54 4c 89 ea 53 48 89 fb 48 c1 ea 03 48 83 ec 10 <0f> b6 14 02 4c 89 e8 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 28 RSP: 0018:ffff8880a8887b70 EFLAGS: 00010282 RSP: 0018:ffff8880a999fb70 EFLAGS: 00010282 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffff8880a60c6438 RDX: 0000000000000019 RSI: 0000000000000001 RDI: 0000000000000000 RBP: ffff8880a999fb98 R08: ffffed1015d64733 R09: ffffed1015d64732 R10: ffffed1015d64732 R11: ffff8880aeb23993 R12: ffff8880a102d22a R13: 00000000000000c8 R14: 000000000000005e R15: ffff8880a60c6340 FS: 0000000000000000(0000) GS:ffff8880aeb00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f048a7af000 CR3: 000000009997a000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: skb_put_data include/linux/skbuff.h:2109 [inline] bcsp_unslip_one_byte drivers/bluetooth/hci_bcsp.c:451 [inline] bcsp_recv+0x8bd/0x1470 drivers/bluetooth/hci_bcsp.c:613 hci_uart_tty_receive+0x1d4/0x470 drivers/bluetooth/hci_ldisc.c:620 tty_ldisc_receive_buf+0x103/0x1c0 drivers/tty/tty_buffer.c:460 tty_port_default_receive_buf+0x5f/0x90 drivers/tty/tty_port.c:38 receive_buf drivers/tty/tty_buffer.c:476 [inline] flush_to_ldisc+0x1af/0x3a0 drivers/tty/tty_buffer.c:528 process_one_work+0x835/0x1670 kernel/workqueue.c:2153 worker_thread+0x85/0xb60 kernel/workqueue.c:2296 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffff8880a3c36b78 kthread+0x327/0x3f0 kernel/kthread.c:246 RDX: 0000000000000019 RSI: 0000000000000001 RDI: 0000000000000000 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:415 Modules linked in: ---[ end trace 77b84d92641161d3 ]--- RBP: ffff8880a8887b98 R08: ffffed1015d64733 R09: ffffed1015d64732 RIP: 0010:skb_put+0x28/0x1e0 net/core/skbuff.c:1697 R10: ffffed1015d64732 R11: ffff8880aeb23993 R12: ffff8880a539b26a Code: 00 00 48 b8 00 00 00 00 00 fc ff df 55 48 89 e5 41 55 4c 8d af c8 00 00 00 41 54 4c 89 ea 53 48 89 fb 48 c1 ea 03 48 83 ec 10 <0f> b6 14 02 4c 89 e8 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 28 R13: 00000000000000c8 R14: 000000000000005e R15: ffff8880a3c36a80 RSP: 0018:ffff8880a8887b70 EFLAGS: 00010282 FS: 0000000000000000(0000) GS:ffff8880aea00000(0000) knlGS:0000000000000000 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffff8880a3c36b78 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 RDX: 0000000000000019 RSI: 0000000000000001 RDI: 0000000000000000 CR2: 00007f048a7af000 CR3: 0000000090ac0000 CR4: 00000000001406f0 RBP: ffff8880a8887b98 R08: ffffed1015d64733 R09: ffffed1015d64732 R10: ffffed1015d64732 R11: ffff8880aeb23993 R12: ffff8880a539b26a R13: 00000000000000c8 R14: 000000000000005e R15: ffff8880a3c36a80 FS: 0000000000000000(0000) GS:ffff8880aeb00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f048a7af000 CR3: 0000000093bba000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400