==================================================================
BUG: KASAN: null-ptr-deref in instrument_atomic_read include/linux/instrumented.h:71 [inline]
BUG: KASAN: null-ptr-deref in atomic64_read include/linux/atomic/atomic-instrumented.h:605 [inline]
BUG: KASAN: null-ptr-deref in flush_tlb_func+0x43/0x550 arch/x86/mm/tlb.c:736
Read of size 8 at addr 0000000000000329 by task syz-executor.4/2228
CPU: 1 PID: 2228 Comm: syz-executor.4 Not tainted 5.15.149-syzkaller-00490-g5d96939590c0 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x151/0x1b7 lib/dump_stack.c:106
__kasan_report mm/kasan/report.c:431 [inline]
kasan_report+0x16f/0x1c0 mm/kasan/report.c:444
kasan_check_range+0x293/0x2a0 mm/kasan/generic.c:189
__kasan_check_read+0x11/0x20 mm/kasan/shadow.c:31
instrument_atomic_read include/linux/instrumented.h:71 [inline]
atomic64_read include/linux/atomic/atomic-instrumented.h:605 [inline]
flush_tlb_func+0x43/0x550 arch/x86/mm/tlb.c:736
flush_smp_call_function_queue+0x222/0x6a0 kernel/smp.c:628
generic_smp_call_function_single_interrupt+0x13/0x20 kernel/smp.c:544
__sysvec_call_function_single+0x63/0x1b0 arch/x86/kernel/smp.c:248
sysvec_call_function_single+0x41/0xb0 arch/x86/kernel/smp.c:243
asm_sysvec_call_function_single+0x1b/0x20 arch/x86/include/asm/idtentry.h:646
RIP: 0010:preempt_count_add+0x158/0x1a0 kernel/sched/core.c:5626
Code: 87 80 e1 07 80 c1 03 38 c1 0f 8c f0 fe ff ff 48 c7 c7 80 7f 29 87 e8 47 1f 66 00 e9 df fe ff ff 48 c7 c1 80 7f 29 87 80 e1 07 <80> c1 03 38 c1 0f 8c f9 fe ff ff 48 c7 c7 80 7f 29 87 e8 21 1f 66
RSP: 0018:ffffc900001d06b0 EFLAGS: 00000246
RAX: 0000000000000004 RBX: 0000000000000001 RCX: ffffffff87297f00
RDX: dffffc0000000000 RSI: ffffffff858304c0 RDI: 0000000000000001
RBP: ffffc900001d06c8 R08: ffffc900001d0848 R09: 0000000000000031
R10: ffffc900001d0850 R11: dffffc0000000001 R12: ffff88811416e2c0
R13: ffffffff815f4150 R14: 0000000000000000 R15: dffffc0000000000
is_module_text_address+0x1a/0x140 kernel/module.c:4811
kernel_text_address kernel/extable.c:145 [inline]
__kernel_text_address+0x89/0x110 kernel/extable.c:105
unwind_get_return_address+0x4d/0x90 arch/x86/kernel/unwind_frame.c:19
arch_stack_walk+0xf3/0x140 arch/x86/kernel/stacktrace.c:26
stack_trace_save+0x113/0x1c0 kernel/stacktrace.c:122
kasan_save_stack mm/kasan/common.c:38 [inline]
kasan_set_track+0x4b/0x70 mm/kasan/common.c:45
kasan_set_free_info+0x23/0x40 mm/kasan/generic.c:370
____kasan_slab_free+0x126/0x160 mm/kasan/common.c:365
__kasan_slab_free+0x11/0x20 mm/kasan/common.c:373
kasan_slab_free include/linux/kasan.h:193 [inline]
slab_free_hook mm/slub.c:1723 [inline]
slab_free_freelist_hook+0xbd/0x190 mm/slub.c:1749
slab_free mm/slub.c:3519 [inline]
kmem_cache_free+0x116/0x2e0 mm/slub.c:3535
file_free_rcu+0x9f/0xb0 fs/file_table.c:50
rcu_do_batch+0x57a/0xc10 kernel/rcu/tree.c:2523
rcu_core+0x517/0x1020 kernel/rcu/tree.c:2763
rcu_core_si+0x9/0x10 kernel/rcu/tree.c:2776
__do_softirq+0x26d/0x5bf kernel/softirq.c:565
do_softirq+0xf6/0x150 kernel/softirq.c:452
__local_bh_enable_ip+0x75/0x80 kernel/softirq.c:379
__raw_spin_unlock_bh include/linux/spinlock_api_smp.h:176 [inline]
_raw_spin_unlock_bh+0x51/0x60 kernel/locking/spinlock.c:210
__sock_map_delete net/core/sock_map.c:426 [inline]
sock_map_delete_elem+0xcb/0x130 net/core/sock_map.c:448
bpf_prog_2c29ac5cdc6b1842+0x3a/0x5c4
bpf_dispatcher_nop_func include/linux/bpf.h:785 [inline]
__bpf_prog_run include/linux/filter.h:625 [inline]
bpf_prog_run include/linux/filter.h:632 [inline]
__bpf_trace_run kernel/trace/bpf_trace.c:1883 [inline]
bpf_trace_run2+0xec/0x210 kernel/trace/bpf_trace.c:1920
__bpf_trace_tlb_flush+0x23/0x30 include/trace/events/tlb.h:38
trace_tlb_flush include/trace/events/tlb.h:38 [inline]
switch_mm_irqs_off+0x616/0x9b0 arch/x86/mm/tlb.c:629
context_switch kernel/sched/core.c:5137 [inline]
__schedule+0xb2b/0x1590 kernel/sched/core.c:6512
preempt_schedule_irq+0xc7/0x140 kernel/sched/core.c:6916
irqentry_exit_cond_resched+0x2a/0x30 kernel/entry/common.c:392
irqentry_exit+0x30/0x40 kernel/entry/common.c:426
sysvec_apic_timer_interrupt+0x55/0xc0 arch/x86/kernel/apic/apic.c:1096
asm_sysvec_apic_timer_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:638
RIP: 0010:unwind_next_frame+0x6/0x700 arch/x86/kernel/unwind_frame.c:255
Code: 41 5f 5d c3 44 89 f1 80 e1 07 80 c1 03 38 c1 7c 99 4c 89 f7 e8 7b 76 7d 00 eb 8f 66 0f 1f 84 00 00 00 00 00 55 48 89 e5 41 57 <41> 56 41 55 41 54 53 48 83 ec 50 49 89 fe 48 ba 00 00 00 00 00 fc
RSP: 0018:ffffc90000dc6528 EFLAGS: 00000202
RAX: 0000000000000001 RBX: ffffc90000dc6540 RCX: 0000000000dc6501
RDX: dffffc0000000000 RSI: ffffffff840c2d1f RDI: ffffc90000dc6540
RBP: ffffc90000dc6530 R08: ffffc90000dc6628 R09: 0000000000000010
R10: ffffc90000dc6630 R11: dffffc0000000001 R12: ffff88811416e2c0
R13: ffffffff815f4150 R14: ffffc90000dc6620 R15: 0000000000000000
arch_stack_walk+0x10d/0x140 arch/x86/kernel/stacktrace.c:25
stack_trace_save+0x113/0x1c0 kernel/stacktrace.c:122
kasan_save_stack mm/kasan/common.c:38 [inline]
kasan_set_track+0x4b/0x70 mm/kasan/common.c:45
kasan_set_free_info+0x23/0x40 mm/kasan/generic.c:370
____kasan_slab_free+0x126/0x160 mm/kasan/common.c:365
__kasan_slab_free+0x11/0x20 mm/kasan/common.c:373
kasan_slab_free include/linux/kasan.h:193 [inline]
slab_free_hook mm/slub.c:1723 [inline]
slab_free_freelist_hook+0xbd/0x190 mm/slub.c:1749
slab_free mm/slub.c:3519 [inline]
kfree+0xc8/0x220 mm/slub.c:4579
kobject_uevent_env+0x33c/0x700 lib/kobject_uevent.c:626
kobject_uevent+0x1f/0x30 lib/kobject_uevent.c:642
rx_queue_add_kobject net/core/net-sysfs.c:1070 [inline]
net_rx_queue_update_kobjects+0x213/0x490 net/core/net-sysfs.c:1110
register_queue_kobjects net/core/net-sysfs.c:1767 [inline]
netdev_register_kobject+0x231/0x320 net/core/net-sysfs.c:2018
register_netdevice+0xde9/0x1390 net/core/dev.c:10361
veth_newlink+0x94f/0xe20 drivers/net/veth.c:1732
__rtnl_newlink net/core/rtnetlink.c:3501 [inline]
rtnl_newlink+0x1495/0x2050 net/core/rtnetlink.c:3549
rtnetlink_rcv_msg+0x951/0xc40 net/core/rtnetlink.c:5630
netlink_rcv_skb+0x1cf/0x410 net/netlink/af_netlink.c:2505
rtnetlink_rcv+0x1c/0x20 net/core/rtnetlink.c:5648
netlink_unicast_kernel net/netlink/af_netlink.c:1330 [inline]
netlink_unicast+0x8df/0xac0 net/netlink/af_netlink.c:1356
netlink_sendmsg+0xa0a/0xd20 net/netlink/af_netlink.c:1924
sock_sendmsg_nosec net/socket.c:704 [inline]
__sock_sendmsg net/socket.c:716 [inline]
__sys_sendto+0x564/0x720 net/socket.c:2058
__do_sys_sendto net/socket.c:2070 [inline]
__se_sys_sendto net/socket.c:2066 [inline]
__x64_sys_sendto+0xe5/0x100 net/socket.c:2066
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7fc28b530b43
Code: Unable to access opcode bytes at RIP 0x7fc28b530b19.
RSP: 002b:00007fff88eebef8 EFLAGS: 00000202 ORIG_RAX: 000000000000002c
RAX: ffffffffffffffda RBX: 00007fc28c185620 RCX: 00007fc28b530b43
RDX: 000000000000006c RSI: 00007fc28c185670 RDI: 0000000000000003
RBP: 0000000000000001 R08: 00007fff88eebf14 R09: 000000000000000c
R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000003
R13: 0000000000000000 R14: 00007fc28c185670 R15: 0000000000000000
==================================================================
general protection fault, probably for non-canonical address 0xdffffc0000000065: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000328-0x000000000000032f]
CPU: 1 PID: 2228 Comm: syz-executor.4 Tainted: G B 5.15.149-syzkaller-00490-g5d96939590c0 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
RIP: 0010:arch_atomic64_read arch/x86/include/asm/atomic64_64.h:22 [inline]
RIP: 0010:atomic64_read include/linux/atomic/atomic-instrumented.h:606 [inline]
RIP: 0010:flush_tlb_func+0x4a/0x550 arch/x86/mm/tlb.c:736
Code: 8b 35 fa 8a cd 7e 65 66 44 8b 25 01 8b cd 7e 49 8d 9e 28 03 00 00 48 89 df be 08 00 00 00 e8 ed 70 7c 00 48 89 d8 48 c1 e8 03 <42> 80 3c 38 00 74 08 48 89 df e8 f7 6e 7c 00 4c 8b 3b 66 44 89 65
RSP: 0018:ffffc900001d04e0 EFLAGS: 00010006
RAX: 0000000000000065 RBX: 0000000000000329 RCX: ffff88811416e2c0
RDX: 0000000080010105 RSI: 0000000000000096 RDI: 00000000ffffffff
RBP: ffffc900001d0550 R08: ffffffff81416f3b R09: 0000000000000003
R10: fffffbfff0e5244c R11: dffffc0000000001 R12: 1ffff1103ee20000
R13: ffff8881f7036580 R14: 0000000000000001 R15: dffffc0000000000
FS: 0000555556dac480(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ff243bc6250 CR3: 000000010f61b000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
flush_smp_call_function_queue+0x222/0x6a0 kernel/smp.c:628
generic_smp_call_function_single_interrupt+0x13/0x20 kernel/smp.c:544
__sysvec_call_function_single+0x63/0x1b0 arch/x86/kernel/smp.c:248
sysvec_call_function_single+0x41/0xb0 arch/x86/kernel/smp.c:243
asm_sysvec_call_function_single+0x1b/0x20 arch/x86/include/asm/idtentry.h:646
RIP: 0010:preempt_count_add+0x158/0x1a0 kernel/sched/core.c:5626
Code: 87 80 e1 07 80 c1 03 38 c1 0f 8c f0 fe ff ff 48 c7 c7 80 7f 29 87 e8 47 1f 66 00 e9 df fe ff ff 48 c7 c1 80 7f 29 87 80 e1 07 <80> c1 03 38 c1 0f 8c f9 fe ff ff 48 c7 c7 80 7f 29 87 e8 21 1f 66
RSP: 0018:ffffc900001d06b0 EFLAGS: 00000246
RAX: 0000000000000004 RBX: 0000000000000001 RCX: ffffffff87297f00
RDX: dffffc0000000000 RSI: ffffffff858304c0 RDI: 0000000000000001
RBP: ffffc900001d06c8 R08: ffffc900001d0848 R09: 0000000000000031
R10: ffffc900001d0850 R11: dffffc0000000001 R12: ffff88811416e2c0
R13: ffffffff815f4150 R14: 0000000000000000 R15: dffffc0000000000
is_module_text_address+0x1a/0x140 kernel/module.c:4811
kernel_text_address kernel/extable.c:145 [inline]
__kernel_text_address+0x89/0x110 kernel/extable.c:105
unwind_get_return_address+0x4d/0x90 arch/x86/kernel/unwind_frame.c:19
arch_stack_walk+0xf3/0x140 arch/x86/kernel/stacktrace.c:26
stack_trace_save+0x113/0x1c0 kernel/stacktrace.c:122
kasan_save_stack mm/kasan/common.c:38 [inline]
kasan_set_track+0x4b/0x70 mm/kasan/common.c:45
kasan_set_free_info+0x23/0x40 mm/kasan/generic.c:370
____kasan_slab_free+0x126/0x160 mm/kasan/common.c:365
__kasan_slab_free+0x11/0x20 mm/kasan/common.c:373
kasan_slab_free include/linux/kasan.h:193 [inline]
slab_free_hook mm/slub.c:1723 [inline]
slab_free_freelist_hook+0xbd/0x190 mm/slub.c:1749
slab_free mm/slub.c:3519 [inline]
kmem_cache_free+0x116/0x2e0 mm/slub.c:3535
file_free_rcu+0x9f/0xb0 fs/file_table.c:50
rcu_do_batch+0x57a/0xc10 kernel/rcu/tree.c:2523
rcu_core+0x517/0x1020 kernel/rcu/tree.c:2763
rcu_core_si+0x9/0x10 kernel/rcu/tree.c:2776
__do_softirq+0x26d/0x5bf kernel/softirq.c:565
do_softirq+0xf6/0x150 kernel/softirq.c:452
__local_bh_enable_ip+0x75/0x80 kernel/softirq.c:379
__raw_spin_unlock_bh include/linux/spinlock_api_smp.h:176 [inline]
_raw_spin_unlock_bh+0x51/0x60 kernel/locking/spinlock.c:210
__sock_map_delete net/core/sock_map.c:426 [inline]
sock_map_delete_elem+0xcb/0x130 net/core/sock_map.c:448
bpf_prog_2c29ac5cdc6b1842+0x3a/0x5c4
bpf_dispatcher_nop_func include/linux/bpf.h:785 [inline]
__bpf_prog_run include/linux/filter.h:625 [inline]
bpf_prog_run include/linux/filter.h:632 [inline]
__bpf_trace_run kernel/trace/bpf_trace.c:1883 [inline]
bpf_trace_run2+0xec/0x210 kernel/trace/bpf_trace.c:1920
__bpf_trace_tlb_flush+0x23/0x30 include/trace/events/tlb.h:38
trace_tlb_flush include/trace/events/tlb.h:38 [inline]
switch_mm_irqs_off+0x616/0x9b0 arch/x86/mm/tlb.c:629
context_switch kernel/sched/core.c:5137 [inline]
__schedule+0xb2b/0x1590 kernel/sched/core.c:6512
preempt_schedule_irq+0xc7/0x140 kernel/sched/core.c:6916
irqentry_exit_cond_resched+0x2a/0x30 kernel/entry/common.c:392
irqentry_exit+0x30/0x40 kernel/entry/common.c:426
sysvec_apic_timer_interrupt+0x55/0xc0 arch/x86/kernel/apic/apic.c:1096
asm_sysvec_apic_timer_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:638
RIP: 0010:unwind_next_frame+0x6/0x700 arch/x86/kernel/unwind_frame.c:255
Code: 41 5f 5d c3 44 89 f1 80 e1 07 80 c1 03 38 c1 7c 99 4c 89 f7 e8 7b 76 7d 00 eb 8f 66 0f 1f 84 00 00 00 00 00 55 48 89 e5 41 57 <41> 56 41 55 41 54 53 48 83 ec 50 49 89 fe 48 ba 00 00 00 00 00 fc
RSP: 0018:ffffc90000dc6528 EFLAGS: 00000202
RAX: 0000000000000001 RBX: ffffc90000dc6540 RCX: 0000000000dc6501
RDX: dffffc0000000000 RSI: ffffffff840c2d1f RDI: ffffc90000dc6540
RBP: ffffc90000dc6530 R08: ffffc90000dc6628 R09: 0000000000000010
R10: ffffc90000dc6630 R11: dffffc0000000001 R12: ffff88811416e2c0
R13: ffffffff815f4150 R14: ffffc90000dc6620 R15: 0000000000000000
arch_stack_walk+0x10d/0x140 arch/x86/kernel/stacktrace.c:25
stack_trace_save+0x113/0x1c0 kernel/stacktrace.c:122
kasan_save_stack mm/kasan/common.c:38 [inline]
kasan_set_track+0x4b/0x70 mm/kasan/common.c:45
kasan_set_free_info+0x23/0x40 mm/kasan/generic.c:370
____kasan_slab_free+0x126/0x160 mm/kasan/common.c:365
__kasan_slab_free+0x11/0x20 mm/kasan/common.c:373
kasan_slab_free include/linux/kasan.h:193 [inline]
slab_free_hook mm/slub.c:1723 [inline]
slab_free_freelist_hook+0xbd/0x190 mm/slub.c:1749
slab_free mm/slub.c:3519 [inline]
kfree+0xc8/0x220 mm/slub.c:4579
kobject_uevent_env+0x33c/0x700 lib/kobject_uevent.c:626
kobject_uevent+0x1f/0x30 lib/kobject_uevent.c:642
rx_queue_add_kobject net/core/net-sysfs.c:1070 [inline]
net_rx_queue_update_kobjects+0x213/0x490 net/core/net-sysfs.c:1110
register_queue_kobjects net/core/net-sysfs.c:1767 [inline]
netdev_register_kobject+0x231/0x320 net/core/net-sysfs.c:2018
register_netdevice+0xde9/0x1390 net/core/dev.c:10361
veth_newlink+0x94f/0xe20 drivers/net/veth.c:1732
__rtnl_newlink net/core/rtnetlink.c:3501 [inline]
rtnl_newlink+0x1495/0x2050 net/core/rtnetlink.c:3549
rtnetlink_rcv_msg+0x951/0xc40 net/core/rtnetlink.c:5630
netlink_rcv_skb+0x1cf/0x410 net/netlink/af_netlink.c:2505
rtnetlink_rcv+0x1c/0x20 net/core/rtnetlink.c:5648
netlink_unicast_kernel net/netlink/af_netlink.c:1330 [inline]
netlink_unicast+0x8df/0xac0 net/netlink/af_netlink.c:1356
netlink_sendmsg+0xa0a/0xd20 net/netlink/af_netlink.c:1924
sock_sendmsg_nosec net/socket.c:704 [inline]
__sock_sendmsg net/socket.c:716 [inline]
__sys_sendto+0x564/0x720 net/socket.c:2058
__do_sys_sendto net/socket.c:2070 [inline]
__se_sys_sendto net/socket.c:2066 [inline]
__x64_sys_sendto+0xe5/0x100 net/socket.c:2066
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7fc28b530b43
Code: Unable to access opcode bytes at RIP 0x7fc28b530b19.
RSP: 002b:00007fff88eebef8 EFLAGS: 00000202 ORIG_RAX: 000000000000002c
RAX: ffffffffffffffda RBX: 00007fc28c185620 RCX: 00007fc28b530b43
RDX: 000000000000006c RSI: 00007fc28c185670 RDI: 0000000000000003
RBP: 0000000000000001 R08: 00007fff88eebf14 R09: 000000000000000c
R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000003
R13: 0000000000000000 R14: 00007fc28c185670 R15: 0000000000000000
Modules linked in:
---[ end trace 14c984505ca8c8fd ]---
RIP: 0010:arch_atomic64_read arch/x86/include/asm/atomic64_64.h:22 [inline]
RIP: 0010:atomic64_read include/linux/atomic/atomic-instrumented.h:606 [inline]
RIP: 0010:flush_tlb_func+0x4a/0x550 arch/x86/mm/tlb.c:736
Code: 8b 35 fa 8a cd 7e 65 66 44 8b 25 01 8b cd 7e 49 8d 9e 28 03 00 00 48 89 df be 08 00 00 00 e8 ed 70 7c 00 48 89 d8 48 c1 e8 03 <42> 80 3c 38 00 74 08 48 89 df e8 f7 6e 7c 00 4c 8b 3b 66 44 89 65
RSP: 0018:ffffc900001d04e0 EFLAGS: 00010006
RAX: 0000000000000065 RBX: 0000000000000329 RCX: ffff88811416e2c0
RDX: 0000000080010105 RSI: 0000000000000096 RDI: 00000000ffffffff
RBP: ffffc900001d0550 R08: ffffffff81416f3b R09: 0000000000000003
R10: fffffbfff0e5244c R11: dffffc0000000001 R12: 1ffff1103ee20000
R13: ffff8881f7036580 R14: 0000000000000001 R15: dffffc0000000000
FS: 0000555556dac480(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ff243bc6250 CR3: 000000010f61b000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess), 1 bytes skipped:
0: 80 e1 07 and $0x7,%cl
3: 80 c1 03 add $0x3,%cl
6: 38 c1 cmp %al,%cl
8: 0f 8c f0 fe ff ff jl 0xfffffefe
e: 48 c7 c7 80 7f 29 87 mov $0xffffffff87297f80,%rdi
15: e8 47 1f 66 00 call 0x661f61
1a: e9 df fe ff ff jmp 0xfffffefe
1f: 48 c7 c1 80 7f 29 87 mov $0xffffffff87297f80,%rcx
26: 80 e1 07 and $0x7,%cl
* 29: 80 c1 03 add $0x3,%cl <-- trapping instruction
2c: 38 c1 cmp %al,%cl
2e: 0f 8c f9 fe ff ff jl 0xffffff2d
34: 48 c7 c7 80 7f 29 87 mov $0xffffffff87297f80,%rdi
3b: e8 .byte 0xe8
3c: 21 1f and %ebx,(%rdi)
3e: 66 data16