netlink: 1 bytes leftover after parsing attributes in process `syz-executor.5'. BUG: sleeping function called from invalid context at kernel/locking/mutex.c:908 in_atomic(): 1, irqs_disabled(): 0, pid: 21450, name: syz-executor.0 4 locks held by syz-executor.0/21450: #0: 00000000c4aa98cb (rcu_read_lock){....}, at: __read_seqcount_begin include/linux/seqlock.h:114 [inline] #0: 00000000c4aa98cb (rcu_read_lock){....}, at: raw_read_seqcount_begin include/linux/seqlock.h:148 [inline] #0: 00000000c4aa98cb (rcu_read_lock){....}, at: read_seqcount_begin include/linux/seqlock.h:165 [inline] #0: 00000000c4aa98cb (rcu_read_lock){....}, at: xfrm_state_find+0x306/0x2fc0 net/xfrm/xfrm_state.c:965 #1: 00000000c4aa98cb (rcu_read_lock){....}, at: km_query+0x0/0x210 include/linux/compiler.h:193 #2: 00000000c4aa98cb (rcu_read_lock){....}, at: pfkey_broadcast+0x181/0x660 net/key/af_key.c:234 netlink: 1 bytes leftover after parsing attributes in process `syz-executor.5'. #3: 000000003790708b ((&sp->resync_t)){+.-.}, at: lockdep_copy_map include/linux/lockdep.h:168 [inline] #3: 000000003790708b ((&sp->resync_t)){+.-.}, at: call_timer_fn+0xda/0x720 kernel/time/timer.c:1316 Preemption disabled at: [] __do_softirq+0xf3/0x921 kernel/softirq.c:269 CPU: 0 PID: 21450 Comm: syz-executor.0 Not tainted 4.19.100-syzkaller #0 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+0x197/0x210 lib/dump_stack.c:118 ___might_sleep.cold+0x1bd/0x1f6 kernel/sched/core.c:6192 __might_sleep+0x95/0x190 kernel/sched/core.c:6145 __mutex_lock_common kernel/locking/mutex.c:908 [inline] __mutex_lock+0xc8/0x1300 kernel/locking/mutex.c:1072 mutex_lock_nested+0x16/0x20 kernel/locking/mutex.c:1087 tpk_write+0x5d/0x340 drivers/char/ttyprintk.c:123 resync_tnc+0x1b6/0x320 drivers/net/hamradio/6pack.c:522 call_timer_fn+0x18d/0x720 kernel/time/timer.c:1326 expire_timers kernel/time/timer.c:1363 [inline] __run_timers kernel/time/timer.c:1684 [inline] __run_timers kernel/time/timer.c:1652 [inline] run_timer_softirq+0x64f/0x16a0 kernel/time/timer.c:1697 __do_softirq+0x25c/0x921 kernel/softirq.c:292 invoke_softirq kernel/softirq.c:372 [inline] irq_exit+0x180/0x1d0 kernel/softirq.c:412 exiting_irq arch/x86/include/asm/apic.h:536 [inline] smp_apic_timer_interrupt+0x13b/0x550 arch/x86/kernel/apic/apic.c:1094 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:893 RIP: 0010:bytes_is_nonzero mm/kasan/kasan.c:167 [inline] RIP: 0010:memory_is_nonzero mm/kasan/kasan.c:184 [inline] RIP: 0010:memory_is_poisoned_n mm/kasan/kasan.c:210 [inline] RIP: 0010:memory_is_poisoned mm/kasan/kasan.c:241 [inline] RIP: 0010:check_memory_region_inline mm/kasan/kasan.c:257 [inline] RIP: 0010:check_memory_region+0x112/0x190 mm/kasan/kasan.c:267 Code: 8d 44 25 00 4d 85 c0 75 25 49 89 d9 49 29 c1 e9 70 ff ff ff 4d 85 c9 74 ba 4d 01 e1 eb 09 48 83 c0 01 4c 39 c8 74 ac 80 38 00 <74> f2 eb a0 4c 89 c0 49 39 c2 74 4e e8 0d 10 00 00 5b 41 5c 41 5d RSP: 0018:ffff888009f268f0 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13 RAX: ffffed10013e4d37 RBX: ffffed10013e4d3e RCX: ffffffff812f77d9 RDX: 0000000000000001 RSI: 0000000000000060 RDI: ffff888009f26990 RBP: ffff888009f26908 R08: 1ffff110013e4d32 R09: ffffed10013e4d3e R10: ffffed10013e4d3d R11: ffff888009f269ef R12: ffffed10013e4d32 R13: 0000000000000060 R14: 0000000000000000 R15: ffff888009f26990 memset+0x24/0x40 mm/kasan/kasan.c:285 memset include/linux/string.h:333 [inline] __unwind_start+0x29/0x3d0 arch/x86/kernel/unwind_frame.c:393 unwind_start arch/x86/include/asm/unwind.h:60 [inline] __save_stack_trace+0x5c/0x100 arch/x86/kernel/stacktrace.c:43 save_stack_trace+0x1a/0x20 arch/x86/kernel/stacktrace.c:60 save_stack+0x45/0xd0 mm/kasan/kasan.c:448 set_track mm/kasan/kasan.c:460 [inline] kasan_kmalloc mm/kasan/kasan.c:553 [inline] kasan_kmalloc+0xce/0xf0 mm/kasan/kasan.c:531 kasan_slab_alloc+0xf/0x20 mm/kasan/kasan.c:490 slab_post_alloc_hook mm/slab.h:445 [inline] slab_alloc mm/slab.c:3397 [inline] kmem_cache_alloc+0x11b/0x700 mm/slab.c:3557 skb_clone+0x156/0x3e0 net/core/skbuff.c:1284 pfkey_broadcast_one+0xc2/0x380 net/key/af_key.c:207 pfkey_broadcast+0x33b/0x660 net/key/af_key.c:262 pfkey_send_acquire+0xe8c/0x2600 net/key/af_key.c:3242 km_query+0xcb/0x210 net/xfrm/xfrm_state.c:1990 xfrm_state_find+0x1edd/0x2fc0 net/xfrm/xfrm_state.c:1040 xfrm_tmpl_resolve_one net/xfrm/xfrm_policy.c:1413 [inline] xfrm_tmpl_resolve+0x333/0xcf0 net/xfrm/xfrm_policy.c:1458 xfrm_resolve_and_create_bundle+0x137/0x22f0 net/xfrm/xfrm_policy.c:1756 xfrm_lookup_with_ifid+0x27a/0x1d60 net/xfrm/xfrm_policy.c:2079 xfrm_lookup net/xfrm/xfrm_policy.c:2203 [inline] xfrm_lookup_route+0x3b/0x1f0 net/xfrm/xfrm_policy.c:2214 ip6_dst_lookup_flow+0x189/0x220 net/ipv6/ip6_output.c:1086 rawv6_sendmsg+0xc15/0x3620 net/ipv6/raw.c:931 inet_sendmsg+0x141/0x5d0 net/ipv4/af_inet.c:798 sock_sendmsg_nosec net/socket.c:622 [inline] sock_sendmsg+0xd7/0x130 net/socket.c:632 ___sys_sendmsg+0x3e2/0x920 net/socket.c:2115 __sys_sendmmsg+0x1bf/0x4e0 net/socket.c:2210 __do_sys_sendmmsg net/socket.c:2239 [inline] __se_sys_sendmmsg net/socket.c:2236 [inline] __x64_sys_sendmmsg+0x9d/0x100 net/socket.c:2236 do_syscall_64+0xfd/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45b349 Code: ad b6 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 b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 netlink: 1 bytes leftover after parsing attributes in process `syz-executor.5'. RSP: 002b:00007fa7e0383c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000133 RAX: ffffffffffffffda RBX: 00007fa7e03846d4 RCX: 000000000045b349 RDX: 0400000000000058 RSI: 0000000020007e00 RDI: 0000000000000008 RBP: 000000000075bfc8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000010a4d615978 R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000000008ca R14: 00000000004ca1f6 R15: 000000000075bfd4 ================================ WARNING: inconsistent lock state 4.19.100-syzkaller #0 Tainted: G W -------------------------------- inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. syz-executor.0/21450 [HC0[0]:SC1[1]:HE1:SE0] takes: 000000009530c85a (&tpk_port.port_write_mutex){+.?.}, at: tpk_write+0x5d/0x340 drivers/char/ttyprintk.c:123 {SOFTIRQ-ON-W} state was registered at: lock_acquire+0x16f/0x3f0 kernel/locking/lockdep.c:3903 __mutex_lock_common kernel/locking/mutex.c:925 [inline] __mutex_lock+0xf7/0x1300 kernel/locking/mutex.c:1072 mutex_lock_nested+0x16/0x20 kernel/locking/mutex.c:1087 tpk_close+0x50/0x95 drivers/char/ttyprintk.c:104 tty_release+0x3ba/0xe90 drivers/tty/tty_io.c:1678 __fput+0x2dd/0x8b0 fs/file_table.c:278 ____fput+0x16/0x20 fs/file_table.c:309 task_work_run+0x145/0x1c0 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:193 [inline] exit_to_usermode_loop+0x273/0x2c0 arch/x86/entry/common.c:167 prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline] syscall_return_slowpath arch/x86/entry/common.c:271 [inline] do_syscall_64+0x53d/0x620 arch/x86/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x49/0xbe irq event stamp: 23850 hardirqs last enabled at (23850): [] trace_hardirqs_on_thunk+0x1a/0x1c hardirqs last disabled at (23849): [] trace_hardirqs_off_thunk+0x1a/0x1c softirqs last enabled at (23466): [] rcu_read_unlock_bh include/linux/rcupdate.h:717 [inline] softirqs last enabled at (23466): [] ip6_dst_lookup_tail+0xdbc/0x1a50 net/ipv6/ip6_output.c:999 softirqs last disabled at (23593): [] invoke_softirq kernel/softirq.c:372 [inline] softirqs last disabled at (23593): [] irq_exit+0x180/0x1d0 kernel/softirq.c:412 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(&tpk_port.port_write_mutex); lock(&tpk_port.port_write_mutex); *** DEADLOCK *** 4 locks held by syz-executor.0/21450: #0: 00000000c4aa98cb (rcu_read_lock){....}, at: __read_seqcount_begin include/linux/seqlock.h:114 [inline] #0: 00000000c4aa98cb (rcu_read_lock){....}, at: raw_read_seqcount_begin include/linux/seqlock.h:148 [inline] #0: 00000000c4aa98cb (rcu_read_lock){....}, at: read_seqcount_begin include/linux/seqlock.h:165 [inline] #0: 00000000c4aa98cb (rcu_read_lock){....}, at: xfrm_state_find+0x306/0x2fc0 net/xfrm/xfrm_state.c:965 #1: 00000000c4aa98cb (rcu_read_lock){....}, at: km_query+0x0/0x210 include/linux/compiler.h:193 #2: 00000000c4aa98cb (rcu_read_lock){....}, at: pfkey_broadcast+0x181/0x660 net/key/af_key.c:234 #3: 000000003790708b ((&sp->resync_t)){+.-.}, at: lockdep_copy_map include/linux/lockdep.h:168 [inline] #3: 000000003790708b ((&sp->resync_t)){+.-.}, at: call_timer_fn+0xda/0x720 kernel/time/timer.c:1316 stack backtrace: CPU: 0 PID: 21450 Comm: syz-executor.0 Tainted: G W 4.19.100-syzkaller #0 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+0x197/0x210 lib/dump_stack.c:118 print_usage_bug.cold+0x330/0x42a kernel/locking/lockdep.c:2540 valid_state kernel/locking/lockdep.c:2553 [inline] mark_lock_irq kernel/locking/lockdep.c:2747 [inline] mark_lock+0xd1b/0x1370 kernel/locking/lockdep.c:3127 mark_irqflags kernel/locking/lockdep.c:3005 [inline] __lock_acquire+0xc62/0x49c0 kernel/locking/lockdep.c:3368 lock_acquire+0x16f/0x3f0 kernel/locking/lockdep.c:3903 __mutex_lock_common kernel/locking/mutex.c:925 [inline] __mutex_lock+0xf7/0x1300 kernel/locking/mutex.c:1072 mutex_lock_nested+0x16/0x20 kernel/locking/mutex.c:1087 tpk_write+0x5d/0x340 drivers/char/ttyprintk.c:123 resync_tnc+0x1b6/0x320 drivers/net/hamradio/6pack.c:522 call_timer_fn+0x18d/0x720 kernel/time/timer.c:1326 expire_timers kernel/time/timer.c:1363 [inline] __run_timers kernel/time/timer.c:1684 [inline] __run_timers kernel/time/timer.c:1652 [inline] run_timer_softirq+0x64f/0x16a0 kernel/time/timer.c:1697 __do_softirq+0x25c/0x921 kernel/softirq.c:292 invoke_softirq kernel/softirq.c:372 [inline] irq_exit+0x180/0x1d0 kernel/softirq.c:412 exiting_irq arch/x86/include/asm/apic.h:536 [inline] smp_apic_timer_interrupt+0x13b/0x550 arch/x86/kernel/apic/apic.c:1094 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:893 RIP: 0010:bytes_is_nonzero mm/kasan/kasan.c:167 [inline] RIP: 0010:memory_is_nonzero mm/kasan/kasan.c:184 [inline] RIP: 0010:memory_is_poisoned_n mm/kasan/kasan.c:210 [inline] RIP: 0010:memory_is_poisoned mm/kasan/kasan.c:241 [inline] RIP: 0010:check_memory_region_inline mm/kasan/kasan.c:257 [inline] RIP: 0010:check_memory_region+0x112/0x190 mm/kasan/kasan.c:267 Code: 8d 44 25 00 4d 85 c0 75 25 49 89 d9 49 29 c1 e9 70 ff ff ff 4d 85 c9 74 ba 4d 01 e1 eb 09 48 83 c0 01 4c 39 c8 74 ac 80 38 00 <74> f2 eb a0 4c 89 c0 49 39 c2 74 4e e8 0d 10 00 00 5b 41 5c 41 5d RSP: 0018:ffff888009f268f0 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13 RAX: ffffed10013e4d37 RBX: ffffed10013e4d3e RCX: ffffffff812f77d9 RDX: 0000000000000001 RSI: 0000000000000060 RDI: ffff888009f26990 RBP: ffff888009f26908 R08: 1ffff110013e4d32 R09: ffffed10013e4d3e R10: ffffed10013e4d3d R11: ffff888009f269ef R12: ffffed10013e4d32 R13: 0000000000000060 R14: 0000000000000000 R15: ffff888009f26990 memset+0x24/0x40 mm/kasan/kasan.c:285 memset include/linux/string.h:333 [inline] __unwind_start+0x29/0x3d0 arch/x86/kernel/unwind_frame.c:393 unwind_start arch/x86/include/asm/unwind.h:60 [inline] __save_stack_trace+0x5c/0x100 arch/x86/kernel/stacktrace.c:43 save_stack_trace+0x1a/0x20 arch/x86/kernel/stacktrace.c:60 save_stack+0x45/0xd0 mm/kasan/kasan.c:448 set_track mm/kasan/kasan.c:460 [inline] kasan_kmalloc mm/kasan/kasan.c:553 [inline] kasan_kmalloc+0xce/0xf0 mm/kasan/kasan.c:531 kasan_slab_alloc+0xf/0x20 mm/kasan/kasan.c:490 slab_post_alloc_hook mm/slab.h:445 [inline] slab_alloc mm/slab.c:3397 [inline] kmem_cache_alloc+0x11b/0x700 mm/slab.c:3557 skb_clone+0x156/0x3e0 net/core/skbuff.c:1284 pfkey_broadcast_one+0xc2/0x380 net/key/af_key.c:207 pfkey_broadcast+0x33b/0x660 net/key/af_key.c:262 pfkey_send_acquire+0xe8c/0x2600 net/key/af_key.c:3242 km_query+0xcb/0x210 net/xfrm/xfrm_state.c:1990 xfrm_state_find+0x1edd/0x2fc0 net/xfrm/xfrm_state.c:1040 xfrm_tmpl_resolve_one net/xfrm/xfrm_policy.c:1413 [inline] xfrm_tmpl_resolve+0x333/0xcf0 net/xfrm/xfrm_policy.c:1458 xfrm_resolve_and_create_bundle+0x137/0x22f0 net/xfrm/xfrm_policy.c:1756 xfrm_lookup_with_ifid+0x27a/0x1d60 net/xfrm/xfrm_policy.c:2079 xfrm_lookup net/xfrm/xfrm_policy.c:2203 [inline] xfrm_lookup_route+0x3b/0x1f0 net/xfrm/xfrm_policy.c:2214 ip6_dst_lookup_flow+0x189/0x220 net/ipv6/ip6_output.c:1086 rawv6_sendmsg+0xc15/0x3620 net/ipv6/raw.c:931 inet_sendmsg+0x141/0x5d0 net/ipv4/af_inet.c:798 sock_sendmsg_nosec net/socket.c:622 [inline] sock_sendmsg+0xd7/0x130 net/socket.c:632 ___sys_sendmsg+0x3e2/0x920 net/socket.c:2115 __sys_sendmmsg+0x1bf/0x4e0 net/socket.c:2210 __do_sys_sendmmsg net/socket.c:2239 [inline] __se_sys_sendmmsg net/socket.c:2236 [inline] __x64_sys_sendmmsg+0x9d/0x100 net/socket.c:2236 do_syscall_64+0xfd/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45b349 Code: ad b6 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 b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fa7e0383c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000133 RAX: ffffffffffffffda RBX: 00007fa7e03846d4 RCX: 000000000045b349 RDX: 0400000000000058 RSI: 0000000020007e00 RDI: 0000000000000008 RBP: 000000000075bfc8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000010a4d615978 R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000000008ca R14: 00000000004ca1f6 R15: 000000000075bfd4 BUG: sleeping function called from invalid context at kernel/locking/mutex.c:908 in_atomic(): 1, irqs_disabled(): 0, pid: 21450, name: syz-executor.0 INFO: lockdep is turned off. Preemption disabled at: [] __do_softirq+0xf3/0x921 kernel/softirq.c:269 CPU: 0 PID: 21450 Comm: syz-executor.0 Tainted: G W 4.19.100-syzkaller #0 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+0x197/0x210 lib/dump_stack.c:118 ___might_sleep.cold+0x1bd/0x1f6 kernel/sched/core.c:6192 __might_sleep+0x95/0x190 kernel/sched/core.c:6145 __mutex_lock_common kernel/locking/mutex.c:908 [inline] __mutex_lock+0xc8/0x1300 kernel/locking/mutex.c:1072 mutex_lock_nested+0x16/0x20 kernel/locking/mutex.c:1087 tpk_write+0x5d/0x340 drivers/char/ttyprintk.c:123 resync_tnc+0x22e/0x320 drivers/net/hamradio/6pack.c:523 call_timer_fn+0x18d/0x720 kernel/time/timer.c:1326 expire_timers kernel/time/timer.c:1363 [inline] __run_timers kernel/time/timer.c:1684 [inline] __run_timers kernel/time/timer.c:1652 [inline] run_timer_softirq+0x64f/0x16a0 kernel/time/timer.c:1697 __do_softirq+0x25c/0x921 kernel/softirq.c:292 invoke_softirq kernel/softirq.c:372 [inline] irq_exit+0x180/0x1d0 kernel/softirq.c:412 exiting_irq arch/x86/include/asm/apic.h:536 [inline] smp_apic_timer_interrupt+0x13b/0x550 arch/x86/kernel/apic/apic.c:1094 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:893 RIP: 0010:bytes_is_nonzero mm/kasan/kasan.c:167 [inline] RIP: 0010:memory_is_nonzero mm/kasan/kasan.c:184 [inline] RIP: 0010:memory_is_poisoned_n mm/kasan/kasan.c:210 [inline] RIP: 0010:memory_is_poisoned mm/kasan/kasan.c:241 [inline] RIP: 0010:check_memory_region_inline mm/kasan/kasan.c:257 [inline] RIP: 0010:check_memory_region+0x112/0x190 mm/kasan/kasan.c:267 Code: 8d 44 25 00 4d 85 c0 75 25 49 89 d9 49 29 c1 e9 70 ff ff ff 4d 85 c9 74 ba 4d 01 e1 eb 09 48 83 c0 01 4c 39 c8 74 ac 80 38 00 <74> f2 eb a0 4c 89 c0 49 39 c2 74 4e e8 0d 10 00 00 5b 41 5c 41 5d RSP: 0018:ffff888009f268f0 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13 RAX: ffffed10013e4d37 RBX: ffffed10013e4d3e RCX: ffffffff812f77d9 RDX: 0000000000000001 RSI: 0000000000000060 RDI: ffff888009f26990 RBP: ffff888009f26908 R08: 1ffff110013e4d32 R09: ffffed10013e4d3e R10: ffffed10013e4d3d R11: ffff888009f269ef R12: ffffed10013e4d32 R13: 0000000000000060 R14: 0000000000000000 R15: ffff888009f26990 memset+0x24/0x40 mm/kasan/kasan.c:285 memset include/linux/string.h:333 [inline] __unwind_start+0x29/0x3d0 arch/x86/kernel/unwind_frame.c:393 unwind_start arch/x86/include/asm/unwind.h:60 [inline] __save_stack_trace+0x5c/0x100 arch/x86/kernel/stacktrace.c:43 save_stack_trace+0x1a/0x20 arch/x86/kernel/stacktrace.c:60 save_stack+0x45/0xd0 mm/kasan/kasan.c:448 set_track mm/kasan/kasan.c:460 [inline] kasan_kmalloc mm/kasan/kasan.c:553 [inline] kasan_kmalloc+0xce/0xf0 mm/kasan/kasan.c:531 kasan_slab_alloc+0xf/0x20 mm/kasan/kasan.c:490 slab_post_alloc_hook mm/slab.h:445 [inline] slab_alloc mm/slab.c:3397 [inline] kmem_cache_alloc+0x11b/0x700 mm/slab.c:3557 skb_clone+0x156/0x3e0 net/core/skbuff.c:1284 pfkey_broadcast_one+0xc2/0x380 net/key/af_key.c:207 pfkey_broadcast+0x33b/0x660 net/key/af_key.c:262 pfkey_send_acquire+0xe8c/0x2600 net/key/af_key.c:3242 km_query+0xcb/0x210 net/xfrm/xfrm_state.c:1990 xfrm_state_find+0x1edd/0x2fc0 net/xfrm/xfrm_state.c:1040 xfrm_tmpl_resolve_one net/xfrm/xfrm_policy.c:1413 [inline] xfrm_tmpl_resolve+0x333/0xcf0 net/xfrm/xfrm_policy.c:1458 xfrm_resolve_and_create_bundle+0x137/0x22f0 net/xfrm/xfrm_policy.c:1756 xfrm_lookup_with_ifid+0x27a/0x1d60 net/xfrm/xfrm_policy.c:2079 xfrm_lookup net/xfrm/xfrm_policy.c:2203 [inline] xfrm_lookup_route+0x3b/0x1f0 net/xfrm/xfrm_policy.c:2214 ip6_dst_lookup_flow+0x189/0x220 net/ipv6/ip6_output.c:1086 rawv6_sendmsg+0xc15/0x3620 net/ipv6/raw.c:931 inet_sendmsg+0x141/0x5d0 net/ipv4/af_inet.c:798 sock_sendmsg_nosec net/socket.c:622 [inline] sock_sendmsg+0xd7/0x130 net/socket.c:632 ___sys_sendmsg+0x3e2/0x920 net/socket.c:2115 __sys_sendmmsg+0x1bf/0x4e0 net/socket.c:2210 __do_sys_sendmmsg net/socket.c:2239 [inline] __se_sys_sendmmsg net/socket.c:2236 [inline] __x64_sys_sendmmsg+0x9d/0x100 net/socket.c:2236 do_syscall_64+0xfd/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45b349 Code: ad b6 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 b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fa7e0383c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000133 RAX: ffffffffffffffda RBX: 00007fa7e03846d4 RCX: 000000000045b349 RDX: 0400000000000058 RSI: 0000000020007e00 RDI: 0000000000000008 RBP: 000000000075bfc8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000010a4d615978 R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000000008ca R14: 00000000004ca1f6 R15: 000000000075bfd4 ip6t_rpfilter: unknown options nla_parse: 2 callbacks suppressed netlink: 1 bytes leftover after parsing attributes in process `syz-executor.5'. ip6t_rpfilter: unknown options netlink: 1 bytes leftover after parsing attributes in process `syz-executor.5'. attempt to access beyond end of device loop3: rw=1, want=1445, limit=38 netlink: 1 bytes leftover after parsing attributes in process `syz-executor.5'. netlink: 1 bytes leftover after parsing attributes in process `syz-executor.5'. NOHZ: local_softirq_pending 08 attempt to access beyond end of device loop3: rw=2049, want=39, limit=38 buffer_io_error: 57 callbacks suppressed Buffer I/O error on dev loop3, logical block 38, lost async page write attempt to access beyond end of device loop3: rw=2049, want=40, limit=38 Buffer I/O error on dev loop3, logical block 39, lost async page write attempt to access beyond end of device loop3: rw=2049, want=41, limit=38 Buffer I/O error on dev loop3, logical block 40, lost async page write attempt to access beyond end of device loop3: rw=2049, want=78, limit=38 Buffer I/O error on dev loop3, logical block 77, lost async page write attempt to access beyond end of device loop3: rw=2049, want=79, limit=38 Buffer I/O error on dev loop3, logical block 78, lost async page write ip6t_rpfilter: unknown options netlink: 1 bytes leftover after parsing attributes in process `syz-executor.5'. attempt to access beyond end of device loop3: rw=2049, want=80, limit=38 netlink: 1 bytes leftover after parsing attributes in process `syz-executor.5'. Buffer I/O error on dev loop3, logical block 79, lost async page write attempt to access beyond end of device loop3: rw=2049, want=81, limit=38 Buffer I/O error on dev loop3, logical block 80, lost async page write attempt to access beyond end of device loop3: rw=2049, want=114, limit=38 Buffer I/O error on dev loop3, logical block 113, lost async page write attempt to access beyond end of device loop3: rw=2049, want=115, limit=38 Buffer I/O error on dev loop3, logical block 114, lost async page write attempt to access beyond end of device loop3: rw=2049, want=116, limit=38 Buffer I/O error on dev loop3, logical block 115, lost async page write attempt to access beyond end of device loop3: rw=2049, want=117, limit=38 attempt to access beyond end of device loop3: rw=2049, want=130, limit=38 attempt to access beyond end of device loop3: rw=2049, want=131, limit=38 attempt to access beyond end of device loop3: rw=2049, want=132, limit=38 attempt to access beyond end of device loop3: rw=2049, want=133, limit=38 attempt to access beyond end of device loop3: rw=2049, want=157, limit=38 attempt to access beyond end of device loop3: rw=2049, want=5541, limit=38 attempt to access beyond end of device loop3: rw=2049, want=9637, limit=38 attempt to access beyond end of device loop3: rw=2049, want=13733, limit=38 attempt to access beyond end of device caif:caif_disconnect_client(): nothing to disconnect loop3: rw=2049, want=17829, limit=38 attempt to access beyond end of device loop3: rw=2049, want=21925, limit=38 attempt to access beyond end of device loop3: rw=2049, want=26021, limit=38 attempt to access beyond end of device loop3: rw=2049, want=30117, limit=38 attempt to access beyond end of device caif:caif_disconnect_client(): nothing to disconnect loop3: rw=2049, want=32877, limit=38 attempt to access beyond end of device loop3: rw=2049, want=39, limit=38 attempt to access beyond end of device loop3: rw=2049, want=40, limit=38 attempt to access beyond end of device loop3: rw=2049, want=41, limit=38 attempt to access beyond end of device loop3: rw=2049, want=78, limit=38 attempt to access beyond end of device loop3: rw=2049, want=79, limit=38 attempt to access beyond end of device loop3: rw=2049, want=80, limit=38 attempt to access beyond end of device loop3: rw=2049, want=81, limit=38 netlink: 1 bytes leftover after parsing attributes in process `syz-executor.5'. ip6t_rpfilter: unknown options netlink: 1 bytes leftover after parsing attributes in process `syz-executor.5'. netlink: 1 bytes leftover after parsing attributes in process `syz-executor.5'. ip6t_rpfilter: unknown options caif:caif_disconnect_client(): nothing to disconnect audit: type=1800 audit(2000001193.060:461): pid=21639 uid=0 auid=4294967295 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 op=collect_data cause=failed comm="syz-executor.3" name="bus" dev="sda1" ino=17492 res=0 audit: type=1800 audit(2000001193.060:462): pid=21641 uid=0 auid=4294967295 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 op=collect_data cause=failed comm="syz-executor.3" name="bus" dev="sda1" ino=17492 res=0 ip6t_rpfilter: unknown options netlink: 1 bytes leftover after parsing attributes in process `syz-executor.5'. ip6t_rpfilter: unknown options attempt to access beyond end of device caif:caif_disconnect_client(): nothing to disconnect loop3: rw=1, want=953, limit=38 caif:caif_disconnect_client(): nothing to disconnect ip6t_rpfilter: unknown options caif:caif_disconnect_client(): nothing to disconnect attempt to access beyond end of device loop3: rw=2049, want=39, limit=38 attempt to access beyond end of device loop3: rw=2049, want=40, limit=38 attempt to access beyond end of device loop3: rw=2049, want=41, limit=38 attempt to access beyond end of device loop3: rw=2049, want=78, limit=38 attempt to access beyond end of device loop3: rw=2049, want=79, limit=38 attempt to access beyond end of device loop3: rw=2049, want=80, limit=38 attempt to access beyond end of device loop3: rw=2049, want=81, limit=38 attempt to access beyond end of device attempt to access beyond end of device loop3: rw=1, want=5049, limit=38 loop3: rw=2049, want=130, limit=38 attempt to access beyond end of device attempt to access beyond end of device loop3: rw=2049, want=131, limit=38 loop3: rw=1, want=9145, limit=38 attempt to access beyond end of device loop3: rw=2049, want=132, limit=38 attempt to access beyond end of device attempt to access beyond end of device loop3: rw=1, want=13241, limit=38 loop3: rw=2049, want=133, limit=38 attempt to access beyond end of device attempt to access beyond end of device loop3: rw=2049, want=142, limit=38 loop3: rw=1, want=17337, limit=38 attempt to access beyond end of device loop3: rw=2049, want=143, limit=38 attempt to access beyond end of device attempt to access beyond end of device loop3: rw=1, want=21433, limit=38 loop3: rw=2049, want=144, limit=38 attempt to access beyond end of device attempt to access beyond end of device loop3: rw=2049, want=145, limit=38 loop3: rw=1, want=25529, limit=38 attempt to access beyond end of device loop3: rw=2049, want=39, limit=38 attempt to access beyond end of device attempt to access beyond end of device loop3: rw=1, want=29625, limit=38 loop3: rw=2049, want=40, limit=38 attempt to access beyond end of device loop3: rw=1, want=32881, limit=38 attempt to access beyond end of device loop3: rw=2049, want=161, limit=38 attempt to access beyond end of device loop3: rw=2049, want=41, limit=38 attempt to access beyond end of device loop3: rw=2049, want=78, limit=38 attempt to access beyond end of device loop3: rw=2049, want=79, limit=38 attempt to access beyond end of device loop3: rw=2049, want=80, limit=38 attempt to access beyond end of device loop3: rw=2049, want=81, limit=38 attempt to access beyond end of device loop3: rw=2049, want=130, limit=38 attempt to access beyond end of device loop3: rw=2049, want=131, limit=38 attempt to access beyond end of device loop3: rw=2049, want=132, limit=38 attempt to access beyond end of device loop3: rw=2049, want=133, limit=38 attempt to access beyond end of device loop3: rw=2049, want=142, limit=38 attempt to access beyond end of device loop3: rw=2049, want=143, limit=38 attempt to access beyond end of device loop3: rw=2049, want=144, limit=38 attempt to access beyond end of device loop3: rw=2049, want=145, limit=38 ip6t_rpfilter: unknown options attempt to access beyond end of device loop3: rw=1, want=221, limit=38 ip6t_rpfilter: unknown options caif:caif_disconnect_client(): nothing to disconnect attempt to access beyond end of device loop3: rw=2049, want=39, limit=38 attempt to access beyond end of device loop3: rw=2049, want=40, limit=38 attempt to access beyond end of device loop3: rw=2049, want=41, limit=38 attempt to access beyond end of device loop3: rw=2049, want=78, limit=38 attempt to access beyond end of device loop3: rw=2049, want=79, limit=38 attempt to access beyond end of device loop3: rw=2049, want=80, limit=38 attempt to access beyond end of device loop3: rw=2049, want=81, limit=38 attempt to access beyond end of device loop3: rw=2049, want=114, limit=38 attempt to access beyond end of device loop3: rw=2049, want=115, limit=38 attempt to access beyond end of device loop3: rw=2049, want=116, limit=38 attempt to access beyond end of device loop3: rw=2049, want=117, limit=38 attempt to access beyond end of device loop3: rw=2049, want=130, limit=38 attempt to access beyond end of device loop3: rw=2049, want=131, limit=38 attempt to access beyond end of device loop3: rw=2049, want=132, limit=38 attempt to access beyond end of device loop3: rw=2049, want=133, limit=38 attempt to access beyond end of device loop3: rw=2049, want=149, limit=38 attempt to access beyond end of device loop3: rw=2049, want=4317, limit=38 attempt to access beyond end of device loop3: rw=2049, want=8413, limit=38 attempt to access beyond end of device loop3: rw=2049, want=12509, limit=38 attempt to access beyond end of device loop3: rw=2049, want=16605, limit=38 attempt to access beyond end of device loop3: rw=2049, want=20701, limit=38 attempt to access beyond end of device loop3: rw=2049, want=23205, limit=38 ip6t_rpfilter: unknown options BUG: sleeping function called from invalid context at kernel/locking/mutex.c:908 in_atomic(): 1, irqs_disabled(): 0, pid: 21773, name: blkid INFO: lockdep is turned off. Preemption disabled at: [] __do_softirq+0xf3/0x921 kernel/softirq.c:269 CPU: 0 PID: 21773 Comm: blkid Tainted: G W 4.19.100-syzkaller #0 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+0x197/0x210 lib/dump_stack.c:118 ___might_sleep.cold+0x1bd/0x1f6 kernel/sched/core.c:6192 __might_sleep+0x95/0x190 kernel/sched/core.c:6145 __mutex_lock_common kernel/locking/mutex.c:908 [inline] __mutex_lock+0xc8/0x1300 kernel/locking/mutex.c:1072 nla_parse: 15 callbacks suppressed netlink: 1 bytes leftover after parsing attributes in process `syz-executor.5'. mutex_lock_nested+0x16/0x20 kernel/locking/mutex.c:1087 tpk_write+0x5d/0x340 drivers/char/ttyprintk.c:123 resync_tnc+0x1b6/0x320 drivers/net/hamradio/6pack.c:522 call_timer_fn+0x18d/0x720 kernel/time/timer.c:1326 netlink: 1 bytes leftover after parsing attributes in process `syz-executor.5'. expire_timers kernel/time/timer.c:1363 [inline] __run_timers kernel/time/timer.c:1684 [inline] __run_timers kernel/time/timer.c:1652 [inline] run_timer_softirq+0x64f/0x16a0 kernel/time/timer.c:1697 __do_softirq+0x25c/0x921 kernel/softirq.c:292 invoke_softirq kernel/softirq.c:372 [inline] irq_exit+0x180/0x1d0 kernel/softirq.c:412 exiting_irq arch/x86/include/asm/apic.h:536 [inline] smp_apic_timer_interrupt+0x13b/0x550 arch/x86/kernel/apic/apic.c:1094 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:893 RIP: 0010:__might_sleep+0xe/0x190 kernel/sched/core.c:6132 Code: 6e 59 00 e9 e1 fe ff ff 48 c7 c7 00 90 e0 88 e8 d8 6e 59 00 e9 82 fe ff ff 0f 1f 00 48 b8 00 00 00 00 00 fc ff df 55 48 89 e5 <41> 56 41 89 d6 41 55 41 89 f5 41 54 49 89 fc 53 65 48 8b 1c 25 40 RSP: 0018:ffff88804be7f6e0 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13 RAX: dffffc0000000000 RBX: 00000000006000c0 RCX: 1ffffffff1278af8 RDX: 0000000000000000 RSI: 00000000000001a6 RDI: ffffffff88aa365a RBP: ffff88804be7f6e0 R08: ffff888098438140 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000200000 R13: ffff88812c31cdc0 R14: ffff88802fcd6500 R15: 00000000006000c0 slab_pre_alloc_hook mm/slab.h:422 [inline] slab_alloc mm/slab.c:3383 [inline] kmem_cache_alloc_trace+0x2c2/0x760 mm/slab.c:3623 kmalloc include/linux/slab.h:515 [inline] perf_event_mmap_event kernel/events/core.c:7326 [inline] perf_event_mmap+0x535/0xec0 kernel/events/core.c:7543 mmap_region+0x40d/0x1760 mm/mmap.c:1790 do_mmap+0x8e2/0x1080 mm/mmap.c:1530 do_mmap_pgoff include/linux/mm.h:2314 [inline] vm_mmap_pgoff+0x1c5/0x230 mm/util.c:357 vm_mmap+0x94/0xc0 mm/util.c:376 elf_map+0x196/0x2b0 fs/binfmt_elf.c:374 load_elf_interp fs/binfmt_elf.c:587 [inline] load_elf_binary+0x1dd0/0x53a0 fs/binfmt_elf.c:1087 search_binary_handler fs/exec.c:1653 [inline] search_binary_handler+0x179/0x570 fs/exec.c:1631 netlink: 1 bytes leftover after parsing attributes in process `syz-executor.5'. exec_binprm fs/exec.c:1695 [inline] __do_execve_file.isra.0+0x1227/0x2150 fs/exec.c:1819 do_execveat_common fs/exec.c:1866 [inline] do_execve fs/exec.c:1883 [inline] __do_sys_execve fs/exec.c:1964 [inline] __se_sys_execve fs/exec.c:1959 [inline] __x64_sys_execve+0x8f/0xc0 fs/exec.c:1959 do_syscall_64+0xfd/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f64663da207 Code: Bad RIP value. RSP: 002b:00007ffc4fc0def8 EFLAGS: 00000202 ORIG_RAX: 000000000000003b RAX: ffffffffffffffda RBX: 00000000ffffffff RCX: 00007f64663da207 RDX: 00000000016616f0 RSI: 00007ffc4fc0dff0 RDI: 00007ffc4fc0f000 RBP: 0000000000625500 R08: 00000000000059b4 R09: 00000000000059b4 R10: 0000000000000000 R11: 0000000000000202 R12: 00000000016616f0 R13: 0000000000000007 R14: 000000000146a030 R15: 0000000000000005 netlink: 1 bytes leftover after parsing attributes in process `syz-executor.5'. ip6t_rpfilter: unknown options caif:caif_disconnect_client(): nothing to disconnect attempt to access beyond end of device loop3: rw=1, want=4253, limit=38 attempt to access beyond end of device loop3: rw=1, want=5805, limit=38 attempt to access beyond end of device loop3: rw=2049, want=39, limit=38 buffer_io_error: 57 callbacks suppressed Buffer I/O error on dev loop3, logical block 38, lost async page write attempt to access beyond end of device loop3: rw=2049, want=40, limit=38 Buffer I/O error on dev loop3, logical block 39, lost async page write attempt to access beyond end of device loop3: rw=2049, want=41, limit=38 Buffer I/O error on dev loop3, logical block 40, lost async page write attempt to access beyond end of device loop3: rw=2049, want=78, limit=38 Buffer I/O error on dev loop3, logical block 77, lost async page write attempt to access beyond end of device loop3: rw=2049, want=79, limit=38 Buffer I/O error on dev loop3, logical block 78, lost async page write attempt to access beyond end of device loop3: rw=2049, want=80, limit=38 Buffer I/O error on dev loop3, logical block 79, lost async page write attempt to access beyond end of device loop3: rw=2049, want=81, limit=38 Buffer I/O error on dev loop3, logical block 80, lost async page write attempt to access beyond end of device loop3: rw=2049, want=114, limit=38 Buffer I/O error on dev loop3, logical block 113, lost async page write attempt to access beyond end of device loop3: rw=2049, want=115, limit=38 Buffer I/O error on dev loop3, logical block 114, lost async page write attempt to access beyond end of device loop3: rw=2049, want=116, limit=38 Buffer I/O error on dev loop3, logical block 115, lost async page write attempt to access beyond end of device loop3: rw=2049, want=117, limit=38 attempt to access beyond end of device loop3: rw=2049, want=130, limit=38 attempt to access beyond end of device loop3: rw=2049, want=131, limit=38 attempt to access beyond end of device loop3: rw=2049, want=132, limit=38 attempt to access beyond end of device loop3: rw=2049, want=133, limit=38 attempt to access beyond end of device loop3: rw=2049, want=157, limit=38 attempt to access beyond end of device loop3: rw=2049, want=9901, limit=38 attempt to access beyond end of device loop3: rw=2049, want=13997, limit=38 attempt to access beyond end of device loop3: rw=2049, want=18093, limit=38 attempt to access beyond end of device loop3: rw=2049, want=22189, limit=38 attempt to access beyond end of device loop3: rw=2049, want=26285, limit=38 attempt to access beyond end of device loop3: rw=2049, want=30381, limit=38 attempt to access beyond end of device loop3: rw=2049, want=32877, limit=38 attempt to access beyond end of device loop3: rw=524288, want=189, limit=38 attempt to access beyond end of device loop3: rw=0, want=165, limit=38 audit: type=1800 audit(2000001197.220:463): pid=21800 uid=0 auid=4294967295 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 op=collect_data cause=failed comm="syz-executor.3" name="bus" dev="loop3" ino=1111 res=0 attempt to access beyond end of device loop3: rw=0, want=165, limit=38 audit: type=1800 audit(2000001197.250:464): pid=21800 uid=0 auid=4294967295 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 op=collect_data cause=failed comm="syz-executor.3" name="bus" dev="loop3" ino=1111 res=0 attempt to access beyond end of device loop3: rw=2049, want=39, limit=38 attempt to access beyond end of device loop3: rw=2049, want=40, limit=38 attempt to access beyond end of device loop3: rw=2049, want=41, limit=38 attempt to access beyond end of device loop3: rw=2049, want=78, limit=38 attempt to access beyond end of device loop3: rw=2049, want=79, limit=38 attempt to access beyond end of device loop3: rw=2049, want=80, limit=38 attempt to access beyond end of device loop3: rw=2049, want=81, limit=38 attempt to access beyond end of device loop3: rw=2049, want=114, limit=38 attempt to access beyond end of device loop3: rw=2049, want=115, limit=38 attempt to access beyond end of device loop3: rw=2049, want=116, limit=38 attempt to access beyond end of device loop3: rw=2049, want=117, limit=38 attempt to access beyond end of device loop3: rw=2049, want=130, limit=38 attempt to access beyond end of device loop3: rw=2049, want=131, limit=38 attempt to access beyond end of device loop3: rw=2049, want=132, limit=38 attempt to access beyond end of device loop3: rw=2049, want=133, limit=38 attempt to access beyond end of device loop3: rw=2049, want=3557, limit=38 netlink: 1 bytes leftover after parsing attributes in process `syz-executor.5'. ip6t_rpfilter: unknown options netlink: 1 bytes leftover after parsing attributes in process `syz-executor.5'.