================================================================== BUG: KASAN: use-after-free in __read_once_size include/linux/compiler.h:197 [inline] BUG: KASAN: use-after-free in lockdep_register_key+0x3b9/0x490 kernel/locking/lockdep.c:1023 Read of size 8 at addr ffff8880a5fe7b98 by task syz-executor.4/10389 CPU: 0 PID: 10389 Comm: syz-executor.4 Not tainted 5.0.0-next-20190306 #4 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:197 [inline] lockdep_register_key+0x3b9/0x490 kernel/locking/lockdep.c:1023 wq_init_lockdep kernel/workqueue.c:3444 [inline] alloc_workqueue+0x427/0xe70 kernel/workqueue.c:4263 reiserfs_fill_super+0x369/0x2ea0 fs/reiserfs/super.c:1937 mount_bdev+0x307/0x3c0 fs/super.c:1346 get_super_block+0x35/0x40 fs/reiserfs/super.c:2605 legacy_get_tree+0xf2/0x200 fs/fs_context.c:584 vfs_get_tree+0x123/0x450 fs/super.c:1481 do_new_mount fs/namespace.c:2622 [inline] do_mount+0x1436/0x2c40 fs/namespace.c:2942 ksys_mount+0xdb/0x150 fs/namespace.c:3151 __do_sys_mount fs/namespace.c:3165 [inline] __se_sys_mount fs/namespace.c:3162 [inline] __x64_sys_mount+0xbe/0x150 fs/namespace.c:3162 do_syscall_64+0x103/0x610 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x457f29 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:00007fd4885cbc78 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 0000000000457f29 RDX: 0000000020000000 RSI: 0000000020000080 RDI: 00000000200002c0 RBP: 000000000073bfa0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fd4885cc6d4 R13: 00000000004c3cf7 R14: 00000000004d6f00 R15: 00000000ffffffff Allocated by task 9033: 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_tagged lib/kobject_uevent.c:350 [inline] kobject_uevent_net_broadcast lib/kobject_uevent.c:411 [inline] kobject_uevent_env+0xb96/0x1030 lib/kobject_uevent.c:589 kobject_uevent+0x20/0x26 lib/kobject_uevent.c:638 device_del+0x758/0xc40 drivers/base/core.c:2279 netdev_unregister_kobject+0x19e/0x1f0 net/core/net-sysfs.c:1712 rollback_registered_many+0x7c9/0xfd0 net/core/dev.c:8208 unregister_netdevice_many.part.0+0x1b/0x1f0 net/core/dev.c:9292 unregister_netdevice_many+0x3b/0x50 net/core/dev.c:9291 vti6_exit_batch_net+0x467/0x690 net/ipv6/ip6_vti.c:1152 ops_exit_list.isra.0+0x105/0x160 net/core/net_namespace.c:156 setup_net+0x3f2/0x730 net/core/net_namespace.c:331 copy_net_ns+0x1d9/0x340 net/core/net_namespace.c:437 create_new_namespaces+0x400/0x7b0 kernel/nsproxy.c:107 unshare_nsproxy_namespaces+0xc2/0x200 kernel/nsproxy.c:206 ksys_unshare+0x440/0x980 kernel/fork.c:2550 __do_sys_unshare kernel/fork.c:2618 [inline] __se_sys_unshare kernel/fork.c:2616 [inline] __x64_sys_unshare+0x31/0x40 kernel/fork.c:2616 do_syscall_64+0x103/0x610 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 9033: 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 netlink_broadcast_filtered+0x316/0xb20 net/netlink/af_netlink.c:1520 netlink_broadcast+0x3a/0x50 net/netlink/af_netlink.c:1542 uevent_net_broadcast_tagged lib/kobject_uevent.c:371 [inline] kobject_uevent_net_broadcast lib/kobject_uevent.c:411 [inline] kobject_uevent_env+0xc7d/0x1030 lib/kobject_uevent.c:589 kobject_uevent+0x20/0x26 lib/kobject_uevent.c:638 device_del+0x758/0xc40 drivers/base/core.c:2279 netdev_unregister_kobject+0x19e/0x1f0 net/core/net-sysfs.c:1712 rollback_registered_many+0x7c9/0xfd0 net/core/dev.c:8208 unregister_netdevice_many.part.0+0x1b/0x1f0 net/core/dev.c:9292 unregister_netdevice_many+0x3b/0x50 net/core/dev.c:9291 vti6_exit_batch_net+0x467/0x690 net/ipv6/ip6_vti.c:1152 ops_exit_list.isra.0+0x105/0x160 net/core/net_namespace.c:156 setup_net+0x3f2/0x730 net/core/net_namespace.c:331 copy_net_ns+0x1d9/0x340 net/core/net_namespace.c:437 create_new_namespaces+0x400/0x7b0 kernel/nsproxy.c:107 unshare_nsproxy_namespaces+0xc2/0x200 kernel/nsproxy.c:206 ksys_unshare+0x440/0x980 kernel/fork.c:2550 __do_sys_unshare kernel/fork.c:2618 [inline] __se_sys_unshare kernel/fork.c:2616 [inline] __x64_sys_unshare+0x31/0x40 kernel/fork.c:2616 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 ffff8880a5fe7a80 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 280 bytes inside of 512-byte region [ffff8880a5fe7a80, ffff8880a5fe7c80) The buggy address belongs to the page: page:ffffea000297f9c0 count:1 mapcount:0 mapping:ffff88812c3f0940 index:0x0 flags: 0x1fffc0000000200(slab) raw: 01fffc0000000200 ffffea00021ee0c8 ffffea0002907908 ffff88812c3f0940 raw: 0000000000000000 ffff8880a5fe7080 0000000100000006 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880a5fe7a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880a5fe7b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff8880a5fe7b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8880a5fe7c00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880a5fe7c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================