------------[ cut here ]------------
WARNING: CPU: 0 PID: 7313 at net/ipv4/route.c:1274 kfree_skb include/linux/skbuff.h:1220 [inline]
WARNING: CPU: 0 PID: 7313 at net/ipv4/route.c:1274 ip_rt_bug+0x25/0xf0 net/ipv4/route.c:1273
Modules linked in:
CPU: 0 PID: 7313 Comm: kworker/u4:12 Not tainted 6.1.138-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/19/2025
Workqueue: bat_events batadv_nc_worker
RIP: 0010:ip_rt_bug+0x25/0xf0 net/ipv4/route.c:1274
Code: 41 ff ff ff 90 41 57 41 56 41 55 41 54 53 48 89 d3 e8 af 74 eb f8 66 90 e8 a8 74 eb f8 48 89 df be 01 00 00 00 e8 9b b1 7e ff <0f> 0b 31 c0 5b 41 5c 41 5d 41 5e 41 5f c3 49 bd 00 00 00 00 00 fc
RSP: 0018:ffffc90000007638 EFLAGS: 00010292
RAX: 9434760a4b912400 RBX: ffff888066f6b000 RCX: 9434760a4b912400
RDX: dffffc0000000000 RSI: ffffffff8a6bfe00 RDI: ffffffff8abf0da0
RBP: ffff888057318100 R08: dffffc0000000000 R09: fffffbfff211705b
R10: fffffbfff211705b R11: 1ffffffff211705a R12: ffff888057318130
R13: ffff888066f6b058 R14: ffff888066f6b000 R15: ffff888144ee0d00
FS: 0000000000000000(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f62e4800000 CR3: 0000000023946000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<IRQ>
dst_output include/net/dst.h:453 [inline]
ip_local_out net/ipv4/ip_output.c:126 [inline]
ip_send_skb+0x129/0x1c0 net/ipv4/ip_output.c:1599
__icmp_send+0xfbb/0x1320 net/ipv4/icmp.c:785
ipv4_send_dest_unreach net/ipv4/route.c:1254 [inline]
ipv4_link_failure+0x65c/0xa10 net/ipv4/route.c:1261
dst_link_failure include/net/dst.h:423 [inline]
arp_error_report+0x10e/0x160 net/ipv4/arp.c:296
neigh_invalidate+0x22c/0x450 net/core/neighbour.c:1059
neigh_timer_handler+0x911/0x1080 net/core/neighbour.c:1146
call_timer_fn+0x1a0/0x670 kernel/time/timer.c:1504
expire_timers kernel/time/timer.c:1549 [inline]
__run_timers+0x525/0x7c0 kernel/time/timer.c:1820
run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1833
handle_softirqs+0x2a1/0x920 kernel/softirq.c:578
__do_softirq kernel/softirq.c:612 [inline]
invoke_softirq kernel/softirq.c:452 [inline]
__irq_exit_rcu+0x12f/0x220 kernel/softirq.c:661
irq_exit_rcu+0x5/0x20 kernel/softirq.c:673
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1118 [inline]
sysvec_apic_timer_interrupt+0xa0/0xc0 arch/x86/kernel/apic/apic.c:1118
</IRQ>
<TASK>
asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:691
RIP: 0010:finish_task_switch+0x26a/0x8f0 kernel/sched/core.c:5123
Code: 0f 84 3b 01 00 00 48 85 db 0f 85 5a 01 00 00 0f 1f 44 00 00 4c 8b 75 d0 4c 89 e7 e8 80 dd c0 08 e8 eb c1 2e 00 fb 4c 8b 65 c0 <49> 8d bc 24 f8 15 00 00 48 89 f8 48 c1 e8 03 42 0f b6 04 28 84 c0
RSP: 0018:ffffc900051cf738 EFLAGS: 00000282
RAX: 9434760a4b912400 RBX: 0000000000000000 RCX: 9434760a4b912400
RDX: dffffc0000000000 RSI: ffffffff8a6bfe00 RDI: ffffffff8abf0da0
RBP: ffffc900051cf790 R08: dffffc0000000000 R09: fffffbfff2117064
R10: fffffbfff2117064 R11: 1ffffffff2117063 R12: ffff88807e738000
R13: dffffc0000000000 R14: ffff88805ffe9dc0 R15: ffff8880b8e3b510
context_switch kernel/sched/core.c:5247 [inline]
__schedule+0x10f1/0x40d0 kernel/sched/core.c:6561
preempt_schedule_irq+0xb1/0x150 kernel/sched/core.c:6873
irqentry_exit+0x63/0x70 kernel/entry/common.c:439
asm_sysvec_reschedule_ipi+0x16/0x20 arch/x86/include/asm/idtentry.h:696
RIP: 0010:should_resched arch/x86/include/asm/preempt.h:103 [inline]
RIP: 0010:__local_bh_enable_ip+0x132/0x1b0 kernel/softirq.c:410
Code: 8a e8 a2 fb c0 08 65 66 8b 05 8a 44 b5 7e 66 85 c0 75 54 bf 01 00 00 00 e8 fb 4e 09 00 e8 46 d4 38 00 fb 65 8b 05 f6 13 b4 7e <85> c0 75 05 e8 45 25 b2 ff 48 c7 04 24 0e 36 e0 45 4b c7 04 37 00
RSP: 0018:ffffc900051cfaa0 EFLAGS: 00000286
RAX: 0000000080000000 RBX: 0000000000000201 RCX: 9434760a4b912400
RDX: dffffc0000000000 RSI: ffffffff8a6bfe00 RDI: ffffffff8abf0da0
RBP: ffffc900051cfb38 R08: dffffc0000000000 R09: fffffbfff2117064
R10: fffffbfff2117064 R11: 1ffffffff2117063 R12: ffffffff89d9a796
R13: dffffc0000000000 R14: dffffc0000000000 R15: 1ffff92000a39f54
spin_unlock_bh include/linux/spinlock.h:396 [inline]
batadv_nc_purge_paths+0x316/0x3b0 net/batman-adv/network-coding.c:471
batadv_nc_worker+0x365/0x600 net/batman-adv/network-coding.c:722
process_one_work+0x898/0x1160 kernel/workqueue.c:2292
worker_thread+0xaa2/0x1250 kernel/workqueue.c:2439
kthread+0x29d/0x330 kernel/kthread.c:376
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
</TASK>
----------------
Code disassembly (best guess):
0: 0f 84 3b 01 00 00 je 0x141
6: 48 85 db test %rbx,%rbx
9: 0f 85 5a 01 00 00 jne 0x169
f: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
14: 4c 8b 75 d0 mov -0x30(%rbp),%r14
18: 4c 89 e7 mov %r12,%rdi
1b: e8 80 dd c0 08 call 0x8c0dda0
20: e8 eb c1 2e 00 call 0x2ec210
25: fb sti
26: 4c 8b 65 c0 mov -0x40(%rbp),%r12
* 2a: 49 8d bc 24 f8 15 00 lea 0x15f8(%r12),%rdi <-- trapping instruction
31: 00
32: 48 89 f8 mov %rdi,%rax
35: 48 c1 e8 03 shr $0x3,%rax
39: 42 0f b6 04 28 movzbl (%rax,%r13,1),%eax
3e: 84 c0 test %al,%al