[v5.15] WARNING in __ieee80211_beacon_get

8 views
Skip to first unread message

syzbot

unread,
Mar 8, 2023, 5:50:53 PM3/8/23
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: d9b4a0c83a2d Linux 5.15.98
git tree: linux-5.15.y
console output: https://syzkaller.appspot.com/x/log.txt?x=129e9a70c80000
kernel config: https://syzkaller.appspot.com/x/.config?x=2f8d9515b973b23b
dashboard link: https://syzkaller.appspot.com/bug?extid=7d73d99525d1ff7752ef
compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/037cabbd3313/disk-d9b4a0c8.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/9967e551eb34/vmlinux-d9b4a0c8.xz
kernel image: https://storage.googleapis.com/syzbot-assets/a050c7a4fd99/bzImage-d9b4a0c8.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+7d73d9...@syzkaller.appspotmail.com

------------[ cut here ]------------
WARNING: CPU: 0 PID: 14474 at net/mac80211/tx.c:4849 __ieee80211_beacon_get+0x177c/0x1fc0 net/mac80211/tx.c:5073
Modules linked in:
CPU: 0 PID: 14474 Comm: syz-executor.0 Not tainted 5.15.98-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023
RIP: 0010:__ieee80211_beacon_update_cntdwn net/mac80211/tx.c:4849 [inline]
RIP: 0010:__ieee80211_beacon_get+0x177c/0x1fc0 net/mac80211/tx.c:5073
Code: ff e8 18 8b cd f7 0f 0b e9 ff fa ff ff e8 0c 8b cd f7 0f 0b e9 ef fe ff ff e8 00 8b cd f7 0f 0b e9 38 ee ff ff e8 f4 8a cd f7 <0f> 0b e9 c3 f0 ff ff 44 89 f1 80 e1 07 80 c1 03 38 c1 0f 8c b8 ea
RSP: 0018:ffffc90000007840 EFLAGS: 00010246
RAX: ffffffff89b2c99c RBX: 0000000000000000 RCX: ffff88801ed5d700
RDX: 0000000080000102 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90000007a70 R08: ffffffff89b2ba59 R09: ffffffff89b2b485
R10: 0000000000000003 R11: ffff88801ed5d700 R12: 1ffff92000000f18
R13: ffff88801ed3cc80 R14: ffff88801ed3e298 R15: dffffc0000000000
FS: 00007fa5ff81f700(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020096030 CR3: 000000001a8c5000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<IRQ>
ieee80211_beacon_get_tim+0xb7/0x860 net/mac80211/tx.c:5192
ieee80211_beacon_get include/net/mac80211.h:4981 [inline]
mac80211_hwsim_beacon_tx+0xe2/0x880 drivers/net/wireless/mac80211_hwsim.c:1812
__iterate_interfaces+0x21e/0x490 net/mac80211/util.c:793
ieee80211_iterate_active_interfaces_atomic+0x94/0x110 net/mac80211/util.c:829
mac80211_hwsim_beacon+0xa7/0x180 drivers/net/wireless/mac80211_hwsim.c:1865
__run_hrtimer kernel/time/hrtimer.c:1685 [inline]
__hrtimer_run_queues+0x5ff/0xe80 kernel/time/hrtimer.c:1749
hrtimer_run_softirq+0x196/0x2c0 kernel/time/hrtimer.c:1766
__do_softirq+0x3d1/0x9fe kernel/softirq.c:558
invoke_softirq kernel/softirq.c:432 [inline]
__irq_exit_rcu+0x155/0x240 kernel/softirq.c:636
irq_exit_rcu+0x5/0x20 kernel/softirq.c:648
sysvec_apic_timer_interrupt+0x91/0xb0 arch/x86/kernel/apic/apic.c:1097
</IRQ>
<TASK>
asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:638
RIP: 0010:check_preemption_disabled+0x19/0x110 lib/smp_processor_id.c:14
Code: cc 48 c7 c7 a0 b8 d8 8a 48 c7 c6 e0 b8 d8 8a eb 00 41 57 41 56 41 54 53 48 83 ec 10 65 48 8b 04 25 28 00 00 00 48 89 44 24 08 <65> 8b 1d 00 28 e7 75 65 8b 05 71 82 e7 75 a9 ff ff ff 7f 74 22 65
RSP: 0018:ffffc90002f0f3e0 EFLAGS: 00000282
RAX: 482332a363653c00 RBX: 1ffff920005e1e88 RCX: 0000000080000001
RDX: 0000000000000000 RSI: ffffffff8ad8b8e0 RDI: ffffffff8ad8b8a0
RBP: ffffc90002f0f4d0 R08: dffffc0000000000 R09: fffffbfff1bc70fe
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff920005e1ea8
R13: dffffc0000000000 R14: dffffc0000000000 R15: 0000000000000000
rcu_lockdep_current_cpu_online+0x35/0x130 kernel/rcu/tree.c:1169
rcu_read_lock_held_common kernel/rcu/update.c:112 [inline]
rcu_read_lock_sched_held+0x74/0x130 kernel/rcu/update.c:123
trace_lock_release include/trace/events/lock.h:58 [inline]
lock_release+0xc9/0x9c0 kernel/locking/lockdep.c:5633
__mutex_unlock_slowpath+0xde/0x750 kernel/locking/mutex.c:851
__unix_dgram_recvmsg+0xcbd/0x1260 net/unix/af_unix.c:2392
____sys_recvmsg+0x286/0x530
___sys_recvmsg+0x1ec/0x690 net/socket.c:2673
do_recvmmsg+0x36f/0x8f0 net/socket.c:2767
__sys_recvmmsg net/socket.c:2846 [inline]
__do_sys_recvmmsg net/socket.c:2869 [inline]
__se_sys_recvmmsg net/socket.c:2862 [inline]
__x64_sys_recvmmsg+0x195/0x240 net/socket.c:2862
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:0x7fa6012ef0f9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 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 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fa5ff81f168 EFLAGS: 00000246 ORIG_RAX: 000000000000012b
RAX: ffffffffffffffda RBX: 00007fa60140f120 RCX: 00007fa6012ef0f9
RDX: 0000000000010106 RSI: 00000000200000c0 RDI: 0000000000000004
RBP: 00007fa60134aae9 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000002 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffe412ff6bf R14: 00007fa5ff81f300 R15: 0000000000022000
</TASK>
----------------
Code disassembly (best guess):
0: cc int3
1: 48 c7 c7 a0 b8 d8 8a mov $0xffffffff8ad8b8a0,%rdi
8: 48 c7 c6 e0 b8 d8 8a mov $0xffffffff8ad8b8e0,%rsi
f: eb 00 jmp 0x11
11: 41 57 push %r15
13: 41 56 push %r14
15: 41 54 push %r12
17: 53 push %rbx
18: 48 83 ec 10 sub $0x10,%rsp
1c: 65 48 8b 04 25 28 00 mov %gs:0x28,%rax
23: 00 00
25: 48 89 44 24 08 mov %rax,0x8(%rsp)
* 2a: 65 8b 1d 00 28 e7 75 mov %gs:0x75e72800(%rip),%ebx # 0x75e72831 <-- trapping instruction
31: 65 8b 05 71 82 e7 75 mov %gs:0x75e78271(%rip),%eax # 0x75e782a9
38: a9 ff ff ff 7f test $0x7fffffff,%eax
3d: 74 22 je 0x61
3f: 65 gs


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

syzbot

unread,
Mar 9, 2023, 12:26:43 AM3/9/23
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: d9b4a0c83a2d Linux 5.15.98
git tree: linux-5.15.y
console output: https://syzkaller.appspot.com/x/log.txt?x=170736dac80000
kernel config: https://syzkaller.appspot.com/x/.config?x=b57cfa804330c3b7
dashboard link: https://syzkaller.appspot.com/bug?extid=7d73d99525d1ff7752ef
compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2
userspace arch: arm64
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=119ae66cc80000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=11d88e6cc80000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/8088989394e3/disk-d9b4a0c8.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/2651d6753959/vmlinux-d9b4a0c8.xz
kernel image: https://storage.googleapis.com/syzbot-assets/f3fa3f994f9a/Image-d9b4a0c8.gz.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+7d73d9...@syzkaller.appspotmail.com

------------[ cut here ]------------
WARNING: CPU: 0 PID: 4413 at net/mac80211/tx.c:4849 __ieee80211_beacon_update_cntdwn net/mac80211/tx.c:4849 [inline]
WARNING: CPU: 0 PID: 4413 at net/mac80211/tx.c:4849 __ieee80211_beacon_get+0x137c/0x1a94 net/mac80211/tx.c:5073
Modules linked in:
CPU: 0 PID: 4413 Comm: syz-executor208 Not tainted 5.15.98-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023
pstate: 00400005 (nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : __ieee80211_beacon_update_cntdwn net/mac80211/tx.c:4849 [inline]
pc : __ieee80211_beacon_get+0x137c/0x1a94 net/mac80211/tx.c:5073
lr : __ieee80211_beacon_update_cntdwn net/mac80211/tx.c:4849 [inline]
lr : __ieee80211_beacon_get+0x137c/0x1a94 net/mac80211/tx.c:5073
sp : ffff8000080077e0
x29: ffff8000080079e0 x28: ffff800008007860 x27: ffff0000d0e08dc0
x26: ffff0000d6e6cc80 x25: ffff700001000f0c x24: ffff800008007950
x23: dfff800000000000 x22: ffffffffffffe9e8 x21: 0000000000000000
x20: ffff0000c202f800 x19: ffff0000d6e6e298 x18: 0000000000000100
x17: ff808000113a6680 x16: ffff8000084c28f4 x15: ffff8000113a6680
x14: 0000000000000007 x13: ffffffffffffffff x12: 0000000000000100
x11: ff808000113a77b8 x10: 0000000000000000 x9 : ffff8000113a77b8
x8 : ffff0000d6613580 x7 : ffff8000113b0894 x6 : 0000000000000000
x5 : 0000000000000000 x4 : 0000000000000000 x3 : 0000000000000002
x2 : 0000000000000008 x1 : 0000000000000000 x0 : 0000000000000000
Call trace:
__ieee80211_beacon_update_cntdwn net/mac80211/tx.c:4849 [inline]
__ieee80211_beacon_get+0x137c/0x1a94 net/mac80211/tx.c:5073
ieee80211_beacon_get_tim+0xb8/0x764 net/mac80211/tx.c:5192
ieee80211_beacon_get include/net/mac80211.h:4981 [inline]
mac80211_hwsim_beacon_tx+0x110/0x794 drivers/net/wireless/mac80211_hwsim.c:1812
__iterate_interfaces+0x204/0x460 net/mac80211/util.c:793
ieee80211_iterate_active_interfaces_atomic+0xb4/0x140 net/mac80211/util.c:829
mac80211_hwsim_beacon+0xa0/0x184 drivers/net/wireless/mac80211_hwsim.c:1865
__run_hrtimer kernel/time/hrtimer.c:1685 [inline]
__hrtimer_run_queues+0x558/0xf90 kernel/time/hrtimer.c:1749
hrtimer_run_softirq+0x158/0x220 kernel/time/hrtimer.c:1766
__do_softirq+0x398/0xf48 kernel/softirq.c:558
do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline]
invoke_softirq kernel/softirq.c:439 [inline]
__irq_exit_rcu+0x28c/0x534 kernel/softirq.c:636
irq_exit+0x14/0x88 kernel/softirq.c:660
handle_domain_irq+0xf4/0x178 kernel/irq/irqdesc.c:710
gic_handle_irq+0x78/0x1c8 drivers/irqchip/irq-gic-v3.c:757
call_on_irq_stack+0x2c/0x54 <unknown>:899
do_interrupt_handler+0x74/0x94 arch/arm64/kernel/entry-common.c:267
el1_interrupt+0x30/0x58 arch/arm64/kernel/entry-common.c:442
el1h_64_irq_handler+0x18/0x24 arch/arm64/kernel/entry-common.c:458
el1h_64_irq+0x78/0x7c <unknown>:580
__might_sleep+0xc/0xf0 kernel/sched/core.c:9563
__mutex_lock kernel/locking/mutex.c:729 [inline]
mutex_lock_nested+0xa4/0xf8 kernel/locking/mutex.c:743
__unix_dgram_recvmsg+0x1ec/0xe64 net/unix/af_unix.c:2308
unix_dgram_recvmsg+0xd4/0xec net/unix/af_unix.c:2409
____sys_recvmsg+0x234/0x720
___sys_recvmsg+0x240/0x2cc net/socket.c:2673
do_recvmmsg+0x310/0x9a4 net/socket.c:2767
__sys_recvmmsg net/socket.c:2846 [inline]
__do_sys_recvmmsg net/socket.c:2869 [inline]
__se_sys_recvmmsg net/socket.c:2862 [inline]
__arm64_sys_recvmmsg+0x180/0x23c net/socket.c:2862
__invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52
el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181
el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:596
el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614
el0t_64_sync+0x1a0/0x1a4 <unknown>:584
irq event stamp: 41811
hardirqs last enabled at (41810): [<ffff800011a4e658>] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:160 [inline]
hardirqs last enabled at (41810): [<ffff800011a4e658>] _raw_spin_unlock_irqrestore+0xac/0x158 kernel/locking/spinlock.c:194
hardirqs last disabled at (41811): [<ffff800011976650>] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:387
softirqs last enabled at (37372): [<ffff800008020e1c>] softirq_handle_end kernel/softirq.c:401 [inline]
softirqs last enabled at (37372): [<ffff800008020e1c>] __do_softirq+0xcac/0xf48 kernel/softirq.c:587
softirqs last disabled at (41781): [<ffff8000081b8624>] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline]
softirqs last disabled at (41781): [<ffff8000081b8624>] invoke_softirq kernel/softirq.c:439 [inline]
softirqs last disabled at (41781): [<ffff8000081b8624>] __irq_exit_rcu+0x28c/0x534 kernel/softirq.c:636
---[ end trace a5cc15e76a66ebd5 ]---

