bisecting fixing commit since 19bb613acb9ad8e57593cad5118acaee117cc303 building syzkaller on 7516d9fa9301d2dfa5beaf49d93563f8048694aa testing commit 19bb613acb9ad8e57593cad5118acaee117cc303 with gcc (GCC) 8.1.0 kernel signature: b5c25e7d6ac39abbddebccd3a79eb3b92afef252 all runs: crashed: KASAN: slab-out-of-bounds Read in bacpy testing current HEAD 14260788bbb9c94b0e36abc17294266b69dd46e4 testing commit 14260788bbb9c94b0e36abc17294266b69dd46e4 with gcc (GCC) 8.1.0 kernel signature: ce75ccb324b7989dd7d4b815b7a3589e54bbcb2a all runs: crashed: KASAN: slab-out-of-bounds Read in bacpy revisions tested: 2, total time: 23m24.433338974s (build: 16m16.807784991s, test: 6m12.04642671s) the crash still happens on HEAD commit msg: Linux 4.19.86 crash: KASAN: slab-out-of-bounds Read in bacpy IPv6: ADDRCONF(NETDEV_CHANGE): veth0_to_hsr: link becomes ready IPv6: ADDRCONF(NETDEV_CHANGE): hsr_slave_0: link becomes ready IPv6: ADDRCONF(NETDEV_CHANGE): veth0_to_team: link becomes ready ================================================================== IPv6: ADDRCONF(NETDEV_CHANGE): team_slave_0: link becomes ready BUG: KASAN: slab-out-of-bounds in memcpy include/linux/string.h:348 [inline] BUG: KASAN: slab-out-of-bounds in bacpy+0xe/0x10 include/net/bluetooth/bluetooth.h:236 Read of size 6 at addr ffff8880828bd6fb by task kworker/u5:0/1167 CPU: 0 PID: 1167 Comm: kworker/u5:0 Not tainted 4.19.86-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: hci0 hci_rx_work Call Trace: IPv6: ADDRCONF(NETDEV_CHANGE): veth1_to_team: link becomes ready __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x123/0x177 lib/dump_stack.c:118 print_address_description.cold.8+0x9/0x1ff mm/kasan/report.c:256 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report.cold.9+0x242/0x309 mm/kasan/report.c:412 check_memory_region_inline mm/kasan/kasan.c:260 [inline] check_memory_region+0x13e/0x1b0 mm/kasan/kasan.c:267 memcpy+0x23/0x50 mm/kasan/kasan.c:302 memcpy include/linux/string.h:348 [inline] bacpy+0xe/0x10 include/net/bluetooth/bluetooth.h:236 IPv6: ADDRCONF(NETDEV_CHANGE): team_slave_1: link becomes ready hci_inquiry_result_with_rssi_evt net/bluetooth/hci_event.c:3951 [inline] hci_event_packet+0x1cf6/0x9e18 net/bluetooth/hci_event.c:5832 IPv6: ADDRCONF(NETDEV_CHANGE): team0: link becomes ready kobject: 'hci1' (00000000b1e5213e): fill_kobj_path: path = '/devices/virtual/bluetooth/hci1' hci_rx_work+0x34f/0x8a0 net/bluetooth/hci_core.c:4352 kobject: 'rfkill7' (00000000236606fc): kobject_add_internal: parent: 'hci1', set: 'devices' process_one_work+0x835/0x1670 kernel/workqueue.c:2153 worker_thread+0x85/0xb60 kernel/workqueue.c:2296 kthread+0x327/0x3f0 kernel/kthread.c:246 kobject: 'rfkill7' (00000000236606fc): kobject_uevent_env ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:415 Allocated by task 7002: save_stack+0x43/0xd0 mm/kasan/kasan.c:448 set_track mm/kasan/kasan.c:460 [inline] kasan_kmalloc+0xc7/0xe0 mm/kasan/kasan.c:553 kobject: 'rfkill7' (00000000236606fc): fill_kobj_path: path = '/devices/virtual/bluetooth/hci1/rfkill7' __do_kmalloc_node mm/slab.c:3689 [inline] __kmalloc_node_track_caller+0x50/0x70 mm/slab.c:3703 __kmalloc_reserve.isra.39+0x2c/0xc0 net/core/skbuff.c:137 __alloc_skb+0xd7/0x580 net/core/skbuff.c:205 alloc_skb include/linux/skbuff.h:995 [inline] bt_skb_alloc include/net/bluetooth/bluetooth.h:339 [inline] vhci_get_user drivers/bluetooth/hci_vhci.c:180 [inline] vhci_write+0xa8/0x3f0 drivers/bluetooth/hci_vhci.c:299 call_write_iter include/linux/fs.h:1820 [inline] new_sync_write fs/read_write.c:474 [inline] __vfs_write+0x44b/0x890 fs/read_write.c:487 vfs_write+0x150/0x4d0 fs/read_write.c:549 kobject: 'rfkill7' (00000000236606fc): kobject_uevent_env ksys_write+0x103/0x260 fs/read_write.c:599 __do_sys_write fs/read_write.c:611 [inline] __se_sys_write fs/read_write.c:608 [inline] __x64_sys_write+0x6e/0xb0 fs/read_write.c:608 do_syscall_64+0xd6/0x4e0 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 0: (stack is not available) The buggy address belongs to the object at ffff8880828bd500 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 507 bytes inside of 512-byte region [ffff8880828bd500, ffff8880828bd700) kobject: 'rfkill7' (00000000236606fc): fill_kobj_path: path = '/devices/virtual/bluetooth/hci1/rfkill7' The buggy address belongs to the page: page:ffffea00020a2f40 count:1 mapcount:0 mapping:ffff88812c35e940 index:0x0 flags: 0x1fffc0000000100(slab) raw: 01fffc0000000100 ffffea000211a9c8 ffffea00027a0c88 ffff88812c35e940 raw: 0000000000000000 ffff8880828bd000 0000000100000006 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880828bd600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8880828bd680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8880828bd700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc kobject: 'rfkill7' (00000000236606fc): kobject_cleanup, parent (null) ^ ffff8880828bd780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8880828bd800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================