================================================================================ UBSAN: shift-out-of-bounds in net/mac80211/cfg.c:1798:30 shift exponent -1 is negative CPU: 1 PID: 5418 Comm: syz-executor.0 Not tainted 6.4.0-syzkaller-01647-g6e2332e0ab53-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x125/0x1b0 lib/dump_stack.c:106 ubsan_epilogue lib/ubsan.c:217 [inline] __ubsan_handle_shift_out_of_bounds+0x2a6/0x480 lib/ubsan.c:387 sta_link_apply_parameters.cold+0x1a/0x1f net/mac80211/cfg.c:1798 sta_apply_parameters+0x87d/0x16b0 net/mac80211/cfg.c:1988 ieee80211_add_station+0x3ca/0x610 net/mac80211/cfg.c:2070 rdev_add_station net/wireless/rdev-ops.h:201 [inline] nl80211_new_station+0x13e8/0x1af0 net/wireless/nl80211.c:7564 genl_family_rcv_msg_doit.isra.0+0x1ef/0x2d0 net/netlink/genetlink.c:968 genl_family_rcv_msg net/netlink/genetlink.c:1048 [inline] genl_rcv_msg+0x559/0x800 net/netlink/genetlink.c:1065 netlink_rcv_skb+0x16b/0x440 net/netlink/af_netlink.c:2546 genl_rcv+0x28/0x40 net/netlink/genetlink.c:1076 netlink_unicast_kernel net/netlink/af_netlink.c:1339 [inline] netlink_unicast+0x539/0x800 net/netlink/af_netlink.c:1365 netlink_sendmsg+0x93c/0xe30 net/netlink/af_netlink.c:1913 sock_sendmsg_nosec net/socket.c:725 [inline] sock_sendmsg+0xd9/0x180 net/socket.c:748 ____sys_sendmsg+0x69f/0x950 net/socket.c:2504 ___sys_sendmsg+0x135/0x1d0 net/socket.c:2558 __sys_sendmsg+0x117/0x1e0 net/socket.c:2587 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f084287cae9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f084350a0c8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007f084299bf80 RCX: 00007f084287cae9 RDX: 0000000000000000 RSI: 00000000200004c0 RDI: 0000000000000004 RBP: 00007f08428c847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f084299bf80 R15: 00007ffe7b058668 ================================================================================