------------[ cut here ]------------
Illegal XDP return value 4294967274, expect packet loss!
WARNING: CPU: 0 PID: 27277 at net/core/filter.c:5537 bpf_warn_invalid_xdp_action net/core/filter.c:5537 [inline]
WARNING: CPU: 0 PID: 27277 at net/core/filter.c:5537 bpf_warn_invalid_xdp_action+0x6f/0x80 net/core/filter.c:5533
Kernel panic - not syncing: panic_on_warn set ...
CPU: 0 PID: 27277 Comm: syz-executor.4 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023
Call Trace:
__dump_stack lib/dump_stack.c:77 [inline]
dump_stack+0x1fc/0x2ef lib/dump_stack.c:118
panic+0x26a/0x50e kernel/panic.c:186
__warn.cold+0x20/0x5a kernel/panic.c:541
report_bug+0x262/0x2b0 lib/bug.c:183
fixup_bug arch/x86/kernel/traps.c:178 [inline]
fixup_bug arch/x86/kernel/traps.c:173 [inline]
do_error_trap+0x1d7/0x310 arch/x86/kernel/traps.c:296
invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:1038
RIP: 0010:bpf_warn_invalid_xdp_action net/core/filter.c:5537 [inline]
RIP: 0010:bpf_warn_invalid_xdp_action+0x6f/0x80 net/core/filter.c:5533
Code: e0 4a 4d 89 41 83 fc 04 48 c7 c6 20 4b 4d 89 48 0f 46 ee e8 53 5c e3 fa 44 89 e2 48 c7 c7 60 4b 4d 89 48 89 ee e8 26 94 73 01 <0f> 0b 5b 5d 41 5c e9 36 5c e3 fa 66 0f 1f 44 00 00 41 54 55 89 fd
RSP: 0018:ffff8880ba0079d0 EFLAGS: 00010282
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000100 RSI: ffffffff814dff01 RDI: ffffed1017400f2c
RBP: ffffffff894d4ae0 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: 00000000ffffffea
R13: 0000000000000000 R14: 000000000000229a R15: ffff8880ba007ad0
netif_receive_generic_xdp+0xcab/0x1540 net/core/dev.c:4390
do_xdp_generic.part.0+0x80/0x1a0 net/core/dev.c:4439
do_xdp_generic net/core/dev.c:4808 [inline]
__netif_receive_skb_core+0xd00/0x3270 net/core/dev.c:4808
__netif_receive_skb_one_core+0xae/0x180 net/core/dev.c:4952
__netif_receive_skb+0x27/0x1c0 net/core/dev.c:5066
process_backlog+0x241/0x700 net/core/dev.c:5849
napi_poll net/core/dev.c:6280 [inline]
net_rx_action+0x4ac/0xfb0 net/core/dev.c:6346
__do_softirq+0x265/0x980 kernel/softirq.c:292
invoke_softirq kernel/softirq.c:372 [inline]
irq_exit+0x215/0x260 kernel/softirq.c:412
exiting_irq arch/x86/include/asm/apic.h:536 [inline]
smp_apic_timer_interrupt+0x136/0x550 arch/x86/kernel/apic/apic.c:1098
apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:894
RIP: 0010:orc_ip arch/x86/kernel/unwind_orc.c:26 [inline]
RIP: 0010:__orc_find+0x7c/0xf0 arch/x86/kernel/unwind_orc.c:48
Code: e8 3f 48 c1 fa 02 48 01 d0 48 d1 f8 48 8d 5c 85 00 48 89 d8 48 c1 e8 03 42 0f b6 14 38 48 89 d8 83 e0 07 83 c0 03 38 d0 7c 04 <84> d2 75 48 48 63 03 48 01 d8 48 39 c1 73 b0 4c 8d 63 fc 49 39 ec
RSP: 0018:ffff888047cb72f8 EFLAGS: 00000202 ORIG_RAX: ffffffffffffff13
RAX: 0000000000000007 RBX: ffffffff8b32d3a4 RCX: ffffffff81299b24
RDX: 0000000000000000 RSI: ffffffff8b9099e8 RDI: ffffffff8b32d3a4
RBP: ffffffff8b32d3a4 R08: 0000000000000000 R09: ffffffff8b9099e8
R10: ffff888047cb7587 R11: 0000000000074071 R12: ffffffff8b32d3a4
R13: ffffffff8b32d3a4 R14: ffffffff8b32d3a4 R15: dffffc0000000000
orc_find arch/x86/kernel/unwind_orc.c:159 [inline]
unwind_next_frame+0x339/0x1400 arch/x86/kernel/unwind_orc.c:422
__unwind_start+0x5b8/0x960 arch/x86/kernel/unwind_orc.c:667
unwind_start arch/x86/include/asm/unwind.h:60 [inline]
__save_stack_trace+0x72/0x190 arch/x86/kernel/stacktrace.c:43
save_stack mm/kasan/kasan.c:448 [inline]
set_track mm/kasan/kasan.c:460 [inline]
kasan_kmalloc+0xeb/0x160 mm/kasan/kasan.c:553
kmem_cache_alloc+0x122/0x370 mm/slab.c:3559
skb_clone+0x151/0x3d0 net/core/skbuff.c:1293
____bpf_clone_redirect net/core/filter.c:2079 [inline]
bpf_clone_redirect+0xaf/0x430 net/core/filter.c:2066
___bpf_prog_run+0x1bfa/0x4e80 kernel/bpf/core.c:1184
Kernel Offset: disabled
================================
WARNING: inconsistent lock state
4.19.211-syzkaller #0 Not tainted
--------------------------------
inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-R} usage.
syz-executor.4/27277 [HC0[0]:SC1[1]:HE0:SE0] takes:
0000000059c39187 ((fb_notifier_list).rwsem){+++?}, at: __blocking_notifier_call_chain kernel/notifier.c:316 [inline]
0000000059c39187 ((fb_notifier_list).rwsem){+++?}, at: __blocking_notifier_call_chain kernel/notifier.c:304 [inline]
0000000059c39187 ((fb_notifier_list).rwsem){+++?}, at: blocking_notifier_call_chain kernel/notifier.c:328 [inline]
0000000059c39187 ((fb_notifier_list).rwsem){+++?}, at: blocking_notifier_call_chain+0x6f/0xa0 kernel/notifier.c:325
{SOFTIRQ-ON-W} state was registered at:
down_write+0x34/0x90 kernel/locking/rwsem.c:70
blocking_notifier_chain_register+0x78/0x350 kernel/notifier.c:226
fb_console_init+0x1c/0x305 drivers/video/fbdev/core/fbcon.c:3432
fbmem_init+0x105/0x126 drivers/video/fbdev/core/fbmem.c:1932
do_one_initcall+0xf1/0x740 init/main.c:884
do_initcall_level init/main.c:952 [inline]
do_initcalls init/main.c:960 [inline]
do_basic_setup init/main.c:978 [inline]
kernel_init_freeable+0x9c5/0xab7 init/main.c:1145
kernel_init+0xd/0x1ba init/main.c:1062
ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415
irq event stamp: 799
hardirqs last enabled at (798): [] console_unlock+0xdf5/0x1110 kernel/printk/printk.c:2489
hardirqs last disabled at (799): [] trace_hardirqs_off_thunk+0x1a/0x1c
softirqs last enabled at (616): [] spin_unlock_bh include/linux/spinlock.h:374 [inline]
softirqs last enabled at (616): [] bpf_prog_alloc_id kernel/bpf/syscall.c:1081 [inline]
softirqs last enabled at (616): [] bpf_prog_load+0xdc0/0x1230 kernel/bpf/syscall.c:1458
softirqs last disabled at (767): [] invoke_softirq kernel/softirq.c:372 [inline]
softirqs last disabled at (767): [] irq_exit+0x215/0x260 kernel/softirq.c:412
other info that might help us debug this:
Possible unsafe locking scenario:
CPU0
----
lock((fb_notifier_list).rwsem);
lock((fb_notifier_list).rwsem);
*** DEADLOCK ***
2 locks held by syz-executor.4/27277:
#0: 0000000017583de6 (rcu_read_lock){....}, at: bpf_test_run+0x1dd/0x440 net/bpf/test_run.c:42
#1: 0000000017583de6 (rcu_read_lock){....}, at: __write_once_size include/linux/compiler.h:290 [inline]
#1: 0000000017583de6 (rcu_read_lock){....}, at: __skb_unlink include/linux/skbuff.h:1920 [inline]
#1: 0000000017583de6 (rcu_read_lock){....}, at: __skb_dequeue include/linux/skbuff.h:1936 [inline]
#1: 0000000017583de6 (rcu_read_lock){....}, at: process_backlog+0x1d0/0x700 net/core/dev.c:5847
stack backtrace:
CPU: 0 PID: 27277 Comm: syz-executor.4 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023
Call Trace:
__dump_stack lib/dump_stack.c:77 [inline]
dump_stack+0x1fc/0x2ef lib/dump_stack.c:118
print_usage_bug.cold+0x42e/0x570 kernel/locking/lockdep.c:2545
valid_state kernel/locking/lockdep.c:2558 [inline]
mark_lock_irq kernel/locking/lockdep.c:2752 [inline]
mark_lock+0xc70/0x1160 kernel/locking/lockdep.c:3132
mark_irqflags kernel/locking/lockdep.c:3002 [inline]
__lock_acquire+0x10ed/0x3ff0 kernel/locking/lockdep.c:3373
lock_acquire+0x170/0x3c0 kernel/locking/lockdep.c:3908
down_read+0x36/0x80 kernel/locking/rwsem.c:24
__blocking_notifier_call_chain kernel/notifier.c:316 [inline]
__blocking_notifier_call_chain kernel/notifier.c:304 [inline]
blocking_notifier_call_chain kernel/notifier.c:328 [inline]
blocking_notifier_call_chain+0x6f/0xa0 kernel/notifier.c:325
fb_blank+0xb5/0x1d0 drivers/video/fbdev/core/fbmem.c:1074
fbcon_blank+0x932/0xec0 drivers/video/fbdev/core/fbcon.c:2221
do_unblank_screen+0x241/0x610 drivers/tty/vt/vt.c:4294
panic+0x313/0x50e kernel/panic.c:239
__warn.cold+0x20/0x5a kernel/panic.c:541
report_bug+0x262/0x2b0 lib/bug.c:183
fixup_bug arch/x86/kernel/traps.c:178 [inline]
fixup_bug arch/x86/kernel/traps.c:173 [inline]
do_error_trap+0x1d7/0x310 arch/x86/kernel/traps.c:296
invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:1038
RIP: 0010:bpf_warn_invalid_xdp_action net/core/filter.c:5537 [inline]
RIP: 0010:bpf_warn_invalid_xdp_action+0x6f/0x80 net/core/filter.c:5533
Code: e0 4a 4d 89 41 83 fc 04 48 c7 c6 20 4b 4d 89 48 0f 46 ee e8 53 5c e3 fa 44 89 e2 48 c7 c7 60 4b 4d 89 48 89 ee e8 26 94 73 01 <0f> 0b 5b 5d 41 5c e9 36 5c e3 fa 66 0f 1f 44 00 00 41 54 55 89 fd
RSP: 0018:ffff8880ba0079d0 EFLAGS: 00010282
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000100 RSI: ffffffff814dff01 RDI: ffffed1017400f2c
RBP: ffffffff894d4ae0 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: 00000000ffffffea
R13: 0000000000000000 R14: 000000000000229a R15: ffff8880ba007ad0
netif_receive_generic_xdp+0xcab/0x1540 net/core/dev.c:4390
do_xdp_generic.part.0+0x80/0x1a0 net/core/dev.c:4439
do_xdp_generic net/core/dev.c:4808 [inline]
__netif_receive_skb_core+0xd00/0x3270 net/core/dev.c:4808
__netif_receive_skb_one_core+0xae/0x180 net/core/dev.c:4952
__netif_receive_skb+0x27/0x1c0 net/core/dev.c:5066
process_backlog+0x241/0x700 net/core/dev.c:5849
napi_poll net/core/dev.c:6280 [inline]
net_rx_action+0x4ac/0xfb0 net/core/dev.c:6346
__do_softirq+0x265/0x980 kernel/softirq.c:292
invoke_softirq kernel/softirq.c:372 [inline]
irq_exit+0x215/0x260 kernel/softirq.c:412
exiting_irq arch/x86/include/asm/apic.h:536 [inline]
smp_apic_timer_interrupt+0x136/0x550 arch/x86/kernel/apic/apic.c:1098
apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:894
RIP: 0010:orc_ip arch/x86/kernel/unwind_orc.c:26 [inline]
RIP: 0010:__orc_find+0x7c/0xf0 arch/x86/kernel/unwind_orc.c:48
Code: e8 3f 48 c1 fa 02 48 01 d0 48 d1 f8 48 8d 5c 85 00 48 89 d8 48 c1 e8 03 42 0f b6 14 38 48 89 d8 83 e0 07 83 c0 03 38 d0 7c 04 <84> d2 75 48 48 63 03 48 01 d8 48 39 c1 73 b0 4c 8d 63 fc 49 39 ec
RSP: 0018:ffff888047cb72f8 EFLAGS: 00000202 ORIG_RAX: ffffffffffffff13
RAX: 0000000000000007 RBX: ffffffff8b32d3a4 RCX: ffffffff81299b24
RDX: 0000000000000000 RSI: ffffffff8b9099e8 RDI: ffffffff8b32d3a4
RBP: ffffffff8b32d3a4 R08: 0000000000000000 R09: ffffffff8b9099e8
R10: ffff888047cb7587 R11: 0000000000074071 R12: ffffffff8b32d3a4
R13: ffffffff8b32d3a4 R14: ffffffff8b32d3a4 R15: dffffc0000000000
orc_find arch/x86/kernel/unwind_orc.c:159 [inline]
unwind_next_frame+0x339/0x1400 arch/x86/kernel/unwind_orc.c:422
__unwind_start+0x5b8/0x960 arch/x86/kernel/unwind_orc.c:667
unwind_start arch/x86/include/asm/unwind.h:60 [inline]
__save_stack_trace+0x72/0x190 arch/x86/kernel/stacktrace.c:43
save_stack mm/kasan/kasan.c:448 [inline]
set_track mm/kasan/kasan.c:460 [inline]
kasan_kmalloc+0xeb/0x160 mm/kasan/kasan.c:553
kmem_cache_alloc+0x122/0x370 mm/slab.c:3559
skb_clone+0x151/0x3d0 net/core/skbuff.c:1293
____bpf_clone_redirect net/core/filter.c:2079 [inline]
bpf_clone_redirect+0xaf/0x430 net/core/filter.c:2066
___bpf_prog_run+0x1bfa/0x4e80 kernel/bpf/core.c:1184
Rebooting in 86400 seconds..
----------------
Code disassembly (best guess):
0: e8 3f 48 c1 fa callq 0xfac14844
5: 02 48 01 add 0x1(%rax),%cl
8: d0 48 d1 rorb -0x2f(%rax)
b: f8 clc
c: 48 8d 5c 85 00 lea 0x0(%rbp,%rax,4),%rbx
11: 48 89 d8 mov %rbx,%rax
14: 48 c1 e8 03 shr $0x3,%rax
18: 42 0f b6 14 38 movzbl (%rax,%r15,1),%edx
1d: 48 89 d8 mov %rbx,%rax
20: 83 e0 07 and $0x7,%eax
23: 83 c0 03 add $0x3,%eax
26: 38 d0 cmp %dl,%al
28: 7c 04 jl 0x2e
* 2a: 84 d2 test %dl,%dl <-- trapping instruction
2c: 75 48 jne 0x76
2e: 48 63 03 movslq (%rbx),%rax
31: 48 01 d8 add %rbx,%rax
34: 48 39 c1 cmp %rax,%rcx
37: 73 b0 jae 0xffffffe9
39: 4c 8d 63 fc lea -0x4(%rbx),%r12
3d: 49 39 ec cmp %rbp,%r12