syzbot


WARNING in process_one_work

Status: fixed on 2021/07/14 12:04
Reported-by: syzbot+1c9719d507a11f353114@syzkaller.appspotmail.com
Fix commit: e8e9d2968a9d batman-adv: Avoid WARN_ON timing related checks
First crash: 1821d, last: 1256d
Fix bisection: fixed by (bisect log) :
commit e8e9d2968a9d08bf5c683afca182f1537edebf8d
Author: Sven Eckelmann <sven@narfation.org>
Date: Tue May 18 19:00:27 2021 +0000

  batman-adv: Avoid WARN_ON timing related checks

  
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 WARNING in process_one_work C inconclusive 7 1618d 1854d 0/1 upstream: reported C repro on 2019/10/25 11:01
linux-5.15 WARNING in process_one_work syz 115 9h57m 614d 0/3 upstream: reported syz repro on 2023/03/18 12:00
linux-4.19 WARNING in process_one_work (2) 1 809d 809d 0/1 auto-obsoleted due to no activity on 2023/01/02 02:07
Fix bisection attempts (15)
Created Duration User Patch Repo Result
2021/07/14 02:56 4h06m bisect fix linux-4.19.y OK (1) job log
2021/06/14 02:26 29m bisect fix linux-4.19.y OK (0) job log log
2021/04/25 05:40 29m bisect fix linux-4.19.y OK (0) job log log
2021/03/26 02:02 23m bisect fix linux-4.19.y OK (0) job log log
2021/02/24 00:58 25m bisect fix linux-4.19.y OK (0) job log log
2021/01/23 17:21 24m bisect fix linux-4.19.y OK (0) job log log
2020/12/21 11:23 24m bisect fix linux-4.19.y OK (0) job log log
2020/11/21 10:58 24m bisect fix linux-4.19.y OK (0) job log log
2020/10/22 07:17 23m bisect fix linux-4.19.y OK (0) job log log
2020/09/22 06:52 24m bisect fix linux-4.19.y OK (0) job log log
2020/08/17 13:41 27m bisect fix linux-4.19.y OK (0) job log log
2020/06/22 09:40 24m bisect fix linux-4.19.y OK (0) job log log
2020/05/23 09:15 24m bisect fix linux-4.19.y OK (0) job log log
2020/04/23 08:49 26m bisect fix linux-4.19.y OK (0) job log log
2020/03/16 19:47 26m bisect fix linux-4.19.y OK (0) job log log

Sample crash report:
 rtnetlink_rcv+0x1d/0x30 net/core/rtnetlink.c:4795
 netlink_unicast_kernel net/netlink/af_netlink.c:1317 [inline]
 netlink_unicast+0x53a/0x730 net/netlink/af_netlink.c:1343
 netlink_sendmsg+0x8ae/0xd70 net/netlink/af_netlink.c:1908
------------[ cut here ]------------
WARNING: CPU: 1 PID: 130 at net/batman-adv/bat_iv_ogm.c:597 batadv_iv_ogm_emit net/batman-adv/bat_iv_ogm.c:597 [inline]
WARNING: CPU: 1 PID: 130 at net/batman-adv/bat_iv_ogm.c:597 batadv_iv_send_outstanding_bat_ogm_packet.cold+0x3f/0x46 net/batman-adv/bat_iv_ogm.c:1853
Kernel panic - not syncing: panic_on_warn set ...

 sock_sendmsg_nosec net/socket.c:622 [inline]
 sock_sendmsg+0xd7/0x130 net/socket.c:632
 ___sys_sendmsg+0x803/0x920 net/socket.c:2115
 __sys_sendmsg+0x105/0x1d0 net/socket.c:2153
 __do_sys_sendmsg net/socket.c:2162 [inline]
 __se_sys_sendmsg net/socket.c:2160 [inline]
 __x64_sys_sendmsg+0x78/0xb0 net/socket.c:2160
 do_syscall_64+0xfd/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x4444f9
Code: e8 8c 07 03 00 48 83 c4 18 c3 0f 1f 80 00 00 00 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 0f 83 8b 08 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007fffcb7c5128 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00000000004444f9
RDX: 0000000000000000 RSI: 0000000020000080 RDI: 0000000000000003
RBP: 0000000000000000 R08: 0000000000000001 R09: 00000000bb1414ac
R10: 0000000000000000 R11: 0000000000000246 R12: ffffffffffffffff
R13: 0000000000000006 R14: 0000000000000000 R15: 0000000000000000
CPU: 1 PID: 130 Comm: kworker/u4:2 Not tainted 4.19.104-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: bat_events batadv_iv_send_outstanding_bat_ogm_packet
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:batadv_iv_ogm_emit net/batman-adv/bat_iv_ogm.c:597 [inline]
RIP: 0010:batadv_iv_send_outstanding_bat_ogm_packet.cold+0x3f/0x46 net/batman-adv/bat_iv_ogm.c:1853
Code: 9c ff ff e8 13 91 36 fa 48 c7 c7 c0 d4 66 88 e8 5b f1 20 fa e9 4d 9c ff ff e8 fd 90 36 fa 48 c7 c7 80 d1 66 88 e8 45 f1 20 fa <0f> 0b e9 35 9c ff ff e8 e5 90 36 fa 48 c7 c7 80 d1 66 88 e8 2d f1
RSP: 0018:ffff8880a94ffcc8 EFLAGS: 00010282
RAX: 0000000000000024 RBX: ffff8880a8249688 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff8155a136 RDI: ffffed101529ff8b
RBP: ffff8880a94ffd30 R08: 0000000000000024 R09: ffffed1015d25079
R10: ffffed1015d25078 R11: ffff8880ae9283c7 R12: ffff88808f05c1c0
R13: ffff88809e796d80 R14: ffff8880a8249640 R15: ffff88808f05c1c0
 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..

Crashes (9):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/02/15 19:06 linux-4.19.y 9b15f7fae677 5d7b90f1 .config console log report syz C ci2-linux-4-19
2021/05/15 02:22 linux-4.19.y 3c8c23092588 8bdd5343 .config console log report info ci2-linux-4-19 WARNING in process_one_work
2020/12/24 17:06 linux-4.19.y 13d2ce42de8c c2c1d1dd .config console log report info ci2-linux-4-19
2020/08/23 06:52 linux-4.19.y d18b78abc0c6 1da71ab0 .config console log report ci2-linux-4-19
2020/07/18 13:41 linux-4.19.y 17a87580a885 9c812472 .config console log report ci2-linux-4-19
2020/03/24 08:49 linux-4.19.y 14cfdbd39e31 33e14df3 .config console log report ci2-linux-4-19
2020/02/15 18:34 linux-4.19.y 9b15f7fae677 5d7b90f1 .config console log report ci2-linux-4-19
2020/01/09 20:24 linux-4.19.y cb1f9a169a0e 4de4e9f0 .config console log report ci2-linux-4-19
2019/11/26 17:57 linux-4.19.y 14260788bbb9 598ca6c8 .config console log report ci2-linux-4-19
* Struck through repros no longer work on HEAD.