WARNING in restore_regulatory_settings

22 views
Skip to first unread message

syzbot

unread,
Jan 6, 2020, 4:29:10 AM1/6/20
to syzkaller...@googlegroups.com
Hello,

syzbot found the following crash on:

HEAD commit: 3d40d711 Linux 4.19.93
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1797c149e00000
kernel config: https://syzkaller.appspot.com/x/.config?x=f02ca1f135b0c3c5
dashboard link: https://syzkaller.appspot.com/bug?extid=020e1505881d59e912a3
compiler: gcc (GCC) 9.0.0 20181231 (experimental)

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

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

------------[ cut here ]------------
Unexpected user alpha2:
WARNING: CPU: 1 PID: 23366 at net/wireless/reg.c:416 is_user_regdom_saved
net/wireless/reg.c:416 [inline]
WARNING: CPU: 1 PID: 23366 at net/wireless/reg.c:416 restore_alpha2
net/wireless/reg.c:3087 [inline]
WARNING: CPU: 1 PID: 23366 at net/wireless/reg.c:416
restore_regulatory_settings+0x22d/0xfd0 net/wireless/reg.c:3179
Kernel panic - not syncing: panic_on_warn set ...

CPU: 1 PID: 23366 Comm: kworker/1:0 Not tainted 4.19.93-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
Google 01/01/2011
Workqueue: events_power_efficient crda_timeout_work
Call Trace:
__dump_stack lib/dump_stack.c:77 [inline]
dump_stack+0x197/0x210 lib/dump_stack.c:118
panic+0x26a/0x50e kernel/panic.c:186
__warn.cold+0x20/0x53 kernel/panic.c:541
report_bug+0x263/0x2b0 lib/bug.c:186
fixup_bug arch/x86/kernel/traps.c:178 [inline]
fixup_bug arch/x86/kernel/traps.c:173 [inline]
do_error_trap+0x204/0x360 arch/x86/kernel/traps.c:296
do_invalid_op+0x1b/0x20 arch/x86/kernel/traps.c:316
invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:1037
RIP: 0010:is_user_regdom_saved net/wireless/reg.c:416 [inline]
RIP: 0010:restore_alpha2 net/wireless/reg.c:3087 [inline]
RIP: 0010:restore_regulatory_settings+0x22d/0xfd0 net/wireless/reg.c:3179
Code: 44 89 f6 e8 a5 31 8e fa 45 84 f6 0f 85 80 07 00 00 e8 57 30 8e fa 41
0f be d5 41 0f be f4 48 c7 c7 c0 76 60 88 e8 a1 be 61 fa <0f> 0b e8 3c 30
8e fa 48 8b 1d f5 29 dd 02 48 b8 00 00 00 00 00 fc
RSP: 0018:ffff888050fbfc28 EFLAGS: 00010282
RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff8155bc26 RDI: ffffed100a1f7f77
RBP: ffff888050fbfd20 R08: ffff88805b0a8480 R09: ffffed1015d25079
R10: ffffed1015d25078 R11: ffff8880ae9283c7 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: ffff8880ae92ba40
crda_timeout_work+0x1f/0x30 net/wireless/reg.c:513
process_one_work+0x989/0x1750 kernel/workqueue.c:2153
worker_thread+0x98/0xe40 kernel/workqueue.c:2296
kthread+0x354/0x420 kernel/kthread.c:246
ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415
Kernel Offset: disabled
Rebooting in 86400 seconds..


---
This bug 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 bug report. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

syzbot

unread,
Jan 6, 2020, 5:02:10 AM1/6/20
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following crash on:

HEAD commit: 3d40d711 Linux 4.19.93
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=17168f51e00000
kernel config: https://syzkaller.appspot.com/x/.config?x=f02ca1f135b0c3c5
dashboard link: https://syzkaller.appspot.com/bug?extid=020e1505881d59e912a3
compiler: gcc (GCC) 9.0.0 20181231 (experimental)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=11631149e00000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=10dbfd25e00000

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

------------[ cut here ]------------
Unexpected user alpha2:
WARNING: CPU: 0 PID: 5 at net/wireless/reg.c:416 is_user_regdom_saved
net/wireless/reg.c:416 [inline]
WARNING: CPU: 0 PID: 5 at net/wireless/reg.c:416 restore_alpha2
net/wireless/reg.c:3087 [inline]
WARNING: CPU: 0 PID: 5 at net/wireless/reg.c:416
restore_regulatory_settings+0x22d/0xfd0 net/wireless/reg.c:3179
Kernel panic - not syncing: panic_on_warn set ...

