================================================================== BUG: KASAN: use-after-free in __read_once_size include/linux/compiler.h:193 [inline] BUG: KASAN: use-after-free in lockdep_register_key+0x3b9/0x490 kernel/locking/lockdep.c:1023 Read of size 8 at addr ffff88808a0ba8d8 by task syz-executor.3/23881 CPU: 1 PID: 23881 Comm: syz-executor.3 Not tainted 5.0.0+ #11 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+0x172/0x1f0 lib/dump_stack.c:113 print_address_description.cold+0x7c/0x20d mm/kasan/report.c:187 kasan_report.cold+0x1b/0x40 mm/kasan/report.c:317 __asan_report_load8_noabort+0x14/0x20 mm/kasan/generic_report.c:132 __read_once_size include/linux/compiler.h:193 [inline] lockdep_register_key+0x3b9/0x490 kernel/locking/lockdep.c:1023 wq_init_lockdep kernel/workqueue.c:3434 [inline] alloc_workqueue+0x427/0xe70 kernel/workqueue.c:4253 xfs_init_mount_workqueues+0x2ec/0x660 fs/xfs/xfs_super.c:867 xfs_fs_fill_super+0x749/0x1670 fs/xfs/xfs_super.c:1658 mount_bdev+0x307/0x3c0 fs/super.c:1159 xfs_fs_mount+0x35/0x40 fs/xfs/xfs_super.c:1834 mount_fs+0x106/0x3ff fs/super.c:1258 vfs_kern_mount.part.0+0x6f/0x410 fs/namespace.c:959 vfs_kern_mount fs/namespace.c:949 [inline] do_new_mount fs/namespace.c:2513 [inline] do_mount+0x581/0x2d30 fs/namespace.c:2845 ksys_mount+0xdb/0x150 fs/namespace.c:3061 __do_sys_mount fs/namespace.c:3075 [inline] __se_sys_mount fs/namespace.c:3072 [inline] __x64_sys_mount+0xbe/0x150 fs/namespace.c:3072 do_syscall_64+0x103/0x610 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45a99a Code: b8 a6 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 2d 8e fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 0a 8e fb ff c3 66 0f 1f 84 00 00 00 00 00 RSP: 002b:00007f9a1664aa88 EFLAGS: 00000206 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f9a1664ab30 RCX: 000000000045a99a RDX: 00007f9a1664aad0 RSI: 00000000200000c0 RDI: 00007f9a1664aaf0 RBP: 00000000200000c0 R08: 00007f9a1664ab30 R09: 00007f9a1664aad0 R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000003 R13: 0000000000000000 R14: 00000000004dbee0 R15: 00000000ffffffff Allocated by task 3870: save_stack+0x45/0xd0 mm/kasan/common.c:75 set_track mm/kasan/common.c:87 [inline] __kasan_kmalloc mm/kasan/common.c:497 [inline] __kasan_kmalloc.constprop.0+0xcf/0xe0 mm/kasan/common.c:470 kasan_kmalloc+0x9/0x10 mm/kasan/common.c:511 __do_kmalloc_node mm/slab.c:3686 [inline] __kmalloc_node_track_caller+0x4e/0x70 mm/slab.c:3700 __kmalloc_reserve.isra.0+0x40/0xf0 net/core/skbuff.c:140 __alloc_skb+0x10b/0x5e0 net/core/skbuff.c:208 alloc_skb include/linux/skbuff.h:1011 [inline] alloc_uevent_skb+0x83/0x1e2 lib/kobject_uevent.c:289 uevent_net_broadcast_untagged lib/kobject_uevent.c:325 [inline] kobject_uevent_net_broadcast lib/kobject_uevent.c:408 [inline] kobject_uevent_env+0xa63/0x1030 lib/kobject_uevent.c:589 kobject_synth_uevent.cold+0xa0/0x10d lib/kobject_uevent.c:208 uevent_store+0x26/0x60 drivers/base/core.c:1244 dev_attr_store+0x5c/0x90 drivers/base/core.c:947 sysfs_kf_write+0x118/0x170 fs/sysfs/file.c:138 kernfs_fop_write+0x2ba/0x480 fs/kernfs/file.c:316 __vfs_write+0x116/0x8e0 fs/read_write.c:485 vfs_write+0x20c/0x580 fs/read_write.c:549 ksys_write+0xea/0x1f0 fs/read_write.c:598 __do_sys_write fs/read_write.c:610 [inline] __se_sys_write fs/read_write.c:607 [inline] __x64_sys_write+0x73/0xb0 fs/read_write.c:607 do_syscall_64+0x103/0x610 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 3870: save_stack+0x45/0xd0 mm/kasan/common.c:75 set_track mm/kasan/common.c:87 [inline] __kasan_slab_free+0x102/0x150 mm/kasan/common.c:459 kasan_slab_free+0xe/0x10 mm/kasan/common.c:467 __cache_free mm/slab.c:3498 [inline] kfree+0xcf/0x230 mm/slab.c:3821 skb_free_head+0x93/0xb0 net/core/skbuff.c:557 skb_release_data+0x576/0x7a0 net/core/skbuff.c:577 skb_release_all+0x4d/0x60 net/core/skbuff.c:631 __kfree_skb net/core/skbuff.c:645 [inline] consume_skb net/core/skbuff.c:705 [inline] consume_skb+0xe2/0x380 net/core/skbuff.c:699 uevent_net_broadcast_untagged lib/kobject_uevent.c:336 [inline] kobject_uevent_net_broadcast lib/kobject_uevent.c:408 [inline] kobject_uevent_env+0xade/0x1030 lib/kobject_uevent.c:589 kobject_synth_uevent.cold+0xa0/0x10d lib/kobject_uevent.c:208 uevent_store+0x26/0x60 drivers/base/core.c:1244 dev_attr_store+0x5c/0x90 drivers/base/core.c:947 sysfs_kf_write+0x118/0x170 fs/sysfs/file.c:138 kernfs_fop_write+0x2ba/0x480 fs/kernfs/file.c:316 __vfs_write+0x116/0x8e0 fs/read_write.c:485 vfs_write+0x20c/0x580 fs/read_write.c:549 ksys_write+0xea/0x1f0 fs/read_write.c:598 __do_sys_write fs/read_write.c:610 [inline] __se_sys_write fs/read_write.c:607 [inline] __x64_sys_write+0x73/0xb0 fs/read_write.c:607 do_syscall_64+0x103/0x610 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe The buggy address belongs to the object at ffff88808a0ba7c0 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 280 bytes inside of 512-byte region [ffff88808a0ba7c0, ffff88808a0ba9c0) The buggy address belongs to the page: page:ffffea0002282e80 count:1 mapcount:0 mapping:ffff88812c3f0940 index:0xffff88808a0ba040 flags: 0x1fffc0000000200(slab) raw: 01fffc0000000200 ffffea000282b9c8 ffffea0002382a08 ffff88812c3f0940 raw: ffff88808a0ba040 ffff88808a0ba040 0000000100000005 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88808a0ba780: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb ffff88808a0ba800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88808a0ba880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88808a0ba900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88808a0ba980: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ==================================================================