2023-02-03 18:57:13

by Sanan Hasanov

[permalink] [raw]
Subject: WARNING in send_hsr_supervision_frame

Good day, dear maintainers,

We found a bug using a modified kernel configuration file used by syzbot.

We enhanced the coverage of the configuration file using our tool, klocalizer.

Kernel Branch: 6.2.0-rc6-next-20230131
Kernel config:?https://drive.google.com/file/d/1mvxgbYKz5x6HQqwa_NUGDe0NxUVuZN4W/view?usp=sharing
Unfortunately, we do not have a reproducer yet.

Thank you!

Best regards,
Sanan Hasanov

ieee802154 phy0 wpan0: encryption failed: -22
ieee802154 phy1 wpan1: encryption failed: -22
------------[ cut here ]------------
HSR: Could not send supervision frame
WARNING: CPU: 7 PID: 19728 at net/hsr/hsr_device.c:294 send_hsr_supervision_frame+0x633/0x850
Modules linked in:
CPU: 7 PID: 19728 Comm: kworker/7:13 Not tainted 6.2.0-rc6-next-20230131+ #1
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.15.0-1 04/01/2014
Workqueue: events fill_page_cache_func
RIP: 0010:send_hsr_supervision_frame+0x633/0x850
Code: 03 31 ff 89 de e8 ed f6 0d f9 84 db 0f 85 f8 fe ff ff e8 00 fc 0d f9 48 c7 c7 e0 19 a6 89 c6 05 d3 e2 06 03 01 e8 dd d6 d4 f8 <0f> 0b e9 d9 fe ff ff e8 e1 fb 0d f9 bb 3c 00 00 00 ba 01 00 00 00
RSP: 0018:ffff88811a589c00 EFLAGS: 00010282
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000100
RDX: ffff88804e384280 RSI: ffffffff816e1977 RDI: ffffffff816d7cb1
RBP: ffff88811a589c40 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000101 R11: 0000000000000001 R12: ffff88811a589c70
R13: ffff888117075000 R14: 0000000000000000 R15: 0000000000000017
FS: 0000000000000000(0000) GS:ffff88811a580000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fdbbd596438 CR3: 0000000057318000 CR4: 0000000000350ee0
Call Trace:
<IRQ>
hsr_announce+0x122/0x390
call_timer_fn+0x1fa/0x840
__run_timers.part.0+0x6bf/0x950
run_timer_softirq+0xb7/0x1b0
__do_softirq+0x306/0xb22
__irq_exit_rcu+0x196/0x230
irq_exit_rcu+0xd/0x30
sysvec_apic_timer_interrupt+0xa5/0xc0
</IRQ>
<TASK>
asm_sysvec_apic_timer_interrupt+0x1f/0x30
RIP: 0010:_raw_spin_unlock_irq+0x52/0x90
Code: c7 c0 a0 4c 77 8a 48 ba 00 00 00 00 00 fc ff df 48 c1 e8 03 80 3c 10 00 75 38 48 83 3d 16 6e e9 01 00 74 25 fb 0f 1f 44 00 00 <bf> 01 00 00 00 e8 34 19 d0 f8 65 8b 05 e5 e8 75 77 85 c0 74 0c 4c
RSP: 0018:ffff888027787310 EFLAGS: 00000282
RAX: 1ffffffff14ee994 RBX: 0000000000000020 RCX: 1ffffffff1a9fcce
RDX: dffffc0000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffff888027787318 R08: 0000000000000001 R09: ffffffff8d4f64d7
R10: fffffbfff1a9ec9a R11: 0000000000000001 R12: ffff88810083a050
R13: ffff8880277878a0 R14: ffff8880277874d8 R15: 0000000000000000
shrink_lruvec+0xd19/0x2770
shrink_node+0x8f2/0x1ed0
do_try_to_free_pages+0x3ff/0x18c0
try_to_free_pages+0x348/0xa20
__alloc_pages_slowpath.constprop.0+0xa0c/0x2590
__alloc_pages+0x51c/0x6e0
alloc_pages+0x1a5/0x260
__get_free_pages+0x10/0x50
fill_page_cache_func+0xae/0x240
process_one_work+0xa2d/0x1940
worker_thread+0x674/0x10b0
kthread+0x306/0x3d0
ret_from_fork+0x2c/0x50
</TASK>
irq event stamp: 727444
hardirqs last enabled at (727454): [<ffffffff816d7284>] __up_console_sem+0xf4/0x180
hardirqs last disabled at (727463): [<ffffffff816d7269>] __up_console_sem+0xd9/0x180
softirqs last enabled at (725494): [<ffffffff81534006>] __irq_exit_rcu+0x196/0x230
softirqs last disabled at (726425): [<ffffffff81534006>] __irq_exit_rcu+0x196/0x230
---[ end trace 0000000000000000 ]---
ICMPv6: ndisc: ndisc_alloc_skb failed to allocate an skb
loop6: detected capacity change from 0 to 128
EXT4-fs (loop6): mounted filesystem 76b65be2-f6da-4727-8c75-0525a5b65a09 without journal. Quota mode: none.
ext4 filesystem being mounted at /syzkaller-testdir455853457/syzkaller.BkvIxk/371/mnt supports timestamps until 2038 (0x7fffffff)
----------------
Code disassembly (best guess):
0: c7 c0 a0 4c 77 8a mov $0x8a774ca0,%eax
6: 48 ba 00 00 00 00 00 movabs $0xdffffc0000000000,%rdx
d: fc ff df
10: 48 c1 e8 03 shr $0x3,%rax
14: 80 3c 10 00 cmpb $0x0,(%rax,%rdx,1)
18: 75 38 jne 0x52
1a: 48 83 3d 16 6e e9 01 cmpq $0x0,0x1e96e16(%rip) # 0x1e96e38
21: 00
22: 74 25 je 0x49
24: fb sti
25: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
* 2a: bf 01 00 00 00 mov $0x1,%edi <-- trapping instruction
2f: e8 34 19 d0 f8 call 0xf8d01968
34: 65 8b 05 e5 e8 75 77 mov %gs:0x7775e8e5(%rip),%eax # 0x7775e920
3b: 85 c0 test %eax,%eax
3d: 74 0c je 0x4b
3f: 4c rex.WR