[ OK ] Reached target Graphical Interface. Starting Update UTMP about System Runlevel Changes... [ OK ] Started Update UTMP about System Runlevel Changes. Starting Load/Save RF Kill Switch Status... [ OK ] Started Load/Save RF Kill Switch Status. Debian GNU/Linux 9 syzkaller ttyS0 Warning: Permanently added '10.128.0.159' (ECDSA) to the list of known hosts. executing program executing program executing program executing program executing program executing program syzkaller login: [ 35.153022] netlink: 24 bytes leftover after parsing attributes in process `syz-executor230'. [ 35.176005] netlink: 24 bytes leftover after parsing attributes in process `syz-executor230'. [ 35.195321] netlink: 24 bytes leftover after parsing attributes in process `syz-executor230'. [ 35.213643] netlink: 24 bytes leftover after parsing attributes in process `syz-executor230'. [ 35.233961] netlink: 24 bytes leftover after parsing attributes in process `syz-executor230'. [ 35.255155] netlink: 24 bytes leftover after parsing attributes in process `syz-executor230'. [ 35.278275] netlink: 4 bytes leftover after parsing attributes in process `syz-executor230'. [ 35.392078] netlink: 4 bytes leftover after parsing attributes in process `syz-executor230'. [ 35.426152] netlink: 4 bytes leftover after parsing attributes in process `syz-executor230'. [ 35.475083] netlink: 4 bytes leftover after parsing attributes in process `syz-executor230'. executing program executing program executing program executing program executing program executing program [ 35.771678] syz-executor230 (8128) used greatest stack depth: 23144 bytes left executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 37.925091] ================================================================== [ 37.932712] BUG: KASAN: use-after-free in macvlan_dev_get_iflink+0x5f/0x70 [ 37.939830] Read of size 4 at addr ffff8880a23cad88 by task syz-executor230/9154 [ 37.947895] [ 37.949517] CPU: 1 PID: 9154 Comm: syz-executor230 Not tainted 4.19.211-syzkaller #0 [ 37.957384] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 [ 37.966720] Call Trace: [ 37.969315] dump_stack+0x1fc/0x2ef [ 37.972938] print_address_description.cold+0x54/0x219 [ 37.978223] kasan_report_error.cold+0x8a/0x1b9 [ 37.983002] ? macvlan_dev_get_iflink+0x5f/0x70 [ 37.987660] __asan_report_load4_noabort+0x88/0x90 [ 37.992594] ? macvlan_dev_get_iflink+0x5f/0x70 [ 37.997432] macvlan_dev_get_iflink+0x5f/0x70 [ 38.002006] ? macvlan_dev_poll_controller+0x10/0x10 [ 38.007116] dev_get_iflink+0x73/0xe0 [ 38.010993] rfc2863_policy+0x1af/0x200 [ 38.015057] linkwatch_do_dev+0x1d/0x110 [ 38.019122] linkwatch_forget_dev+0x16a/0x200 [ 38.023675] netdev_run_todo+0x258/0xab0 [ 38.027820] ? default_device_exit_batch+0x3c0/0x3c0 [ 38.033524] ? rtnl_getlink+0x620/0x620 [ 38.037924] rtnetlink_rcv_msg+0x460/0xb80 [ 38.042176] ? rtnl_calcit.isra.0+0x430/0x430 [ 38.046837] ? __netlink_lookup+0x3fc/0x730 [ 38.051170] ? lock_downgrade+0x720/0x720 [ 38.055308] ? check_preemption_disabled+0x41/0x280 [ 38.060518] netlink_rcv_skb+0x160/0x440 [ 38.064703] ? rtnl_calcit.isra.0+0x430/0x430 [ 38.069310] ? netlink_ack+0xae0/0xae0 [ 38.073218] netlink_unicast+0x4d5/0x690 [ 38.077269] ? netlink_sendskb+0x110/0x110 [ 38.081507] ? _copy_from_iter_full+0x229/0x7c0 [ 38.086261] ? __phys_addr_symbol+0x2c/0x70 [ 38.090571] ? __check_object_size+0x17b/0x3e0 [ 38.095147] netlink_sendmsg+0x6c3/0xc50 [ 38.099460] ? aa_af_perm+0x230/0x230 [ 38.103335] ? nlmsg_notify+0x1f0/0x1f0 [ 38.107311] ? kernel_recvmsg+0x220/0x220 [ 38.111640] ? nlmsg_notify+0x1f0/0x1f0 [ 38.115605] sock_sendmsg+0xc3/0x120 [ 38.119307] ___sys_sendmsg+0x7bb/0x8e0 [ 38.123272] ? mark_held_locks+0xf0/0xf0 [ 38.127430] ? copy_msghdr_from_user+0x440/0x440 [ 38.132177] ? __fget+0x32f/0x510 [ 38.135642] ? lock_downgrade+0x720/0x720 [ 38.139779] ? check_preemption_disabled+0x41/0x280 [ 38.144785] ? check_preemption_disabled+0x41/0x280 [ 38.150053] ? __fget+0x356/0x510 [ 38.153494] ? do_dup2+0x450/0x450 [ 38.157023] ? _copy_to_user+0xb8/0x100 [ 38.160985] ? __fdget+0x1d0/0x230 [ 38.164511] __x64_sys_sendmsg+0x132/0x220 [ 38.168731] ? __sys_sendmsg+0x1b0/0x1b0 [ 38.172777] ? __se_sys_futex+0x298/0x3b0 [ 38.177091] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 38.182442] ? trace_hardirqs_off_caller+0x6e/0x210 [ 38.187443] ? do_syscall_64+0x21/0x620 [ 38.191406] do_syscall_64+0xf9/0x620 [ 38.195194] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 38.200367] RIP: 0033:0x7f54f8a4ed59 [ 38.204067] Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 11 15 00 00 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 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 [ 38.222958] RSP: 002b:00007f54f89df308 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 38.230735] RAX: ffffffffffffffda RBX: 00007f54f8ad6438 RCX: 00007f54f8a4ed59 [ 38.237996] RDX: 0000000000000000 RSI: 0000000020000340 RDI: 0000000000000006 [ 38.245253] RBP: 00007f54f8ad6430 R08: 0000000000000000 R09: 0000000000000000 [ 38.252695] R10: 0000000000000000 R11: 0000000000000246 R12: 00007f54f8ad643c [ 38.259948] R13: 00007f54f8aa4074 R14: 00f0ffffffffffff R15: 0000000000022000 [ 38.267212] [ 38.268819] Allocated by task 9127: [ 38.272430] __kmalloc_node+0x4c/0x70 [ 38.276246] kvmalloc_node+0x61/0xf0 [ 38.280038] alloc_netdev_mqs+0x97/0xd50 [ 38.284084] rtnl_create_link+0x1d4/0xa40 [ 38.288215] rtnl_newlink+0xf45/0x15c0 [ 38.292085] rtnetlink_rcv_msg+0x453/0xb80 [ 38.296309] netlink_rcv_skb+0x160/0x440 [ 38.300351] netlink_unicast+0x4d5/0x690 [ 38.304394] netlink_sendmsg+0x6c3/0xc50 [ 38.308461] sock_sendmsg+0xc3/0x120 [ 38.312156] ___sys_sendmsg+0x7bb/0x8e0 [ 38.316123] __x64_sys_sendmsg+0x132/0x220 [ 38.320348] do_syscall_64+0xf9/0x620 [ 38.324134] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 38.329297] [ 38.330908] Freed by task 9127: [ 38.334173] kfree+0xcc/0x210 [ 38.337267] kvfree+0x59/0x60 [ 38.340357] device_release+0x76/0x210 [ 38.344232] kobject_put+0x28b/0x5d0 [ 38.347928] netdev_run_todo+0x77f/0xab0 [ 38.351973] rtnetlink_rcv_msg+0x460/0xb80 [ 38.356194] netlink_rcv_skb+0x160/0x440 [ 38.360325] netlink_unicast+0x4d5/0x690 [ 38.364367] netlink_sendmsg+0x6c3/0xc50 [ 38.368426] sock_sendmsg+0xc3/0x120 [ 38.372155] ___sys_sendmsg+0x7bb/0x8e0 [ 38.376138] __x64_sys_sendmsg+0x132/0x220 [ 38.380373] do_syscall_64+0xf9/0x620 [ 38.384167] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 38.389343] [ 38.390967] The buggy address belongs to the object at ffff8880a23cac80 [ 38.390967] which belongs to the cache kmalloc-4096 of size 4096 [ 38.403785] The buggy address is located 264 bytes inside of [ 38.403785] 4096-byte region [ffff8880a23cac80, ffff8880a23cbc80) [ 38.415738] The buggy address belongs to the page: [ 38.420656] page:ffffea000288f280 count:1 mapcount:0 mapping:ffff88813bff0dc0 index:0x0 compound_mapcount: 0 [ 38.430603] flags: 0xfff00000008100(slab|head) [ 38.435171] raw: 00fff00000008100 ffffea0002864c88 ffffea00023b9188 ffff88813bff0dc0 [ 38.443037] raw: 0000000000000000 ffff8880a23cac80 0000000100000001 0000000000000000 [ 38.450891] page dumped because: kasan: bad access detected [ 38.456574] [ 38.458181] Memory state around the buggy address: [ 38.463091] ffff8880a23cac80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 38.470430] ffff8880a23cad00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb executing program executing program [ 38.477770] >ffff8880a23cad80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 38.485105] ^ [ 38.488710] ffff8880a23cae00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 38.496052] ffff8880a23cae80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 38.503387] ================================================================== [ 38.510720] Disabling lock debugging due to kernel taint executing program executing program executing program executing program executing program [ 41.535459] nla_parse: 82 callbacks suppressed [ 41.535467] netlink: 24 bytes leftover after parsing attributes in process `syz-executor230'. [ 41.576570] Kernel panic - not syncing: panic_on_warn set ... [ 41.576570] [ 41.583959] CPU: 0 PID: 9154 Comm: syz-executor230 Tainted: G B 4.19.211-syzkaller #0 [ 41.593219] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 [ 41.602564] Call Trace: [ 41.605152] dump_stack+0x1fc/0x2ef [ 41.608777] panic+0x26a/0x50e [ 41.611969] ? __warn_printk+0xf3/0xf3 [ 41.615856] ? preempt_schedule_common+0x45/0xc0 [ 41.620632] ? ___preempt_schedule+0x16/0x18 [ 41.622667] netlink: 24 bytes leftover after parsing attributes in process `syz-executor230'. [ 41.625034] ? trace_hardirqs_on+0x55/0x210 [ 41.625050] kasan_end_report+0x43/0x49 [ 41.625063] kasan_report_error.cold+0xa7/0x1b9 [ 41.625077] ? macvlan_dev_get_iflink+0x5f/0x70 [ 41.625094] __asan_report_load4_noabort+0x88/0x90 [ 41.646496] netlink: 24 bytes leftover after parsing attributes in process `syz-executor230'. [ 41.646634] ? macvlan_dev_get_iflink+0x5f/0x70 [ 41.659429] netlink: 24 bytes leftover after parsing attributes in process `syz-executor230'. [ 41.664821] macvlan_dev_get_iflink+0x5f/0x70 [ 41.664835] ? macvlan_dev_poll_controller+0x10/0x10 [ 41.664851] dev_get_iflink+0x73/0xe0 [ 41.675943] netlink: 24 bytes leftover after parsing attributes in process `syz-executor230'. [ 41.678139] rfc2863_policy+0x1af/0x200 [ 41.678154] linkwatch_do_dev+0x1d/0x110 [ 41.708142] linkwatch_forget_dev+0x16a/0x200 [ 41.712643] netdev_run_todo+0x258/0xab0 [ 41.717054] ? default_device_exit_batch+0x3c0/0x3c0 [ 41.722166] ? rtnl_getlink+0x620/0x620 [ 41.726149] rtnetlink_rcv_msg+0x460/0xb80 [ 41.730386] ? rtnl_calcit.isra.0+0x430/0x430 [ 41.734877] ? __netlink_lookup+0x3fc/0x730 [ 41.739204] ? lock_downgrade+0x720/0x720 [ 41.743348] ? check_preemption_disabled+0x41/0x280 [ 41.748367] netlink_rcv_skb+0x160/0x440 [ 41.752435] ? rtnl_calcit.isra.0+0x430/0x430 [ 41.756923] ? netlink_ack+0xae0/0xae0 [ 41.760815] netlink_unicast+0x4d5/0x690 [ 41.764877] ? netlink_sendskb+0x110/0x110 [ 41.769116] ? _copy_from_iter_full+0x229/0x7c0 [ 41.773788] ? __phys_addr_symbol+0x2c/0x70 [ 41.778114] ? __check_object_size+0x17b/0x3e0 [ 41.782783] netlink_sendmsg+0x6c3/0xc50 [ 41.786853] ? aa_af_perm+0x230/0x230 [ 41.790657] ? nlmsg_notify+0x1f0/0x1f0 [ 41.794631] ? kernel_recvmsg+0x220/0x220 [ 41.798782] ? nlmsg_notify+0x1f0/0x1f0 [ 41.802758] sock_sendmsg+0xc3/0x120 [ 41.806468] ___sys_sendmsg+0x7bb/0x8e0 [ 41.810446] ? mark_held_locks+0xf0/0xf0 [ 41.814512] ? copy_msghdr_from_user+0x440/0x440 [ 41.819729] ? __fget+0x32f/0x510 [ 41.823184] ? lock_downgrade+0x720/0x720 [ 41.827329] ? check_preemption_disabled+0x41/0x280 [ 41.832347] ? check_preemption_disabled+0x41/0x280 [ 41.837396] ? __fget+0x356/0x510 [ 41.840868] ? do_dup2+0x450/0x450 [ 41.844409] ? _copy_to_user+0xb8/0x100 [ 41.848381] ? __fdget+0x1d0/0x230 [ 41.851920] __x64_sys_sendmsg+0x132/0x220 [ 41.856148] ? __sys_sendmsg+0x1b0/0x1b0 [ 41.860200] ? __se_sys_futex+0x298/0x3b0 [ 41.864333] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 41.869673] ? trace_hardirqs_off_caller+0x6e/0x210 [ 41.874666] ? do_syscall_64+0x21/0x620 [ 41.878614] do_syscall_64+0xf9/0x620 [ 41.882402] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 41.887572] RIP: 0033:0x7f54f8a4ed59 [ 41.891264] Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 11 15 00 00 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 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 [ 41.910141] RSP: 002b:00007f54f89df308 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 41.918185] RAX: ffffffffffffffda RBX: 00007f54f8ad6438 RCX: 00007f54f8a4ed59 [ 41.925430] RDX: 0000000000000000 RSI: 0000000020000340 RDI: 0000000000000006 [ 41.932680] RBP: 00007f54f8ad6430 R08: 0000000000000000 R09: 0000000000000000 [ 41.939929] R10: 0000000000000000 R11: 0000000000000246 R12: 00007f54f8ad643c [ 41.947182] R13: 00007f54f8aa4074 R14: 00f0ffffffffffff R15: 0000000000022000 [ 41.954606] Kernel Offset: disabled [ 41.958217] Rebooting in 86400 seconds..