divide error: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 20336 Comm: syz-executor.1 Not tainted 5.12.0-rc4-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:div_u64_rem include/linux/math64.h:28 [inline] RIP: 0010:div_u64 include/linux/math64.h:127 [inline] RIP: 0010:nft_limit_init+0x49f/0x5e0 net/netfilter/nft_limit.c:79 Code: 89 ee 45 31 ff 4c 89 ef 48 01 de 41 0f 92 c7 e8 37 b9 20 fa 4d 85 ff 0f 85 96 00 00 00 e8 e9 b2 20 fa 45 89 ed 4c 89 f0 31 d2 <49> f7 f5 49 89 c6 4c 0f af f3 e9 fa fd ff ff e8 cd b2 20 fa 48 8d RSP: 0018:ffffc9000347f168 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 0000000000000005 RCX: ffffc9000b25a000 RDX: 0000000000000000 RSI: ffffffff87534377 RDI: 0000000000000003 RBP: ffff888011983908 R08: 0000200000000000 R09: 0000000000000001 R10: ffffffff87534369 R11: 0000000000000000 R12: ffffc9000347f260 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 FS: 00007f564dfa1700(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000000052b490 CR3: 0000000012816000 CR4: 00000000001506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: nft_limit_pkts_init+0x23/0xd0 net/netfilter/nft_limit.c:154 nf_tables_newexpr net/netfilter/nf_tables_api.c:2726 [inline] nft_expr_init+0x145/0x2d0 net/netfilter/nf_tables_api.c:2764 nft_set_elem_expr_alloc+0x27/0x280 net/netfilter/nf_tables_api.c:5166 nf_tables_newset+0x1aa8/0x3110 net/netfilter/nf_tables_api.c:4347 nfnetlink_rcv_batch+0xa09/0x24b0 net/netfilter/nfnetlink.c:488 nfnetlink_rcv_skb_batch net/netfilter/nfnetlink.c:612 [inline] nfnetlink_rcv+0x3af/0x420 net/netfilter/nfnetlink.c:630 netlink_unicast_kernel net/netlink/af_netlink.c:1312 [inline] netlink_unicast+0x533/0x7d0 net/netlink/af_netlink.c:1338 netlink_sendmsg+0x856/0xd90 net/netlink/af_netlink.c:1927 sock_sendmsg_nosec net/socket.c:654 [inline] sock_sendmsg+0xcf/0x120 net/socket.c:674 ____sys_sendmsg+0x6e8/0x810 net/socket.c:2350 ___sys_sendmsg+0xf3/0x170 net/socket.c:2404 __sys_sendmsg+0xe5/0x1b0 net/socket.c:2433 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x466459 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f564dfa1188 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 000000000056bf60 RCX: 0000000000466459 RDX: 0000000000000000 RSI: 00000000200000c0 RDI: 0000000000000003 RBP: 00000000004bf9fb R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf60 R13: 00007ffc65a9f86f R14: 00007f564dfa1300 R15: 0000000000022000 Modules linked in: ---[ end trace f18d48c27f1863d8 ]--- RIP: 0010:div_u64_rem include/linux/math64.h:28 [inline] RIP: 0010:div_u64 include/linux/math64.h:127 [inline] RIP: 0010:nft_limit_init+0x49f/0x5e0 net/netfilter/nft_limit.c:79 Code: 89 ee 45 31 ff 4c 89 ef 48 01 de 41 0f 92 c7 e8 37 b9 20 fa 4d 85 ff 0f 85 96 00 00 00 e8 e9 b2 20 fa 45 89 ed 4c 89 f0 31 d2 <49> f7 f5 49 89 c6 4c 0f af f3 e9 fa fd ff ff e8 cd b2 20 fa 48 8d RSP: 0018:ffffc9000347f168 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 0000000000000005 RCX: ffffc9000b25a000 RDX: 0000000000000000 RSI: ffffffff87534377 RDI: 0000000000000003 RBP: ffff888011983908 R08: 0000200000000000 R09: 0000000000000001 R10: ffffffff87534369 R11: 0000000000000000 R12: ffffc9000347f260 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 FS: 00007f564dfa1700(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffc44cb6030 CR3: 0000000012816000 CR4: 00000000001506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400