CPU: 0 PID: 5 Comm: kworker/0:0 Not tainted 4.19.93-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
Google 01/01/2011
Workqueue: events_power_efficient crda_timeout_work
Call Trace:
__dump_stack lib/dump_stack.c:77 [inline]
dump_stack+0x197/0x210 lib/dump_stack.c:118
panic+0x26a/0x50e kernel/panic.c:186
__warn.cold+0x20/0x53 kernel/panic.c:541
report_bug+0x263/0x2b0 lib/bug.c:186
fixup_bug arch/x86/kernel/traps.c:178 [inline]
fixup_bug arch/x86/kernel/traps.c:173 [inline]
do_error_trap+0x204/0x360 arch/x86/kernel/traps.c:296
do_invalid_op+0x1b/0x20 arch/x86/kernel/traps.c:316
invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:1037
RIP: 0010:is_user_regdom_saved net/wireless/reg.c:416 [inline]
RIP: 0010:restore_alpha2 net/wireless/reg.c:3087 [inline]
RIP: 0010:restore_regulatory_settings+0x22d/0xfd0 net/wireless/reg.c:3179
Code: 44 89 f6 e8 a5 31 8e fa 45 84 f6 0f 85 80 07 00 00 e8 57 30 8e fa 41
0f be d5 41 0f be f4 48 c7 c7 c0 76 60 88 e8 a1 be 61 fa <0f> 0b e8 3c 30
8e fa 48 8b 1d f5 29 dd 02 48 b8 00 00 00 00 00 fc
RSP: 0018:ffff8880aa347c28 EFLAGS: 00010282
RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff8155bc26 RDI: ffffed1015468f77
RBP: ffff8880aa347d20 R08: ffff8880aa32c140 R09: ffffed1015d03ee3
R10: ffffed1015d03ee2 R11: ffff8880ae81f717 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: ffff8880ae82ba40

syzbot

unread,
Jan 7, 2020, 8:01:10 AM1/7/20
to syzkaller...@googlegroups.com
Hello,

syzbot found the following crash on:

HEAD commit: 84f5ad46 Linux 4.14.162
git tree: linux-4.14.y
console output: https://syzkaller.appspot.com/x/log.txt?x=10939869e00000
kernel config: https://syzkaller.appspot.com/x/.config?x=67bcc84091a71c98
dashboard link: https://syzkaller.appspot.com/bug?extid=905fbeff6ea089202396
compiler: gcc (GCC) 9.0.0 20181231 (experimental)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1122e656e00000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=159e4949e00000

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

Unexpected user alpha2:
------------[ cut here ]------------
WARNING: CPU: 1 PID: 18 at net/wireless/reg.c:414 is_user_regdom_saved
net/wireless/reg.c:414 [inline]
WARNING: CPU: 1 PID: 18 at net/wireless/reg.c:414 restore_alpha2
net/wireless/reg.c:2559 [inline]
WARNING: CPU: 1 PID: 18 at net/wireless/reg.c:414
restore_regulatory_settings.cold+0x40/0x47 net/wireless/reg.c:2651
Kernel panic - not syncing: panic_on_warn set ...

CPU: 1 PID: 18 Comm: kworker/1:0 Not tainted 4.14.162-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
Google 01/01/2011
Workqueue: events_power_efficient crda_timeout_work
Call Trace:
__dump_stack lib/dump_stack.c:17 [inline]
dump_stack+0x142/0x197 lib/dump_stack.c:58
panic+0x1f9/0x42d kernel/panic.c:183
__warn.cold+0x2f/0x2f kernel/panic.c:547
report_bug+0x216/0x254 lib/bug.c:186
fixup_bug arch/x86/kernel/traps.c:177 [inline]
fixup_bug arch/x86/kernel/traps.c:172 [inline]
do_error_trap+0x1bb/0x310 arch/x86/kernel/traps.c:295
do_invalid_op+0x1b/0x20 arch/x86/kernel/traps.c:314
invalid_op+0x1b/0x40 arch/x86/entry/entry_64.S:963
RIP: 0010:is_user_regdom_saved net/wireless/reg.c:414 [inline]
RIP: 0010:restore_alpha2 net/wireless/reg.c:2559 [inline]
RIP: 0010:restore_regulatory_settings.cold+0x40/0x47 net/wireless/reg.c:2651
RSP: 0018:ffff8880a9d77c70 EFLAGS: 00010286
RAX: 000000000000001a RBX: 0000000000000001 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff86cc44e0 RDI: ffffed10153aef84
RBP: ffff8880a9d77d28 R08: 000000000000001a R09: ffff8880a9d64db0
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: ffff8880aed2acc0
crda_timeout_work+0x1f/0x30 net/wireless/reg.c:541
process_one_work+0x863/0x1600 kernel/workqueue.c:2114
worker_thread+0x5d9/0x1050 kernel/workqueue.c:2248
kthread+0x319/0x430 kernel/kthread.c:232
ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:404
Kernel Offset: disabled
Rebooting in 86400 seconds..


---
This bug 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 bug report. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
syzbot can test patches for this bug, for details see:
https://goo.gl/tpsmEJ#testing-patches

syzbot

unread,
Oct 9, 2020, 4:23:11 PM10/9/20
to syzkaller...@googlegroups.com
syzbot suspects this issue was fixed by commit:

commit 02015d244d9c043414509afa370f8f7d471e14b5
Author: Johannes Berg <johann...@intel.com>
Date: Wed Aug 19 08:46:48 2020 +0000

cfg80211: regulatory: reject invalid hints

bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=13c0474f900000
start commit: b850307b Linux 4.14.184
git tree: linux-4.14.y
kernel config: https://syzkaller.appspot.com/x/.config?x=ddc0f08dd6b981c5
dashboard link: https://syzkaller.appspot.com/bug?extid=905fbeff6ea089202396
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=12b6b7cf100000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=140f8ed0900000

If the result looks correct, please mark the issue as fixed by replying with:

#syz fix: cfg80211: regulatory: reject invalid hints

For information about bisection process see: https://goo.gl/tpsmEJ#bisection
Reply all
Reply to author
Forward
0 new messages