1/* 2 * Copyright (c) 2025 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16<12>[ 66.133068] [pid=1][Init][WARNING][init_signal_handler.c:56]Service warning ueventd, SIGCHLD received, pid:237 uid:1004 status:0. 17<14>[ 66.133139] [pid=1][Init][INFO][init_common_service.c:749]Service info ueventd reap pid 237. 18<14>[ 66.133714] [pid=1][Init][INFO][init_service_socket.c:202]Watcher socket fd 12 for service ueventd 19<3>[ 66.563503] [AUTH_CTRL] no auth data for this pid = 255 20<3>[ 66.563503] , tgid 21<3>[ 66.563618] [QOS_CTRL] do_qos_ctrl_ioctl: pid not authorized 22<5>[ 71.622901] audit: type=1400 audit(1501923674.486:494): avc: denied { ioctl } for pid=1520 comm="sh" path="/dev/tty" dev="tmpfs" ino=40 ioctlcmd=0x5403 scontext=u:r:su:s0 tcontext=u:object_r:tty_device:s0 tclass=chr_file permissive=1 23<5>[ 71.623336] audit: type=1400 audit(1501923674.486:495): avc: denied { search } for pid=1520 comm="sh" name="bin" dev="mmcblk0p7" ino=129 scontext=u:r:su:s0 tcontext=u:object_r:system_bin_file:s0 tclass=dir permissive=1 24<5>[ 71.623886] audit: type=1400 audit(1501923674.486:496): avc: denied { read } for pid=1520 comm="sh" name="ls" dev="mmcblk0p7" ino=282 scontext=u:r:su:s0 tcontext=u:object_r:system_bin_file:s0 tclass=lnk_file permissive=1 25<5>[ 71.623951] audit: type=1400 audit(1501923674.486:497): avc: denied { getattr } for pid=1520 comm="sh" path="/system/bin/toybox" dev="mmcblk0p7" ino=420 scontext=u:r:su:s0 tcontext=u:object_r:system_bin_file:s0 tclass=file permissive=1 26<5>[ 71.623995] audit: type=1400 audit(1501923674.486:498): avc: denied { execute } for pid=1520 comm="sh" name="toybox" dev="mmcblk0p7" ino=420 scontext=u:r:su:s0 tcontext=u:object_r:system_bin_file:s0 tclass=file permissive=1 27<5>[ 71.626988] audit: type=1400 audit(1501923674.490:499): avc: denied { read open } for pid=1529 comm="sh" path="/system/bin/toybox" dev="mmcblk0p7" ino=420 scontext=u:r:su:s0 tcontext=u:object_r:system_bin_file:s0 tclass=file permissive=1 28<5>[ 71.627067] audit: type=1400 audit(1501923674.490:500): avc: denied { execute_no_trans } for pid=1529 comm="sh" path="/system/bin/toybox" dev="mmcblk0p7" ino=420 scontext=u:r:su:s0 tcontext=u:object_r:system_bin_file:s0 tclass=file permissive=1 29<5>[ 71.628755] audit: type=1400 audit(1501923674.490:501): avc: denied { map } for pid=1529 comm="ls" path="/system/bin/toybox" dev="mmcblk0p7" ino=420 scontext=u:r:su:s0 tcontext=u:object_r:system_bin_file:s0 tclass=file permissive=1 30<5>[ 71.635198] audit: type=1400 audit(1501923674.496:502): avc: denied { read } for pid=1529 comm="ls" name="u:object_r:debug_param:s0" dev="tmpfs" ino=73 scontext=u:r:su:s0 tcontext=u:object_r:debug_param:s0 tclass=file permissive=1 31<5>[ 71.635275] audit: type=1400 audit(1501923674.496:503): avc: denied { open } for pid=1529 comm="ls" path="/dev/__parameters__/u:object_r:debug_param:s0" dev="tmpfs" ino=73 scontext=u:r:su:s0 tcontext=u:object_r:debug_param:s0 tclass=file permissive=1 32<3>[ 71.892738] [AUTH_CTRL] no auth data for this pid = 256 33<3>[ 71.892738] , tgid 34<3>[ 71.892766] [QOS_CTRL] do_qos_ctrl_ioctl: pid not authorized 35<3>[ 72.544897] [AUTH_CTRL] no auth data for this pid = 593 36<3>[ 72.544897] , tgid 37<3>[ 72.544926] [QOS_CTRL] do_qos_ctrl_ioctl: pid not authorized 38<3>[ 74.374102] [AUTH_CTRL] no auth data for this pid = 424 39<3>[ 74.374102] , tgid 40<3>[ 74.374131] [QOS_CTRL] do_qos_ctrl_ioctl: pid not authorized 41<3>[ 75.031532] [AUTH_CTRL] no auth data for this pid = 593 42<3>[ 75.031532] , tgid 43<3>[ 75.031562] [QOS_CTRL] do_qos_ctrl_ioctl: pid not authorized 44<3>[ 75.037236] [AUTH_CTRL] no auth data for this pid = 593 45<3>[ 75.037236] , tgid 46<3>[ 75.037262] [QOS_CTRL] do_qos_ctrl_ioctl: pid not authorized 47<3>[ 75.038771] [AUTH_CTRL] no auth data for this pid = 593 48<3>[ 75.038771] , tgid 49<3>[ 75.038794] [QOS_CTRL] do_qos_ctrl_ioctl: pid not authorized 50<4>[ 78.218895] kauditd_printk_skb: 1 callbacks suppressed 51<5>[ 78.218915] audit: type=1400 audit(1501923681.080:505): avc: denied { read } for pid=1520 comm="sh" name="ls" dev="mmcblk0p7" ino=282 scontext=u:r:su:s0 tcontext=u:object_r:system_bin_file:s0 tclass=lnk_file permissive=1 52<5>[ 78.254710] audit: type=1400 audit(1501923681.116:506): avc: denied { read } for pid=1536 comm="ls" name="/" dev="mmcblk0p7" ino=2 scontext=u:r:su:s0 tcontext=u:object_r:rootfs:s0 tclass=dir permissive=1 53<5>[ 78.254822] audit: type=1400 audit(1501923681.116:507): avc: denied { open } for pid=1536 comm="ls" path="/" dev="mmcblk0p7" ino=2 scontext=u:r:su:s0 tcontext=u:object_r:rootfs:s0 tclass=dir permissive=1 54<5>[ 78.255131] audit: type=1400 audit(1501923681.116:508): avc: denied { getattr } for pid=1536 comm="ls" path="/eng_chipset" dev="mmcblk0p7" ino=19 scontext=u:r:su:s0 tcontext=u:object_r:vendor_file:s0 tclass=dir permissive=1 55<5>[ 78.255256] audit: type=1400 audit(1501923681.116:509): avc: denied { getattr } for pid=1536 comm="ls" path="/etc" dev="mmcblk0p7" ino=21 scontext=u:r:su:s0 tcontext=u:object_r:etc_file:s0 tclass=lnk_file permissive=1 56<5>[ 78.255890] audit: type=1400 audit(1501923681.116:510): avc: denied { getattr } for pid=1536 comm="ls" path="/lib" dev="mmcblk0p7" ino=23 scontext=u:r:su:s0 tcontext=u:object_r:lib_file:s0 tclass=lnk_file permissive=1 57<5>[ 78.255935] audit: type=1400 audit(1501923681.120:511): avc: denied { getattr } for pid=1536 comm="ls" path="/dev" dev="tmpfs" ino=1 scontext=u:r:su:s0 tcontext=u:object_r:dev_file:s0 tclass=dir permissive=1 58<5>[ 78.256464] audit: type=1400 audit(1501923681.120:512): avc: denied { getattr } for pid=1536 comm="ls" path="/chip_ckm" dev="mmcblk0p14" ino=2 scontext=u:r:su:s0 tcontext=u:object_r:chip_ckm_file:s0 tclass=dir permissive=1 59<5>[ 78.256707] audit: type=1400 audit(1501923681.120:513): avc: denied { getattr } for pid=1536 comm="ls" path="/updater" dev="mmcblk0p7" ino=3518 scontext=u:r:su:s0 tcontext=u:object_r:updater_file:s0 tclass=dir permissive=1 60<5>[ 78.256987] audit: type=1400 audit(1501923681.120:514): avc: denied { getattr } for pid=1536 comm="ls" path="/system" dev="mmcblk0p7" ino=30 scontext=u:r:su:s0 tcontext=u:object_r:system_file:s0 tclass=dir permissive=1 61<3>[ 81.949297] [AUTH_CTRL] no auth data for this pid = 256 62<3>[ 81.949297] , tgid 63<3>[ 81.949325] [QOS_CTRL] do_qos_ctrl_ioctl: pid not authorized 64<5>[ 86.882125] audit: type=1400 audit(1501923689.743:515): avc: denied { read } for pid=1520 comm="sh" name="bin" dev="mmcblk0p7" ino=129 scontext=u:r:su:s0 tcontext=u:object_r:system_bin_file:s0 tclass=dir permissive=1 65<5>[ 86.882266] audit: type=1400 audit(1501923689.743:516): avc: denied { open } for pid=1520 comm="sh" path="/system/bin" dev="mmcblk0p7" ino=129 scontext=u:r:su:s0 tcontext=u:object_r:system_bin_file:s0 tclass=dir permissive=1 66<5>[ 86.883332] audit: type=1400 audit(1501923689.746:517): avc: denied { getattr } for pid=1520 comm="sh" path="/system/bin/dmesg" dev="mmcblk0p7" ino=190 scontext=u:r:su:s0 tcontext=u:object_r:system_bin_file:s0 tclass=lnk_file permissive=1 67<5>[ 87.467987] audit: type=1400 audit(1501923690.330:518): avc: denied { read } for pid=1538 comm="dmesg" name="kmsg" dev="tmpfs" ino=41 scontext=u:r:su:s0 tcontext=u:object_r:dev_kmsg_file:s0 tclass=chr_file permissive=1 68<5>[ 87.468603] audit: type=1400 audit(1501923690.330:519): avc: denied { open } for pid=1538 comm="dmesg" path="/dev/kmsg" dev="tmpfs" ino=41 scontext=u:r:su:s0 tcontext=u:object_r:dev_kmsg_file:s0 tclass=chr_file permissive=1 69<5>[ 87.469282] audit: type=1400 audit(1501923690.330:520): avc: denied { syslog } for pid=1538 comm="dmesg" capability=34 scontext=u:r:su:s0 tcontext=u:r:su:s0 tclass=capability2 permissive=1 70<5>[ 87.469325] audit: type=1400 audit(1501923690.330:521): avc: denied { syslog_read } for pid=1538 comm="dmesg" scontext=u:r:su:s0 tcontext=u:r:kernel:s0 tclass=system permissive=1 71<3>[ 92.017160] [AUTH_CTRL] no auth data for this pid = 256 72<3>[ 92.017160] , tgid 73<3>[ 92.017189] [QOS_CTRL] do_qos_ctrl_ioctl: pid not authorized 74<5>[ 97.435921] audit: type=1400 audit(1501923700.296:522): avc: denied { getattr } for pid=1540 comm="ls" path="/lib" dev="mmcblk0p7" ino=23 scontext=u:r:su:s0 tcontext=u:object_r:lib_file:s0 tclass=lnk_file permissive=1 75<3>[ 102.085924] [AUTH_CTRL] no auth data for this pid = 256 76<3>[ 102.085924] , tgid 77<3>[ 102.085949] [QOS_CTRL] do_qos_ctrl_ioctl: pid not authorized 78<3>[ 102.555191] [AUTH_CTRL] no auth data for this pid = 593 79<3>[ 102.555191] , tgid 80<3>[ 102.555218] [QOS_CTRL] do_qos_ctrl_ioctl: pid not authorized 81<3>[ 105.036136] [AUTH_CTRL] no auth data for this pid = 593 82<3>[ 105.036136] , tgid 83<3>[ 105.036167] [QOS_CTRL] do_qos_ctrl_ioctl: pid not authorized 84<3>[ 105.037835] [AUTH_CTRL] no auth data for this pid = 593 85<3>[ 105.037835] , tgid 86<3>[ 105.037862] [QOS_CTRL] do_qos_ctrl_ioctl: pid not authorized 87<3>[ 105.043399] [AUTH_CTRL] no auth data for this pid = 593 88<3>[ 105.043399] , tgid 89<3>[ 105.043425] [QOS_CTRL] do_qos_ctrl_ioctl: pid not authorized 90<3>[ 112.138017] [AUTH_CTRL] no auth data for this pid = 256 91<3>[ 112.138017] , tgid 92<3>[ 112.138045] [QOS_CTRL] do_qos_ctrl_ioctl: pid not authorized 93<5>[ 114.022749] audit: type=1400 audit(1501923716.886:523): avc: denied { read } for pid=1520 comm="sh" name="/" dev="tmpfs" ino=1 scontext=u:r:su:s0 tcontext=u:object_r:tmpfs:s0 tclass=dir permissive=1 94<5>[ 114.022873] audit: type=1400 audit(1501923716.886:524): avc: denied { open } for pid=1520 comm="sh" path="/storage" dev="tmpfs" ino=1 scontext=u:r:su:s0 tcontext=u:object_r:tmpfs:s0 tclass=dir permissive=1 95<3>[ 117.138885] [AUTH_CTRL] no auth data for this pid = 593 96<3>[ 117.138885] , tgid 97<3>[ 117.138914] [QOS_CTRL] do_qos_ctrl_ioctl: pid not authorized 98<3>[ 117.140618] [AUTH_CTRL] no auth data for this pid = 593 99<3>[ 117.140618] , tgid 100<3>[ 117.140645] [QOS_CTRL] do_qos_ctrl_ioctl: pid not authorized 101<3>[ 117.144455] [AUTH_CTRL] no auth data for this pid = 593 102<3>[ 117.144455] , tgid 103<3>[ 117.144483] [QOS_CTRL] do_qos_ctrl_ioctl: pid not authorized 104<3>[ 117.146198] [AUTH_CTRL] no auth data for this pid = 593 105<3>[ 117.146198] , tgid 106<3>[ 117.146222] [QOS_CTRL] do_qos_ctrl_ioctl: pid not authorized 107<3>[ 122.199501] [AUTH_CTRL] no auth data for this pid = 256 108<3>[ 122.199501] , tgid 109<3>[ 122.199530] [QOS_CTRL] do_qos_ctrl_ioctl: pid not authorized 110<5>[ 124.513323] audit: type=1400 audit(1501923727.376:525): avc: denied { dac_read_search } for pid=1520 comm="sh" capability=2 scontext=u:r:su:s0 tcontext=u:r:su:s0 tclass=capability permissive=1 111<5>[ 124.513890] audit: type=1400 audit(1501923727.376:526): avc: denied { getattr } for pid=1520 comm="sh" path="/data/system" dev="mmcblk0p15" ino=19 scontext=u:r:su:s0 tcontext=u:object_r:data_system:s0 tclass=dir permissive=1 112<5>[ 124.514276] audit: type=1400 audit(1501923727.376:527): avc: denied { getattr } for pid=1520 comm="sh" path="/data/data" dev="mmcblk0p15" ino=116 scontext=u:r:su:s0 tcontext=u:object_r:data_data_file:s0 tclass=dir permissive=1 113<5>[ 124.514460] audit: type=1400 audit(1501923727.376:528): avc: denied { getattr } for pid=1520 comm="sh" path="/data/nfc" dev="mmcblk0p15" ino=117 scontext=u:r:su:s0 tcontext=u:object_r:data_nfc:s0 tclass=dir permissive=1 114<5>[ 124.514649] audit: type=1400 audit(1501923727.376:529): avc: denied { getattr } for pid=1520 comm="sh" path="/data/updater" dev="mmcblk0p15" ino=147 scontext=u:r:su:s0 tcontext=u:object_r:data_updater_file:s0 tclass=dir permissive=1 115<5>[ 124.514833] audit: type=1400 audit(1501923727.376:530): avc: denied { getattr } for pid=1520 comm="sh" path="/data/bluetooth" dev="mmcblk0p15" ino=148 scontext=u:r:su:s0 tcontext=u:object_r:data_bluetooth:s0 tclass=dir permissive=1 116<3>[ 132.266707] [AUTH_CTRL] no auth data for this pid = 256 117<3>[ 132.266707] , tgid 118<3>[ 132.266735] [QOS_CTRL] do_qos_ctrl_ioctl: pid not authorized 119<3>[ 132.564832] [AUTH_CTRL] no auth data for this pid = 593 120<3>[ 132.564832] , tgid 121<3>[ 132.564862] [QOS_CTRL] do_qos_ctrl_ioctl: pid not authorized 122<3>[ 135.040893] [AUTH_CTRL] no auth data for this pid = 593 123<3>[ 135.040893] , tgid 124<3>[ 135.040922] [QOS_CTRL] do_qos_ctrl_ioctl: pid not authorized 125<3>[ 135.043474] [AUTH_CTRL] no auth data for this pid = 593 126<3>[ 135.043474] , tgid 127<3>[ 135.043502] [QOS_CTRL] do_qos_ctrl_ioctl: pid not authorized 128<3>[ 135.047755] [AUTH_CTRL] no auth data for this pid = 593 129<3>[ 135.047755] , tgid 130<3>[ 135.047775] [QOS_CTRL] do_qos_ctrl_ioctl: pid not authorized 131<3>[ 135.048857] [AUTH_CTRL] no auth data for this pid = 593 132<3>[ 135.048857] , tgid 133<3>[ 135.048873] [QOS_CTRL] do_qos_ctrl_ioctl: pid not authorized 134<5>[ 137.609076] audit: type=1400 audit(1501923740.470:531): avc: denied { execute } for pid=1520 comm="sh" name="toybox" dev="mmcblk0p7" ino=420 scontext=u:r:su:s0 tcontext=u:object_r:system_bin_file:s0 tclass=file permissive=1 135<5>[ 137.609255] audit: type=1400 audit(1501923740.470:532): avc: denied { getattr } for pid=1520 comm="sh" path="/system/bin/toybox" dev="mmcblk0p7" ino=420 scontext=u:r:su:s0 tcontext=u:object_r:system_bin_file:s0 tclass=file permissive=1 136<5>[ 137.611943] audit: type=1400 audit(1501923740.473:533): avc: denied { read open } for pid=1559 comm="sh" path="/system/bin/toybox" dev="mmcblk0p7" ino=420 scontext=u:r:su:s0 tcontext=u:object_r:system_bin_file:s0 tclass=file permissive=1 137<5>[ 137.612030] audit: type=1400 audit(1501923740.473:534): avc: denied { execute_no_trans } for pid=1559 comm="sh" path="/system/bin/toybox" dev="mmcblk0p7" ino=420 scontext=u:r:su:s0 tcontext=u:object_r:system_bin_file:s0 tclass=file permissive=1 138<5>[ 137.613753] audit: type=1400 audit(1501923740.476:535): avc: denied { map } for pid=1559 comm="ls" path="/system/bin/toybox" dev="mmcblk0p7" ino=420 scontext=u:r:su:s0 tcontext=u:object_r:system_bin_file:s0 tclass=file permissive=1 139<3>[ 142.316376] [AUTH_CTRL] no auth data for this pid = 256 140<3>[ 142.316376] , tgid 141<3>[ 142.316404] [QOS_CTRL] do_qos_ctrl_ioctl: pid not authorized 142<5>[ 149.943886] audit: type=1400 audit(1501923752.806:536): avc: denied { getattr } for pid=1520 comm="sh" path="/proc/sysrq-trigger" dev="proc" ino=4026532372 scontext=u:r:su:s0 tcontext=u:object_r:proc_sysrq_trigger_file:s0 tclass=file permissive=1 143<3>[ 152.378143] [AUTH_CTRL] no auth data for this pid = 256 144<3>[ 152.378143] , tgid 145<3>[ 152.378171] [QOS_CTRL] do_qos_ctrl_ioctl: pid not authorized 146<6>[ 155.823298] sysrq: Trigger a crash 147<5>[ 155.823345] audit: type=1400 audit(1501923758.686:537): avc: denied { write } for pid=1520 comm="sh" name="sysrq-trigger" dev="proc" ino=4026532372 scontext=u:r:su:s0 tcontext=u:object_r:proc_sysrq_trigger_file:s0 tclass=file permissive=1 148<0>[ 155.823421] Kernel panic - not syncing: sysrq triggered crash 149<5>[ 155.825796] audit: type=1400 audit(1501923758.686:538): avc: denied { open } for pid=1520 comm="sh" path="/proc/sysrq-trigger" dev="proc" ino=4026532372 scontext=u:r:su:s0 tcontext=u:object_r:proc_sysrq_trigger_file:s0 tclass=file permissive=1 150<4>[ 155.826130] CPU: 1 PID: 1520 Comm: sh Not tainted 5.10.184 #1 151<4>[ 155.828542] Hardware name: rockchip,rk3568-toybrick-dev-linux-x0 (DT) 152<4>[ 155.829135] [PANIC][ED_ba]Stack backtrace: 153<4>[ 155.829403] <dump_backtrace+0x0/0x0> 154<4>[ 155.829754] <show_stack+0x0/0x0> 155<4>[ 155.830088] <dump_stack+0x0/0x0> 156<4>[ 155.830420] <panic+0x0/0x0> 157<4>[ 155.830724] <sysrq_handle_term+0x0/0x0> 158<4>[ 155.831088] <__handle_sysrq+0x0/0x0> 159<4>[ 155.831452] <write_sysrq_trigger+0x0/0x0> 160<4>[ 155.831845] <proc_reg_write+0x0/0x0> 161<4>[ 155.832213] <vfs_write+0x0/0x0> 162<4>[ 155.832542] <ksys_write+0x0/0x0> 163<4>[ 155.832866] <__arm64_sys_write+0x0/0x0> 164<4>[ 155.833245] <el0_svc_common+0x0/0x0> 165<4>[ 155.833613] <el0_svc_compat+0x0/0x0> 166<4>[ 155.833965] <el0_sync_compat_handler+0x0/0x0> 167<4>[ 155.834389] <el0_sync_compat+0x0/0x0> 168<2>[ 155.834767] SMP: stopping secondary CPUs 169<4>[ 155.835269] PMU CRU: 170<4>[ 155.835514] 00000000: 00006064 00001481 00000000 00000007 00007f00 00000000 00000000 00000000 171<4>[ 155.836294] 00000020: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 172<4>[ 155.837073] 00000040: 00002063 00001481 00000000 00000007 00007f00 00000000 00000000 00000000 173<4>[ 155.837859] 00000060: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 174<4>[ 155.838645] 00000080: 00000001 00000000 00000000 00000000 00000000 00000000 00000000 00000000 175<4>[ 155.839432] 000000a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 176<4>[ 155.840217] 000000c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 177<4>[ 155.841003] 000000e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 178<4>[ 155.841791] 00000100: 00000080 0040b71b 00000001 00000001 00000800 00000000 00000001 00000009 179<4>[ 155.842576] 00000120: 0000050f 00008888 00000000 00000000 00000000 00000000 00000000 00000000 180<4>[ 155.843363] 00000140: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 181<4>[ 155.844150] 00000160: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 182<4>[ 155.844937] 00000180: 00000000 000000c3 00000000 00000000 00000000 00000000 00000000 00000000 183