[ OK ] Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch. [ OK ] Reached target Multi-User System. [ OK ] Reached target Graphical Interface. Starting Update UTMP about System Runlevel Changes... [ OK ] Started Update UTMP about System Runlevel Changes. Debian GNU/Linux 9 syzkaller ttyS0 Warning: Permanently added '10.128.0.228' (ECDSA) to the list of known hosts. executing program executing program executing program executing program executing program executing program syzkaller login: [ 31.585900] netlink: 24 bytes leftover after parsing attributes in process `syz-executor188'. [ 31.624373] netlink: 24 bytes leftover after parsing attributes in process `syz-executor188'. [ 31.639851] netlink: 24 bytes leftover after parsing attributes in process `syz-executor188'. [ 31.677267] netlink: 24 bytes leftover after parsing attributes in process `syz-executor188'. [ 31.693749] netlink: 24 bytes leftover after parsing attributes in process `syz-executor188'. [ 31.711297] netlink: 24 bytes leftover after parsing attributes in process `syz-executor188'. [ 31.765446] netlink: 4 bytes leftover after parsing attributes in process `syz-executor188'. [ 31.810282] netlink: 4 bytes leftover after parsing attributes in process `syz-executor188'. [ 31.838790] netlink: 4 bytes leftover after parsing attributes in process `syz-executor188'. [ 31.866559] netlink: 4 bytes leftover after parsing attributes in process `syz-executor188'. 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 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 [ 34.611821] syz-executor188 (9267) used greatest stack depth: 23616 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 executing program executing program executing program executing program executing program executing program [ 36.634965] nla_parse: 157 callbacks suppressed [ 36.634973] netlink: 24 bytes leftover after parsing attributes in process `syz-executor188'. [ 36.778499] netlink: 24 bytes leftover after parsing attributes in process `syz-executor188'. [ 36.838302] netlink: 24 bytes leftover after parsing attributes in process `syz-executor188'. [ 36.870627] netlink: 24 bytes leftover after parsing attributes in process `syz-executor188'. [ 36.925754] netlink: 24 bytes leftover after parsing attributes in process `syz-executor188'. [ 36.972413] netlink: 4 bytes leftover after parsing attributes in process `syz-executor188'. [ 37.013298] netlink: 4 bytes leftover after parsing attributes in process `syz-executor188'. [ 37.086558] netlink: 4 bytes leftover after parsing attributes in process `syz-executor188'. [ 37.131773] netlink: 4 bytes leftover after parsing attributes in process `syz-executor188'. [ 37.174965] netlink: 4 bytes leftover after parsing attributes in process `syz-executor188'. 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 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 [ 40.287060] ================================================================== [ 40.294614] BUG: KASAN: use-after-free in macvlan_dev_get_iflink+0x5f/0x70 [ 40.301641] Read of size 4 at addr ffff8880a0758548 by task syz-executor188/11753 [ 40.309255] [ 40.310882] CPU: 0 PID: 11753 Comm: syz-executor188 Not tainted 4.19.211-syzkaller #0 [ 40.319133] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 [ 40.328577] Call Trace: [ 40.331178] dump_stack+0x1fc/0x2ef [ 40.334821] print_address_description.cold+0x54/0x219 [ 40.340106] kasan_report_error.cold+0x8a/0x1b9 [ 40.344792] ? macvlan_dev_get_iflink+0x5f/0x70 [ 40.349897] __asan_report_load4_noabort+0x88/0x90 [ 40.354845] ? macvlan_dev_get_iflink+0x5f/0x70 [ 40.359531] macvlan_dev_get_iflink+0x5f/0x70 [ 40.364031] ? macvlan_dev_poll_controller+0x10/0x10 [ 40.369147] dev_get_iflink+0x73/0xe0 [ 40.372956] rfc2863_policy+0x1af/0x200 [ 40.376941] linkwatch_do_dev+0x1d/0x110 [ 40.381017] linkwatch_forget_dev+0x16a/0x200 [ 40.385519] netdev_run_todo+0x258/0xab0 [ 40.389594] ? default_device_exit_batch+0x3c0/0x3c0 [ 40.394705] ? rtnl_getlink+0x620/0x620 [ 40.398689] rtnetlink_rcv_msg+0x460/0xb80 [ 40.402936] ? rtnl_calcit.isra.0+0x430/0x430 [ 40.407437] ? __netlink_lookup+0x3fc/0x730 [ 40.411762] ? lock_downgrade+0x720/0x720 [ 40.415915] ? check_preemption_disabled+0x41/0x280 [ 40.420942] netlink_rcv_skb+0x160/0x440 [ 40.425005] ? rtnl_calcit.isra.0+0x430/0x430 [ 40.429501] ? netlink_ack+0xae0/0xae0 [ 40.433413] netlink_unicast+0x4d5/0x690 [ 40.437480] ? netlink_sendskb+0x110/0x110 [ 40.441722] ? _copy_from_iter_full+0x229/0x7c0 [ 40.446393] ? __phys_addr_symbol+0x2c/0x70 [ 40.451775] ? __check_object_size+0x17b/0x3e0 [ 40.456370] netlink_sendmsg+0x6c3/0xc50 [ 40.460452] ? aa_af_perm+0x230/0x230 [ 40.464271] ? nlmsg_notify+0x1f0/0x1f0 [ 40.468247] ? kernel_recvmsg+0x220/0x220 [ 40.472404] ? nlmsg_notify+0x1f0/0x1f0 [ 40.476401] sock_sendmsg+0xc3/0x120 [ 40.480205] ___sys_sendmsg+0x7bb/0x8e0 [ 40.484182] ? mark_held_locks+0xf0/0xf0 [ 40.488246] ? copy_msghdr_from_user+0x440/0x440 [ 40.493179] ? __fget+0x32f/0x510 [ 40.496636] ? lock_downgrade+0x720/0x720 [ 40.500786] ? check_preemption_disabled+0x41/0x280 [ 40.505810] ? check_preemption_disabled+0x41/0x280 [ 40.510840] ? __fget+0x356/0x510 [ 40.514299] ? do_dup2+0x450/0x450 [ 40.517842] ? _copy_to_user+0xb8/0x100 [ 40.521820] ? __fdget+0x1d0/0x230 [ 40.525633] __x64_sys_sendmsg+0x132/0x220 [ 40.529871] ? __sys_sendmsg+0x1b0/0x1b0 [ 40.533933] ? __se_sys_futex+0x298/0x3b0 [ 40.538089] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 40.543563] ? trace_hardirqs_off_caller+0x6e/0x210 [ 40.548584] ? do_syscall_64+0x21/0x620 [ 40.552566] do_syscall_64+0xf9/0x620 [ 40.556381] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 40.561660] RIP: 0033:0x7f4e6087ad69 [ 40.565377] 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 [ 40.584376] RSP: 002b:00007f4e6080b308 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 40.592883] RAX: ffffffffffffffda RBX: 00007f4e60902438 RCX: 00007f4e6087ad69 [ 40.600177] RDX: 0000000000000000 RSI: 0000000020000340 RDI: 0000000000000006 [ 40.607453] RBP: 00007f4e60902430 R08: 0000000000000000 R09: 0000000000000000 [ 40.614726] R10: 0000000000000000 R11: 0000000000000246 R12: 00007f4e6090243c [ 40.622000] R13: 00007f4e608d0074 R14: 00f0ffffffffffff R15: 0000000000022000 [ 40.629375] [ 40.631000] Allocated by task 11719: [ 40.634711] __kmalloc_node+0x4c/0x70 [ 40.638608] kvmalloc_node+0x61/0xf0 [ 40.642418] alloc_netdev_mqs+0x97/0xd50 [ 40.646480] rtnl_create_link+0x1d4/0xa40 [ 40.650632] rtnl_newlink+0xf45/0x15c0 [ 40.654522] rtnetlink_rcv_msg+0x453/0xb80 [ 40.658853] netlink_rcv_skb+0x160/0x440 [ 40.662915] netlink_unicast+0x4d5/0x690 [ 40.666971] netlink_sendmsg+0x6c3/0xc50 [ 40.672083] sock_sendmsg+0xc3/0x120 [ 40.675800] ___sys_sendmsg+0x7bb/0x8e0 [ 40.679795] __x64_sys_sendmsg+0x132/0x220 [ 40.684027] do_syscall_64+0xf9/0x620 [ 40.687823] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 40.692997] [ 40.694627] Freed by task 11719: [ 40.697998] kfree+0xcc/0x210 [ 40.701106] kvfree+0x59/0x60 [ 40.704213] device_release+0x76/0x210 [ 40.708118] kobject_put+0x28b/0x5d0 [ 40.711834] netdev_run_todo+0x77f/0xab0 [ 40.715895] rtnetlink_rcv_msg+0x460/0xb80 [ 40.720134] netlink_rcv_skb+0x160/0x440 [ 40.724277] netlink_unicast+0x4d5/0x690 [ 40.728344] netlink_sendmsg+0x6c3/0xc50 [ 40.732405] sock_sendmsg+0xc3/0x120 [ 40.736120] ___sys_sendmsg+0x7bb/0x8e0 [ 40.740098] __x64_sys_sendmsg+0x132/0x220 [ 40.744338] do_syscall_64+0xf9/0x620 [ 40.748165] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 40.753349] [ 40.754976] The buggy address belongs to the object at ffff8880a0758440 [ 40.754976] which belongs to the cache kmalloc-4096 of size 4096 [ 40.767813] The buggy address is located 264 bytes inside of [ 40.767813] 4096-byte region [ffff8880a0758440, ffff8880a0759440) [ 40.779775] The buggy address belongs to the page: [ 40.784715] page:ffffea000281d600 count:1 mapcount:0 mapping:ffff88813bff0dc0 index:0x0 compound_mapcount: 0 [ 40.794690] flags: 0xfff00000008100(slab|head) [ 40.799294] raw: 00fff00000008100 ffffea00027e1908 ffffea0002d35d88 ffff88813bff0dc0 [ 40.807195] raw: 0000000000000000 ffff8880a0758440 0000000100000001 0000000000000000 [ 40.815250] page dumped because: kasan: bad access detected [ 40.820958] [ 40.822582] Memory state around the buggy address: [ 40.827509] ffff8880a0758400: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 40.834867] ffff8880a0758480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 40.842228] >ffff8880a0758500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 40.849583] ^ [ 40.855306] ffff8880a0758580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 40.862669] ffff8880a0758600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 40.870022] ================================================================== [ 40.877376] Disabling lock debugging due to kernel taint [ 40.887283] Kernel panic - not syncing: panic_on_warn set ... [ 40.887283] [ 40.894662] CPU: 0 PID: 11753 Comm: syz-executor188 Tainted: G B 4.19.211-syzkaller #0 [ 40.904012] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 [ 40.913360] Call Trace: [ 40.915960] dump_stack+0x1fc/0x2ef [ 40.919593] panic+0x26a/0x50e [ 40.922811] ? __warn_printk+0xf3/0xf3 [ 40.926696] ? preempt_schedule_common+0x45/0xc0 [ 40.931457] ? ___preempt_schedule+0x16/0x18 [ 40.935868] ? trace_hardirqs_on+0x55/0x210 [ 40.940198] kasan_end_report+0x43/0x49 [ 40.944171] kasan_report_error.cold+0xa7/0x1b9 [ 40.949063] ? macvlan_dev_get_iflink+0x5f/0x70 [ 40.953733] __asan_report_load4_noabort+0x88/0x90 [ 40.958660] ? macvlan_dev_get_iflink+0x5f/0x70 [ 40.963327] macvlan_dev_get_iflink+0x5f/0x70 [ 40.967825] ? macvlan_dev_poll_controller+0x10/0x10 [ 40.972935] dev_get_iflink+0x73/0xe0 [ 40.976729] rfc2863_policy+0x1af/0x200 [ 40.980698] linkwatch_do_dev+0x1d/0x110 [ 40.984755] linkwatch_forget_dev+0x16a/0x200 [ 40.989269] netdev_run_todo+0x258/0xab0 [ 40.993325] ? default_device_exit_batch+0x3c0/0x3c0 [ 40.998420] ? rtnl_getlink+0x620/0x620 [ 41.002382] rtnetlink_rcv_msg+0x460/0xb80 [ 41.006609] ? rtnl_calcit.isra.0+0x430/0x430 [ 41.011102] ? __netlink_lookup+0x3fc/0x730 [ 41.015525] ? lock_downgrade+0x720/0x720 [ 41.019681] ? check_preemption_disabled+0x41/0x280 [ 41.025217] netlink_rcv_skb+0x160/0x440 [ 41.029269] ? rtnl_calcit.isra.0+0x430/0x430 [ 41.033767] ? netlink_ack+0xae0/0xae0 [ 41.037649] netlink_unicast+0x4d5/0x690 [ 41.041699] ? netlink_sendskb+0x110/0x110 [ 41.045921] ? _copy_from_iter_full+0x229/0x7c0 [ 41.050670] ? __phys_addr_symbol+0x2c/0x70 [ 41.054983] ? __check_object_size+0x17b/0x3e0 [ 41.059560] netlink_sendmsg+0x6c3/0xc50 [ 41.063614] ? aa_af_perm+0x230/0x230 [ 41.067407] ? nlmsg_notify+0x1f0/0x1f0 [ 41.071372] ? kernel_recvmsg+0x220/0x220 [ 41.075510] ? nlmsg_notify+0x1f0/0x1f0 [ 41.079479] sock_sendmsg+0xc3/0x120 [ 41.083179] ___sys_sendmsg+0x7bb/0x8e0 [ 41.087147] ? mark_held_locks+0xf0/0xf0 [ 41.091196] ? copy_msghdr_from_user+0x440/0x440 [ 41.095942] ? __fget+0x32f/0x510 [ 41.099413] ? lock_downgrade+0x720/0x720 [ 41.103592] ? check_preemption_disabled+0x41/0x280 [ 41.108983] ? check_preemption_disabled+0x41/0x280 [ 41.114014] ? __fget+0x356/0x510 [ 41.117554] ? do_dup2+0x450/0x450 [ 41.121096] ? _copy_to_user+0xb8/0x100 [ 41.125115] ? __fdget+0x1d0/0x230 [ 41.128657] __x64_sys_sendmsg+0x132/0x220 [ 41.132887] ? __sys_sendmsg+0x1b0/0x1b0 [ 41.136938] ? __se_sys_futex+0x298/0x3b0 [ 41.141081] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 41.146436] ? trace_hardirqs_off_caller+0x6e/0x210 [ 41.151467] ? do_syscall_64+0x21/0x620 [ 41.155430] do_syscall_64+0xf9/0x620 [ 41.159233] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 41.164414] RIP: 0033:0x7f4e6087ad69 [ 41.168117] 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.187016] RSP: 002b:00007f4e6080b308 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 41.194724] RAX: ffffffffffffffda RBX: 00007f4e60902438 RCX: 00007f4e6087ad69 [ 41.202365] RDX: 0000000000000000 RSI: 0000000020000340 RDI: 0000000000000006 [ 41.209639] RBP: 00007f4e60902430 R08: 0000000000000000 R09: 0000000000000000 [ 41.216908] R10: 0000000000000000 R11: 0000000000000246 R12: 00007f4e6090243c [ 41.224245] R13: 00007f4e608d0074 R14: 00f0ffffffffffff R15: 0000000000022000 [ 41.231693] Kernel Offset: disabled [ 41.235321] Rebooting in 86400 seconds..