syzbot

unread,
Mar 13, 2023, 12:41:54 AM3/13/23
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 1cc3fcf63192 Linux 6.1.18
git tree: linux-6.1.y
console output: https://syzkaller.appspot.com/x/log.txt?x=11512ec6c80000
kernel config: https://syzkaller.appspot.com/x/.config?x=ac04a15f4a80e9d0
dashboard link: https://syzkaller.appspot.com/bug?extid=dfd1fd46a1960ad9c6ec
compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/9dee98921f5a/disk-1cc3fcf6.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/713a648558bd/vmlinux-1cc3fcf6.xz
kernel image: https://storage.googleapis.com/syzbot-assets/6b9e84fcf1df/bzImage-1cc3fcf6.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+dfd1fd...@syzkaller.appspotmail.com

------------[ cut here ]------------
WARNING: CPU: 0 PID: 29615 at net/mac80211/tx.c:4926 __ieee80211_beacon_get+0x19f6/0x2030 net/mac80211/tx.c:5245
Modules linked in:
CPU: 0 PID: 29615 Comm: syz-executor.0 Not tainted 6.1.18-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023
RIP: 0010:__ieee80211_beacon_update_cntdwn net/mac80211/tx.c:4926 [inline]
RIP: 0010:__ieee80211_beacon_get+0x19f6/0x2030 net/mac80211/tx.c:5245
Code: ff e8 ce cc 78 f7 0f 0b e9 67 ff ff ff e8 c2 cc 78 f7 0f 0b e9 04 e9 ff ff e8 b6 cc 78 f7 0f 0b e9 10 ee ff ff e8 aa cc 78 f7 <0f> 0b e9 8a f1 ff ff 44 89 f1 80 e1 07 80 c1 03 38 c1 0f 8c 8c e9
RSP: 0018:ffffc90000007840 EFLAGS: 00010246
RAX: ffffffff8a119476 RBX: 0000000000000000 RCX: ffff888096d8ba80
RDX: 0000000080000100 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90000007a30 R08: ffffffff8a1185fa R09: ffffffff8a117e2c
R10: 0000000000000003 R11: ffff888096d8ba80 R12: 1ffff92000000f1c
R13: dffffc0000000000 R14: ffff88807e27a248 R15: ffffc90000007aa0
FS: 00007f78f8160700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000202d8030 CR3: 000000003b3bd000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<IRQ>
ieee80211_beacon_get_tim+0xb1/0x5a0 net/mac80211/tx.c:5332
ieee80211_beacon_get include/net/mac80211.h:5243 [inline]
mac80211_hwsim_beacon_tx+0x1d2/0xaa0 drivers/net/wireless/mac80211_hwsim.c:2086
__iterate_interfaces+0x21e/0x4b0 net/mac80211/util.c:788
ieee80211_iterate_active_interfaces_atomic+0xaf/0x140 net/mac80211/util.c:824
mac80211_hwsim_beacon+0xd0/0x1e0 drivers/net/wireless/mac80211_hwsim.c:2142
__run_hrtimer kernel/time/hrtimer.c:1685 [inline]
__hrtimer_run_queues+0x670/0x1020 kernel/time/hrtimer.c:1749
hrtimer_run_softirq+0x196/0x2c0 kernel/time/hrtimer.c:1766
__do_softirq+0x30d/0xb1b kernel/softirq.c:571
invoke_softirq kernel/softirq.c:445 [inline]
__irq_exit_rcu+0x155/0x240 kernel/softirq.c:650
irq_exit_rcu+0x5/0x20 kernel/softirq.c:662
sysvec_apic_timer_interrupt+0x91/0xb0 arch/x86/kernel/apic/apic.c:1107
</IRQ>
<TASK>
asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:649
RIP: 0010:____sys_recvmsg+0x251/0x530
Code: bb 90 00 00 00 49 03 1f 48 89 d8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df 80 3c 08 00 74 08 48 89 df e8 32 f2 6a f9 4c 8b 3b <4c> 89 f0 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df 80 3c 08 00 48
RSP: 0018:ffffc900036ef920 EFLAGS: 00000246
RAX: 1ffffffff17db9d6 RBX: ffffffff8bedceb0 RCX: dffffc0000000000
RDX: ffffc90005121000 RSI: 000000000003ffff RDI: 0000000000040000
RBP: ffffc900036efa90 R08: ffffffff8875d273 R09: ffffc900036ef9a0
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000002
R13: ffffc900036efd20 R14: ffffc900036efd40 R15: ffffffff894612f0
___sys_recvmsg net/socket.c:2743 [inline]
do_recvmmsg+0x46d/0xad0 net/socket.c:2837
__sys_recvmmsg net/socket.c:2916 [inline]
__do_sys_recvmmsg net/socket.c:2939 [inline]
__se_sys_recvmmsg net/socket.c:2932 [inline]
__x64_sys_recvmmsg+0x195/0x240 net/socket.c:2932
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+0x63/0xcd
RIP: 0033:0x7f78f748c0f9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 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 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f78f8160168 EFLAGS: 00000246 ORIG_RAX: 000000000000012b
RAX: ffffffffffffffda RBX: 00007f78f75ac050 RCX: 00007f78f748c0f9
RDX: 0000000000010106 RSI: 00000000200000c0 RDI: 0000000000000005
RBP: 00007f78f74e7ae9 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000002 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffe444d41bf R14: 00007f78f8160300 R15: 0000000000022000
</TASK>
----------------
Code disassembly (best guess):
0: bb 90 00 00 00 mov $0x90,%ebx
5: 49 03 1f add (%r15),%rbx
8: 48 89 d8 mov %rbx,%rax
b: 48 c1 e8 03 shr $0x3,%rax
f: 48 b9 00 00 00 00 00 movabs $0xdffffc0000000000,%rcx
16: fc ff df
19: 80 3c 08 00 cmpb $0x0,(%rax,%rcx,1)
1d: 74 08 je 0x27
1f: 48 89 df mov %rbx,%rdi
22: e8 32 f2 6a f9 callq 0xf96af259
27: 4c 8b 3b mov (%rbx),%r15
* 2a: 4c 89 f0 mov %r14,%rax <-- trapping instruction
2d: 48 c1 e8 03 shr $0x3,%rax
31: 48 b9 00 00 00 00 00 movabs $0xdffffc0000000000,%rcx
38: fc ff df
3b: 80 3c 08 00 cmpb $0x0,(%rax,%rcx,1)
3f: 48 rex.W

