syzbot


general protection fault in batadv_tt_local_table_free

Status: auto-obsoleted due to no activity on 2023/04/01 11:38
Subsystems: batman
[Documentation on labels]
Reported-by: syzbot+1d0657389a63e983c09d@syzkaller.appspotmail.com
First crash: 728d, last: 728d

Sample crash report:
bond0 (unregistering): (slave bond_slave_1): Releasing backup interface
bond0 (unregistering): (slave bond_slave_0): Releasing backup interface
bond0 (unregistering): Released all slaves
general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007]
CPU: 0 PID: 5746 Comm: kworker/u4:15 Not tainted 6.2.0-rc6-next-20230131-syzkaller-09515-g80bd9028feca #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023
Workqueue: netns cleanup_net
RIP: 0010:__hlist_del include/linux/list.h:899 [inline]
RIP: 0010:hlist_del_rcu include/linux/rculist.h:513 [inline]
RIP: 0010:batadv_tt_local_table_free+0x1f2/0x490 net/batman-adv/translation-table.c:1383
Code: 85 37 02 00 00 48 8d 7b 10 4c 8b 63 08 48 89 f8 48 c1 e8 03 42 80 3c 30 00 0f 85 13 02 00 00 48 8b 6b 10 48 89 e8 48 c1 e8 03 <42> 80 3c 30 00 0f 85 f0 01 00 00 4d 85 e4 4c 89 65 00 74 21 e8 25
RSP: 0000:ffffc900152d7928 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffff888022d06000 RCX: 0000000000000000
RDX: ffff888029e83a80 RSI: ffffffff89dedba7 RDI: ffff888022d06010
RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000003
R10: fffff52002a5af17 R11: 0000000000000000 R12: 0000000000000000
R13: ffff88802298fc80 R14: dffffc0000000000 R15: dead000000000122
FS:  0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f04fffebcf8 CR3: 0000000028a8e000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 batadv_tt_free+0x69/0xb20 net/batman-adv/translation-table.c:3583
 batadv_mesh_free+0xa1/0x170 net/batman-adv/main.c:279
 batadv_softif_free+0x15/0x20 net/batman-adv/soft-interface.c:984
 netdev_run_todo+0x6bf/0x1100 net/core/dev.c:10355
 default_device_exit_batch+0x456/0x5b0 net/core/dev.c:11353
 ops_exit_list+0x125/0x170 net/core/net_namespace.c:174
 cleanup_net+0x4ee/0xb10 net/core/net_namespace.c:606
 process_one_work+0x9bf/0x1820 kernel/workqueue.c:2390
 worker_thread+0x669/0x1090 kernel/workqueue.c:2537
 kthread+0x2e8/0x3a0 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__hlist_del include/linux/list.h:899 [inline]
RIP: 0010:hlist_del_rcu include/linux/rculist.h:513 [inline]
RIP: 0010:batadv_tt_local_table_free+0x1f2/0x490 net/batman-adv/translation-table.c:1383
Code: 85 37 02 00 00 48 8d 7b 10 4c 8b 63 08 48 89 f8 48 c1 e8 03 42 80 3c 30 00 0f 85 13 02 00 00 48 8b 6b 10 48 89 e8 48 c1 e8 03 <42> 80 3c 30 00 0f 85 f0 01 00 00 4d 85 e4 4c 89 65 00 74 21 e8 25
RSP: 0000:ffffc900152d7928 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffff888022d06000 RCX: 0000000000000000
RDX: ffff888029e83a80 RSI: ffffffff89dedba7 RDI: ffff888022d06010
RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000003
R10: fffff52002a5af17 R11: 0000000000000000 R12: 0000000000000000
R13: ffff88802298fc80 R14: dffffc0000000000 R15: dead000000000122
FS:  0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f04fffebcf8 CR3: 000000000c571000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	85 37                	test   %esi,(%rdi)
   2:	02 00                	add    (%rax),%al
   4:	00 48 8d             	add    %cl,-0x73(%rax)
   7:	7b 10                	jnp    0x19
   9:	4c 8b 63 08          	mov    0x8(%rbx),%r12
   d:	48 89 f8             	mov    %rdi,%rax
  10:	48 c1 e8 03          	shr    $0x3,%rax
  14:	42 80 3c 30 00       	cmpb   $0x0,(%rax,%r14,1)
  19:	0f 85 13 02 00 00    	jne    0x232
  1f:	48 8b 6b 10          	mov    0x10(%rbx),%rbp
  23:	48 89 e8             	mov    %rbp,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	42 80 3c 30 00       	cmpb   $0x0,(%rax,%r14,1) <-- trapping instruction
  2f:	0f 85 f0 01 00 00    	jne    0x225
  35:	4d 85 e4             	test   %r12,%r12
  38:	4c 89 65 00          	mov    %r12,0x0(%rbp)
  3c:	74 21                	je     0x5f
  3e:	e8                   	.byte 0xe8
  3f:	25                   	.byte 0x25

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/01/31 11:37 linux-next 80bd9028feca 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in batadv_tt_local_table_free
* Struck through repros no longer work on HEAD.