syzbot

unread,
Mar 19, 2023, 11:44:41 AM3/19/23
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 7eaef76fbc46 Linux 6.1.20
git tree: linux-6.1.y
console output: https://syzkaller.appspot.com/x/log.txt?x=12d88e9ac80000
kernel config: https://syzkaller.appspot.com/x/.config?x=28c36fe4d02f8c88
dashboard link: https://syzkaller.appspot.com/bug?extid=dfd1fd46a1960ad9c6ec
compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1664406ac80000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1243a2a1c80000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/610a00ba4375/disk-7eaef76f.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/57c1310f9a30/vmlinux-7eaef76f.xz
kernel image: https://storage.googleapis.com/syzbot-assets/81999f717d3b/bzImage-7eaef76f.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+dfd1fd...@syzkaller.appspotmail.com

------------[ cut here ]------------
WARNING: CPU: 0 PID: 3961 at net/mac80211/tx.c:4926 __ieee80211_beacon_get+0x19f6/0x2030 net/mac80211/tx.c:5245
Modules linked in:
CPU: 0 PID: 3961 Comm: syz-executor418 Not tainted 6.1.20-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023
RIP: 0010:__ieee80211_beacon_update_cntdwn net/mac80211/tx.c:4926 [inline]
RIP: 0010:__ieee80211_beacon_get+0x19f6/0x2030 net/mac80211/tx.c:5245
Code: ff e8 ce 26 78 f7 0f 0b e9 67 ff ff ff e8 c2 26 78 f7 0f 0b e9 04 e9 ff ff e8 b6 26 78 f7 0f 0b e9 10 ee ff ff e8 aa 26 78 f7 <0f> 0b e9 8a f1 ff ff 44 89 f1 80 e1 07 80 c1 03 38 c1 0f 8c 8c e9
RSP: 0018:ffffc90000007840 EFLAGS: 00010246
RAX: ffffffff8a123a76 RBX: 0000000000000000 RCX: ffff8880762357c0
RDX: 0000000080000103 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90000007a30 R08: ffffffff8a122bfa R09: ffffffff8a12242c
R10: 0000000000000003 R11: ffff8880762357c0 R12: 1ffff92000000f1c
R13: dffffc0000000000 R14: ffff888022fba248 R15: ffffc90000007aa0
FS: 00007fb37520f700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000203e6030 CR3: 000000001c8cd000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<IRQ>
ieee80211_beacon_get_tim+0xb1/0x5a0 net/mac80211/tx.c:5332
ieee80211_beacon_get include/net/mac80211.h:5243 [inline]
mac80211_hwsim_beacon_tx+0x1d2/0xaa0 drivers/net/wireless/mac80211_hwsim.c:2086
__iterate_interfaces+0x21e/0x4b0 net/mac80211/util.c:788
ieee80211_iterate_active_interfaces_atomic+0xaf/0x140 net/mac80211/util.c:824
mac80211_hwsim_beacon+0xd0/0x1e0 drivers/net/wireless/mac80211_hwsim.c:2142
__run_hrtimer kernel/time/hrtimer.c:1685 [inline]
__hrtimer_run_queues+0x670/0x1020 kernel/time/hrtimer.c:1749
hrtimer_run_softirq+0x196/0x2c0 kernel/time/hrtimer.c:1766
__do_softirq+0x30d/0xb1b kernel/softirq.c:571
invoke_softirq kernel/softirq.c:445 [inline]
__irq_exit_rcu+0x155/0x240 kernel/softirq.c:650
irq_exit_rcu+0x5/0x20 kernel/softirq.c:662
sysvec_apic_timer_interrupt+0x91/0xb0 arch/x86/kernel/apic/apic.c:1107
</IRQ>
<TASK>
asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:649
RIP: 0010:smp_call_function_many_cond+0x1e20/0x33d0
Code: ff ff e8 63 07 0b 00 0f 0b e9 49 e6 ff ff e8 57 07 0b 00 e8 42 f4 0a 09 4d 85 ff 0f 84 34 ff ff ff e8 44 07 0b 00 fb 4d 89 e7 <44> 8b 64 24 40 83 bc 24 e8 00 00 00 00 0f 84 18 12 00 00 44 39 64
RSP: 0018:ffffc9000447ee80 EFLAGS: 00000293
RAX: ffffffff817f59dc RBX: 0000000000000000 RCX: ffff8880762357c0
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc9000447f260 R08: ffffffff817f58f4 R09: fffffbfff204d833
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff8880b983ae80
R13: dffffc0000000000 R14: 0000000000000046 R15: ffff8880b983ae80
on_each_cpu_cond_mask+0x3b/0x80 kernel/smp.c:1155
__flush_tlb_multi arch/x86/include/asm/paravirt.h:87 [inline]
flush_tlb_multi arch/x86/mm/tlb.c:924 [inline]
flush_tlb_mm_range+0x353/0x590 arch/x86/mm/tlb.c:1010
flush_tlb_page arch/x86/include/asm/tlbflush.h:240 [inline]
ptep_clear_flush+0x112/0x150 mm/pgtable-generic.c:98
wp_page_copy+0xafe/0x1710 mm/memory.c:3180
handle_pte_fault mm/memory.c:4968 [inline]
__handle_mm_fault mm/memory.c:5092 [inline]
handle_mm_fault+0x251b/0x5140 mm/memory.c:5213
do_user_addr_fault arch/x86/mm/fault.c:1428 [inline]
handle_page_fault arch/x86/mm/fault.c:1519 [inline]
exc_page_fault+0x655/0x860 arch/x86/mm/fault.c:1575
asm_exc_page_fault+0x22/0x30 arch/x86/include/asm/idtentry.h:570
RIP: 0010:__put_user_nocheck_4+0x3/0x11
Code: 00 00 48 39 d9 73 54 0f 01 cb 66 89 01 31 c9 0f 01 ca c3 0f 1f 44 00 00 48 bb fd ef ff ff ff 7f 00 00 48 39 d9 73 34 0f 01 cb <89> 01 31 c9 0f 01 ca c3 66 0f 1f 44 00 00 48 bb f9 ef ff ff ff 7f
RSP: 0018:ffffc9000447f918 EFLAGS: 00050202
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00000000203e6030
RDX: ffff8880762357c0 RSI: 0000000000000002 RDI: 00000000ffffffff
RBP: ffffc9000447fa90 R08: ffffffff8876738d R09: fffff5200088fedd
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000002
R13: 00000000203e6000 R14: 0000000000000000 R15: ffffffff8946b8e0
____sys_recvmsg+0x363/0x530 net/socket.c:2714
___sys_recvmsg net/socket.c:2743 [inline]
do_recvmmsg+0x46d/0xad0 net/socket.c:2837
__sys_recvmmsg net/socket.c:2916 [inline]
__do_sys_recvmmsg net/socket.c:2939 [inline]
__se_sys_recvmmsg net/socket.c:2932 [inline]
__x64_sys_recvmmsg+0x195/0x240 net/socket.c:2932
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+0x63/0xcd
RIP: 0033:0x7fb37527ff29
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 a1 15 00 00 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 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fb37520f308 EFLAGS: 00000246 ORIG_RAX: 000000000000012b
RAX: ffffffffffffffda RBX: 00007fb375308438 RCX: 00007fb37527ff29
RDX: 0000000000010106 RSI: 00000000200000c0 RDI: 0000000000000003
RBP: 00007fb375308430 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000002 R11: 0000000000000246 R12: 00007fb37530843c
R13: 00007fb3752d51c4 R14: 0031313230386c6e R15: 0000000000022000
</TASK>
----------------
Code disassembly (best guess), 2 bytes skipped:
0: e8 63 07 0b 00 callq 0xb0768
5: 0f 0b ud2
7: e9 49 e6 ff ff jmpq 0xffffe655
c: e8 57 07 0b 00 callq 0xb0768
11: e8 42 f4 0a 09 callq 0x90af458
16: 4d 85 ff test %r15,%r15
19: 0f 84 34 ff ff ff je 0xffffff53
1f: e8 44 07 0b 00 callq 0xb0768
24: fb sti
25: 4d 89 e7 mov %r12,%r15
* 28: 44 8b 64 24 40 mov 0x40(%rsp),%r12d <-- trapping instruction
2d: 83 bc 24 e8 00 00 00 cmpl $0x0,0xe8(%rsp)
34: 00
35: 0f 84 18 12 00 00 je 0x1253
3b: 44 rex.R
3c: 39 .byte 0x39
3d: 64 fs

Reply all
Reply to author
Forward
0 new messages