bisecting cause commit starting from 4fa640dc52302b5e62b01b05c755b055549633ae building syzkaller on 21f1765e15967196c4f3c9756ae4ec8a1fa7996d testing commit 4fa640dc52302b5e62b01b05c755b055549633ae with gcc (GCC) 8.1.0 kernel signature: c2dd274c1dee49443c8edd1ff571a339d251755340e579eedefa87560a47d574 run #0: crashed: INFO: rcu detected stall in do_idle run #1: crashed: INFO: rcu detected stall in do_idle run #2: crashed: BUG: soft lockup in smp_call_function run #3: crashed: INFO: rcu detected stall in do_idle run #4: crashed: INFO: rcu detected stall in do_idle run #5: crashed: INFO: rcu detected stall in do_idle run #6: crashed: INFO: rcu detected stall in do_idle run #7: crashed: BUG: soft lockup in do_idle run #8: crashed: no output from test machine run #9: crashed: no output from test machine testing release v5.7 testing commit 3d77e6a8804abcc0504c904bd6e5cdf3a5cf8162 with gcc (GCC) 8.1.0 kernel signature: bd2a722c134a96e44565fb85270b083aca9925624528c2d3887f9313b2304969 run #0: crashed: INFO: rcu detected stall in security_file_open run #1: crashed: INFO: rcu detected stall in do_idle run #2: crashed: INFO: rcu detected stall in do_idle run #3: crashed: INFO: rcu detected stall in do_idle run #4: crashed: INFO: rcu detected stall in wg_packet_handshake_send_worker run #5: crashed: INFO: rcu detected stall in do_idle run #6: crashed: INFO: rcu detected stall in linkwatch_event run #7: crashed: BUG: soft lockup in do_idle run #8: crashed: INFO: rcu detected stall in do_idle run #9: crashed: INFO: rcu detected stall in do_idle testing release v5.6 testing commit 7111951b8d4973bda27ff663f2cf18b663d15b48 with gcc (GCC) 8.1.0 kernel signature: c422d56fdea7c2e8472e7f5321b273784aa90cb7fb44bc460cceb7a47d57fcc7 run #0: crashed: BUG: soft lockup in smp_call_function run #1: crashed: INFO: rcu detected stall in do_idle run #2: crashed: INFO: rcu detected stall in addrconf_dad_work run #3: crashed: INFO: rcu detected stall in do_idle run #4: crashed: INFO: rcu detected stall in br_handle_frame run #5: crashed: INFO: rcu detected stall in do_idle run #6: crashed: BUG: soft lockup in do_idle run #7: crashed: INFO: rcu detected stall in seq_read run #8: crashed: no output from test machine run #9: crashed: no output from test machine testing release v5.5 testing commit d5226fa6dbae0569ee43ecfc08bdcd6770fc4755 with gcc (GCC) 8.1.0 kernel signature: 831abcdf658f2494ae6912faae37780f9a1ef93750789e382e3b71d292c97331 all runs: crashed: BUG: sleeping function called from invalid context in cpus_read_lock testing release v5.4 testing commit 219d54332a09e8d8741c1e1982f5eae56099de85 with gcc (GCC) 8.1.0 kernel signature: c3ef0e6e031cb4222fd371734353d8f7bf8f886bef8a664064da28126b4d8998 all runs: crashed: BUG: sleeping function called from invalid context in cpus_read_lock testing release v5.3 testing commit 4d856f72c10ecb060868ed10ff1b1453943fc6c8 with gcc (GCC) 8.1.0 kernel signature: 0918ed6ebcafe2d7fd062f2136824ec8881b8eac76df03b5a48b6ba5c0e2157d all runs: crashed: BUG: sleeping function called from invalid context in cpus_read_lock testing release v5.2 testing commit 0ecfebd2b52404ae0c54a878c872bb93363ada36 with gcc (GCC) 8.1.0 kernel signature: 37069e4a2c3ccc5e94af026937d17702605b4a5fe8700567eeee10f6cc477904 all runs: crashed: BUG: sleeping function called from invalid context in cpus_read_lock testing release v5.1 testing commit e93c9c99a629c61837d5a7fc2120cd2b6c70dbdd with gcc (GCC) 8.1.0 kernel signature: a9fa0ce548e802235934d5f90ccf4b93c2c0724a3dfe59d49d535f33c0f726bb run #0: crashed: BUG: soft lockup in do_idle run #1: crashed: INFO: rcu detected stall in do_idle run #2: crashed: INFO: rcu detected stall in do_idle run #3: crashed: BUG: soft lockup in smp_call_function run #4: crashed: INFO: rcu detected stall in do_idle run #5: crashed: INFO: rcu detected stall in do_idle run #6: crashed: no output from test machine run #7: crashed: no output from test machine run #8: crashed: no output from test machine run #9: crashed: no output from test machine testing release v5.0 testing commit 1c163f4c7b3f621efff9b28a47abb36f7378d783 with gcc (GCC) 8.1.0 kernel signature: 2a1efb6bc4ae52e194a0e5f4e5dc7b4276fd40fc1f27500ea87171563bc4eb44 run #0: crashed: INFO: rcu detected stall in smp_call_function run #1: crashed: INFO: rcu detected stall in do_idle run #2: crashed: INFO: rcu detected stall in do_idle run #3: crashed: INFO: rcu detected stall in do_idle run #4: crashed: BUG: soft lockup in do_idle run #5: crashed: INFO: rcu detected stall in do_idle run #6: crashed: INFO: rcu detected stall in ipv6_rcv run #7: crashed: INFO: rcu detected stall in batadv_dat_purge run #8: crashed: INFO: rcu detected stall in cleanup_net run #9: basic kernel testing failed: failed to copy test binary to VM: failed to run ["scp" "-P" "22" "-F" "/dev/null" "-o" "UserKnownHostsFile=/dev/null" "-o" "BatchMode=yes" "-o" "IdentitiesOnly=yes" "-o" "StrictHostKeyChecking=no" "-o" "ConnectTimeout=10" "-i" "/syzkaller/jobs/linux/workdir/image/key" "/tmp/syz-executor945718009" "root@10.128.15.196:./syz-executor945718009"]: exit status 1 ssh: connect to host 10.128.15.196 port 22: Connection timed out lost connection testing release v4.20 testing commit 8fe28cb58bcb235034b64cbbb7550a8a43fd88be with gcc (GCC) 8.1.0 kernel signature: cac34d06db0dc1861105d20d0ffd5b9999c350bbadf93d8e793940ecb049ac28 run #0: crashed: INFO: rcu detected stall in do_idle run #1: crashed: INFO: rcu detected stall in do_idle run #2: crashed: INFO: rcu detected stall in do_idle run #3: crashed: INFO: rcu detected stall in tc_modify_qdisc run #4: crashed: BUG: soft lockup in batadv_tt_purge run #5: crashed: INFO: rcu detected stall in rtnl_newlink run #6: crashed: BUG: soft lockup in batadv_tt_purge run #7: crashed: INFO: rcu detected stall in do_idle run #8: crashed: INFO: rcu detected stall in smp_call_function run #9: crashed: INFO: rcu detected stall in do_idle testing release v4.19 testing commit 84df9525b0c27f3ebc2ebb1864fa62a97fdedb7d with gcc (GCC) 8.1.0 kernel signature: 5fbb5e46c2ecf1deeb2fa91ecb5f24c10996e4546040dbed2494d60818249dd9 failed: failed to create VM pool: failed to write image file: googleapi: got HTTP response code 503 with body: Service Unavailable testing release v4.18 testing commit 94710cac0ef4ee177a63b5227664b38c95bbf703 with gcc (GCC) 8.1.0 kernel signature: ddd4add9ff8f492bf42bbd519d952eee0bfbc550917f738dc50f070c61b4578d all runs: OK # git bisect start 8fe28cb58bcb235034b64cbbb7550a8a43fd88be 94710cac0ef4ee177a63b5227664b38c95bbf703 Bisecting: 15098 revisions left to test after this (roughly 14 steps) [89303c7ea770b6010943ef4ed73eb92bdc5a7ec8] Merge tag 'usb-serial-4.20-rc1' of https://git.kernel.org/pub/scm/linux/kernel/git/johan/usb-serial into usb-next testing commit 89303c7ea770b6010943ef4ed73eb92bdc5a7ec8 with gcc (GCC) 8.1.0 kernel signature: bdf6ba50fb7492a8832eef6bd23f7379a136d2764a5066e1d8496926ad36395c all runs: OK # git bisect good 89303c7ea770b6010943ef4ed73eb92bdc5a7ec8 Bisecting: 7502 revisions left to test after this (roughly 13 steps) [685f7e4f161425b137056abe35ba8ef7b669d83d] Merge tag 'powerpc-4.20-1' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux testing commit 685f7e4f161425b137056abe35ba8ef7b669d83d with gcc (GCC) 8.1.0 kernel signature: 0d1330ee244ff3c55b0cabdcfec35f2847c00086545ef16a0579e7b4406a101d run #0: crashed: INFO: rcu detected stall in __ia32_compat_sys_open run #1: crashed: INFO: rcu detected stall in do_idle run #2: crashed: INFO: rcu detected stall in smp_call_function run #3: crashed: INFO: rcu detected stall in filemap_map_pages run #4: crashed: INFO: rcu detected stall in kmem_cache_alloc run #5: crashed: INFO: rcu detected stall in do_idle run #6: crashed: INFO: rcu detected stall in do_idle run #7: crashed: INFO: rcu detected stall in batadv_iv_send_outstanding_bat_ogm_packet run #8: crashed: no output from test machine run #9: crashed: no output from test machine # git bisect bad 685f7e4f161425b137056abe35ba8ef7b669d83d Bisecting: 3019 revisions left to test after this (roughly 12 steps) [50b825d7e87f4cff7070df6eb26390152bb29537] Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next testing commit 50b825d7e87f4cff7070df6eb26390152bb29537 with gcc (GCC) 8.1.0 kernel signature: df6836aa6d9f5641171a5782d09f9d2eeed62fa32ebf19ea4d47bbf67778c9b6 run #0: crashed: BUG: soft lockup in do_idle run #1: crashed: BUG: soft lockup in batadv_tt_purge run #2: crashed: BUG: soft lockup in sys_newstat run #3: crashed: BUG: soft lockup in ipv6_rcv run #4: crashed: INFO: rcu detected stall in ipv6_rcv run #5: crashed: INFO: rcu detected stall in blk_done_softirq run #6: crashed: INFO: rcu detected stall in corrupted run #7: crashed: no output from test machine run #8: crashed: no output from test machine run #9: crashed: no output from test machine # git bisect bad 50b825d7e87f4cff7070df6eb26390152bb29537 Bisecting: 2287 revisions left to test after this (roughly 11 steps) [b87e7f246898d0ccd676fbac5cb3fe41b1735cf9] Documentation: e1000e: Prepare documentation for RST conversion testing commit b87e7f246898d0ccd676fbac5cb3fe41b1735cf9 with gcc (GCC) 8.1.0 kernel signature: e89c739a9a39fd00f89a35d2c37bcea8ffecea6ee88db69d8cbb19dd93172630 run #0: basic kernel testing failed: failed to copy test binary to VM: failed to run ["scp" "-P" "22" "-F" "/dev/null" "-o" "UserKnownHostsFile=/dev/null" "-o" "BatchMode=yes" "-o" "IdentitiesOnly=yes" "-o" "StrictHostKeyChecking=no" "-o" "ConnectTimeout=10" "-i" "/syzkaller/jobs/linux/workdir/image/key" "/tmp/syz-executor391954965" "root@10.128.15.197:./syz-executor391954965"]: exit status 1 ssh: connect to host 10.128.15.197 port 22: Connection timed out lost connection run #1: basic kernel testing failed: failed to copy test binary to VM: failed to run ["scp" "-P" "22" "-F" "/dev/null" "-o" "UserKnownHostsFile=/dev/null" "-o" "BatchMode=yes" "-o" "IdentitiesOnly=yes" "-o" "StrictHostKeyChecking=no" "-o" "ConnectTimeout=10" "-i" "/syzkaller/jobs/linux/workdir/image/key" "/tmp/syz-executor643391088" "root@10.128.10.58:./syz-executor643391088"]: exit status 1 ssh: connect to host 10.128.10.58 port 22: Connection timed out lost connection run #2: crashed: BUG: soft lockup in wb_workfn run #3: crashed: INFO: rcu detected stall in batadv_purge_orig run #4: crashed: INFO: rcu detected stall in do_idle run #5: crashed: BUG: soft lockup in ipv6_rcv run #6: crashed: INFO: rcu detected stall in inet_rtm_newaddr run #7: crashed: INFO: rcu detected stall in do_signal run #8: crashed: BUG: soft lockup in call_usermodehelper_exec_async run #9: crashed: no output from test machine # git bisect bad b87e7f246898d0ccd676fbac5cb3fe41b1735cf9 Bisecting: 1143 revisions left to test after this (roughly 10 steps) [f76c483a0b373fdfaedafefe8e4da8beb614e1e9] dpaa2-eth: Rename structure testing commit f76c483a0b373fdfaedafefe8e4da8beb614e1e9 with gcc (GCC) 8.1.0 kernel signature: daa78fed543d7e75667ddeef70ee24bab8040324b17272ed80a0dc724d330e8e all runs: OK # git bisect good f76c483a0b373fdfaedafefe8e4da8beb614e1e9 Bisecting: 571 revisions left to test after this (roughly 9 steps) [bf341eb895411f36582a905d4a646b387a0d1fc3] mlxsw: spectrum: Remove misuses of private header file testing commit bf341eb895411f36582a905d4a646b387a0d1fc3 with gcc (GCC) 8.1.0 kernel signature: 7479dc1634321fea418d6044e93b520f7de759076963460f14925479fd008f35 run #0: crashed: BUG: soft lockup in do_idle run #1: crashed: INFO: rcu detected stall in do_idle run #2: crashed: INFO: rcu detected stall in do_idle run #3: crashed: INFO: rcu detected stall in smp_call_function run #4: crashed: INFO: rcu detected stall in tc_modify_qdisc run #5: crashed: INFO: rcu detected stall in reg_check_chans_work run #6: crashed: INFO: rcu detected stall in do_idle run #7: crashed: INFO: rcu detected stall in smp_call_function run #8: crashed: no output from test machine run #9: crashed: no output from test machine # git bisect bad bf341eb895411f36582a905d4a646b387a0d1fc3 Bisecting: 332 revisions left to test after this (roughly 8 steps) [5580d810560da33804053ae3bca13110c9a8d5e8] Merge tag 'mt76-for-kvalo-2018-10-05' of https://github.com/nbd168/wireless testing commit 5580d810560da33804053ae3bca13110c9a8d5e8 with gcc (GCC) 8.1.0 kernel signature: 8c93b0720906be72011dbb74db0dccc09c37b56ca5c5d98275b571f202febecb all runs: OK # git bisect good 5580d810560da33804053ae3bca13110c9a8d5e8 Bisecting: 166 revisions left to test after this (roughly 7 steps) [062f97a314355c3f0021cfa1454726cfe12432fa] isdn/gigaset/isocdata: mark expected switch fall-through testing commit 062f97a314355c3f0021cfa1454726cfe12432fa with gcc (GCC) 8.1.0 kernel signature: 12b32abab300027f03b05d81f9e0919d7ba9f49f5b6a52af694cf28ab05cc383 run #0: crashed: INFO: rcu detected stall in do_idle run #1: crashed: BUG: soft lockup in do_idle run #2: crashed: INFO: rcu detected stall in tc_modify_qdisc run #3: crashed: INFO: rcu detected stall in tc_modify_qdisc run #4: crashed: INFO: rcu detected stall in do_idle run #5: crashed: BUG: soft lockup in do_idle run #6: crashed: INFO: rcu detected stall in smp_call_function run #7: crashed: INFO: rcu detected stall in do_idle run #8: crashed: no output from test machine run #9: crashed: INFO: rcu detected stall in smp_call_function # git bisect bad 062f97a314355c3f0021cfa1454726cfe12432fa Bisecting: 82 revisions left to test after this (roughly 6 steps) [39932473b63ebbfdebe298cad09711349feddbc6] net: hns3: Optimize for unicast mac vlan table testing commit 39932473b63ebbfdebe298cad09711349feddbc6 with gcc (GCC) 8.1.0 kernel signature: ecc415c66645b3c1df082e594b89425568c2145640f220059b46af6061c3c889 run #0: crashed: INFO: rcu detected stall in do_idle run #1: crashed: INFO: rcu detected stall in tc_modify_qdisc run #2: crashed: INFO: rcu detected stall in smp_call_function run #3: crashed: INFO: rcu detected stall in do_idle run #4: crashed: INFO: rcu detected stall in tc_modify_qdisc run #5: crashed: BUG: soft lockup in do_idle run #6: crashed: INFO: rcu detected stall in try_check_zero run #7: crashed: INFO: rcu detected stall in do_idle run #8: crashed: no output from test machine run #9: crashed: BUG: soft lockup in do_idle # git bisect bad 39932473b63ebbfdebe298cad09711349feddbc6 Bisecting: 41 revisions left to test after this (roughly 5 steps) [e908bcf4f1a271e7c264dcbffc5881ced8bfacee] rxrpc: Allow the reply time to be obtained on a client call testing commit e908bcf4f1a271e7c264dcbffc5881ced8bfacee with gcc (GCC) 8.1.0 kernel signature: ffc55b5c66697dbfc152e59b2da1326232b651f9a0c9d14e8660834303bb8a43 all runs: OK # git bisect good e908bcf4f1a271e7c264dcbffc5881ced8bfacee Bisecting: 20 revisions left to test after this (roughly 4 steps) [9bff98bb35e1c9b36c7f5b77bde8a9d36e5ea708] devlink: Add Documentation/networking/devlink-params.txt testing commit 9bff98bb35e1c9b36c7f5b77bde8a9d36e5ea708 with gcc (GCC) 8.1.0 kernel signature: 14b80933548be9b362213303cccb2a2aeba6bb6d13bd8329764389231a3b72d2 all runs: OK # git bisect good 9bff98bb35e1c9b36c7f5b77bde8a9d36e5ea708 Bisecting: 9 revisions left to test after this (roughly 3 steps) [2970f2a8e941265fb3a25128a6c016b52e27cb91] Merge branch 'net-metrics-consolidate' testing commit 2970f2a8e941265fb3a25128a6c016b52e27cb91 with gcc (GCC) 8.1.0 kernel signature: 15559a96b01fd4bbae609d606d3c59082ec0fe2e5038b385a485c6bdedd58deb run #0: crashed: INFO: rcu detected stall in do_idle run #1: crashed: INFO: rcu detected stall in try_check_zero run #2: crashed: BUG: soft lockup in do_idle run #3: crashed: INFO: task hung in corrupted run #4: crashed: INFO: rcu detected stall in smp_call_function run #5: crashed: INFO: rcu detected stall in do_idle run #6: crashed: INFO: rcu detected stall in do_idle run #7: crashed: BUG: soft lockup in smp_call_function run #8: crashed: INFO: rcu detected stall in do_idle run #9: crashed: no output from test machine # git bisect bad 2970f2a8e941265fb3a25128a6c016b52e27cb91 Bisecting: 5 revisions left to test after this (roughly 3 steps) [d26d4b194e582c6f2070cc5f7f74a72124ad41ef] net: sched: remove unused helpers testing commit d26d4b194e582c6f2070cc5f7f74a72124ad41ef with gcc (GCC) 8.1.0 kernel signature: 30bdd17a2ebe399c9c27a3b09a3c3f95085ea291c59ab2f6d0cc1ba8a85e55bd run #0: crashed: BUG: soft lockup in smp_call_function run #1: crashed: INFO: rcu detected stall in wb_workfn run #2: crashed: INFO: rcu detected stall in do_idle run #3: crashed: INFO: rcu detected stall in try_check_zero run #4: crashed: BUG: soft lockup in do_idle run #5: crashed: INFO: rcu detected stall in do_idle run #6: crashed: INFO: rcu detected stall in call_usermodehelper_exec_async run #7: crashed: no output from test machine run #8: crashed: no output from test machine run #9: basic kernel testing failed: failed to copy test binary to VM: failed to run ["scp" "-P" "22" "-F" "/dev/null" "-o" "UserKnownHostsFile=/dev/null" "-o" "BatchMode=yes" "-o" "IdentitiesOnly=yes" "-o" "StrictHostKeyChecking=no" "-o" "ConnectTimeout=10" "-i" "/syzkaller/jobs/linux/workdir/image/key" "/tmp/syz-executor957243282" "root@10.128.0.168:./syz-executor957243282"]: exit status 1 ssh: connect to host 10.128.0.168 port 22: Connection timed out lost connection # git bisect bad d26d4b194e582c6f2070cc5f7f74a72124ad41ef Bisecting: 2 revisions left to test after this (roughly 1 step) [34f8c58f47797efa25ba212001514ef31e153134] Merge branch 'bnxt_en-devlink-param-updates' testing commit 34f8c58f47797efa25ba212001514ef31e153134 with gcc (GCC) 8.1.0 kernel signature: 3bb9b66f8b2a9de0c765863ca0c8ecc9e2c73553988f4613559079f6da417021 all runs: OK # git bisect good 34f8c58f47797efa25ba212001514ef31e153134 Bisecting: 0 revisions left to test after this (roughly 1 step) [a97d97bac49da1b46b7e6a13806fc542430e2a80] geneve: allow to clear ttl inherit testing commit a97d97bac49da1b46b7e6a13806fc542430e2a80 with gcc (GCC) 8.1.0 kernel signature: 3b81944939a16f977e6be253d4006eb220a38f9fa502b588b854e51c0c437c98 run #0: crashed: BUG: soft lockup in smp_call_function run #1: crashed: INFO: rcu detected stall in do_idle run #2: crashed: INFO: rcu detected stall in do_idle run #3: crashed: INFO: rcu detected stall in wb_workfn run #4: crashed: INFO: rcu detected stall in do_idle run #5: crashed: INFO: rcu detected stall in tc_modify_qdisc run #6: crashed: INFO: rcu detected stall in wb_workfn run #7: crashed: BUG: soft lockup in smp_call_function run #8: crashed: INFO: rcu detected stall in corrupted run #9: crashed: no output from test machine # git bisect bad a97d97bac49da1b46b7e6a13806fc542430e2a80 Bisecting: 0 revisions left to test after this (roughly 0 steps) [5a781ccbd19e4664babcbe4b4ead7aa2b9283d22] tc: Add support for configuring the taprio scheduler testing commit 5a781ccbd19e4664babcbe4b4ead7aa2b9283d22 with gcc (GCC) 8.1.0 kernel signature: 2edeb6652982dd7ad7bafc310c39dc8cd279074b5efa7e157c0d2aa22dc8125d run #0: crashed: INFO: rcu detected stall in do_idle run #1: crashed: INFO: rcu detected stall in do_idle run #2: crashed: INFO: rcu detected stall in do_idle run #3: crashed: INFO: rcu detected stall in tc_modify_qdisc run #4: crashed: INFO: rcu detected stall in smp_call_function run #5: crashed: INFO: rcu detected stall in do_idle run #6: crashed: BUG: soft lockup in do_idle run #7: crashed: no output from test machine run #8: crashed: INFO: rcu detected stall in do_idle run #9: crashed: INFO: rcu detected stall in smp_call_function # git bisect bad 5a781ccbd19e4664babcbe4b4ead7aa2b9283d22 5a781ccbd19e4664babcbe4b4ead7aa2b9283d22 is the first bad commit commit 5a781ccbd19e4664babcbe4b4ead7aa2b9283d22 Author: Vinicius Costa Gomes Date: Fri Sep 28 17:59:43 2018 -0700 tc: Add support for configuring the taprio scheduler This traffic scheduler allows traffic classes states (transmission allowed/not allowed, in the simplest case) to be scheduled, according to a pre-generated time sequence. This is the basis of the IEEE 802.1Qbv specification. Example configuration: tc qdisc replace dev enp3s0 parent root handle 100 taprio \ num_tc 3 \ map 2 2 1 0 2 2 2 2 2 2 2 2 2 2 2 2 \ queues 1@0 1@1 2@2 \ base-time 1528743495910289987 \ sched-entry S 01 300000 \ sched-entry S 02 300000 \ sched-entry S 04 300000 \ clockid CLOCK_TAI The configuration format is similar to mqprio. The main difference is the presence of a schedule, built by multiple "sched-entry" definitions, each entry has the following format: sched-entry The only supported is "S", which means "SetGateStates", following the IEEE 802.1Qbv-2015 definition (Table 8-6). is a bitmask where each bit is a associated with a traffic class, so bit 0 (the least significant bit) being "on" means that traffic class 0 is "active" for that schedule entry. is a time duration in nanoseconds that specifies for how long that state defined by and should be held before moving to the next entry. This schedule is circular, that is, after the last entry is executed it starts from the first one, indefinitely. The other parameters can be defined as follows: - base-time: specifies the instant when the schedule starts, if 'base-time' is a time in the past, the schedule will start at base-time + (N * cycle-time) where N is the smallest integer so the resulting time is greater than "now", and "cycle-time" is the sum of all the intervals of the entries in the schedule; - clockid: specifies the reference clock to be used; The parameters should be similar to what the IEEE 802.1Q family of specification defines. Signed-off-by: Vinicius Costa Gomes Signed-off-by: David S. Miller include/uapi/linux/pkt_sched.h | 46 ++ net/sched/Kconfig | 11 + net/sched/Makefile | 1 + net/sched/sch_taprio.c | 962 +++++++++++++++++++++++++++++++++++++++++ 4 files changed, 1020 insertions(+) create mode 100644 net/sched/sch_taprio.c culprit signature: 2edeb6652982dd7ad7bafc310c39dc8cd279074b5efa7e157c0d2aa22dc8125d parent signature: 3bb9b66f8b2a9de0c765863ca0c8ecc9e2c73553988f4613559079f6da417021 revisions tested: 28, total time: 6h20m53.792957745s (build: 2h42m6.32179915s, test: 3h35m26.99185859s) first bad commit: 5a781ccbd19e4664babcbe4b4ead7aa2b9283d22 tc: Add support for configuring the taprio scheduler cc: ["davem@davemloft.net" "jhs@mojatatu.com" "jiri@resnulli.us" "linux-kernel@vger.kernel.org" "netdev@vger.kernel.org" "vinicius.gomes@intel.com" "xiyou.wangcong@gmail.com"] crash: INFO: rcu detected stall in smp_call_function batman_adv: It is strongly recommended to keep mac addresses unique to avoid problems! IPv6: ADDRCONF(NETDEV_UP): batadv_slave_1: link is not ready batman_adv: batadv0: Interface activated: batadv_slave_1 rcu: INFO: rcu_preempt self-detected stall on CPU rcu: 1-...!: (1 GPs behind) idle=a1e/1/0x4000000000000002 softirq=10913/10946 fqs=1 rcu: (t=25775 jiffies g=4701 q=1610) rcu: rcu_preempt kthread starved for 19662 jiffies! g4701 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402 ->cpu=0 rcu: RCU grace-period kthread stack dump: rcu_preempt I29392 10 2 0x80000000 Call Trace: context_switch kernel/sched/core.c:2825 [inline] __schedule+0x80c/0x1f20 kernel/sched/core.c:3473 schedule+0x7f/0x1b0 kernel/sched/core.c:3517 schedule_timeout+0x398/0xcc0 kernel/time/timer.c:1804 rcu_gp_kthread+0xd30/0x2130 kernel/rcu/tree.c:2194 kthread+0x324/0x3e0 kernel/kthread.c:246 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:413 NMI backtrace for cpu 1 CPU: 1 PID: 5413 Comm: systemd-timesyn Not tainted 4.19.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x15a/0x20d lib/dump_stack.c:113 nmi_cpu_backtrace.cold.0+0x3c/0x78 lib/nmi_backtrace.c:101 nmi_trigger_cpumask_backtrace+0xf5/0x119 lib/nmi_backtrace.c:62 arch_trigger_cpumask_backtrace+0x14/0x20 arch/x86/kernel/apic/hw_nmi.c:38 trigger_single_cpu_backtrace include/linux/nmi.h:162 [inline] rcu_dump_cpu_stacks+0x175/0x1c2 kernel/rcu/tree.c:1340 print_cpu_stall kernel/rcu/tree.c:1478 [inline] check_cpu_stall kernel/rcu/tree.c:1550 [inline] __rcu_pending kernel/rcu/tree.c:3276 [inline] rcu_pending kernel/rcu/tree.c:3319 [inline] rcu_check_callbacks.cold.61+0x5bd/0xd3d kernel/rcu/tree.c:2665 update_process_times+0x2a/0x60 kernel/time/timer.c:1636 tick_sched_handle.isra.5+0x6b/0x130 kernel/time/tick-sched.c:164 tick_sched_timer+0x3c/0xf0 kernel/time/tick-sched.c:1274 __run_hrtimer kernel/time/hrtimer.c:1398 [inline] __hrtimer_run_queues+0x2fa/0xaa0 kernel/time/hrtimer.c:1460 hrtimer_interrupt+0x2df/0x760 kernel/time/hrtimer.c:1518 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1029 [inline] smp_apic_timer_interrupt+0x114/0x530 arch/x86/kernel/apic/apic.c:1054 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:864 RIP: 0010:__read_once_size include/linux/compiler.h:188 [inline] RIP: 0010:csd_lock_wait kernel/smp.c:108 [inline] RIP: 0010:smp_call_function_single+0x169/0x360 kernel/smp.c:302 Code: 00 45 85 ff 0f 84 85 00 00 00 44 89 e7 4c 89 f1 4c 89 ea 48 8d 74 24 40 e8 04 fb ff ff 41 89 c4 8b 44 24 58 a8 01 74 0b f3 90 <8b> 54 24 58 83 e2 01 75 f5 bf 01 00 00 00 e8 04 b6 e9 ff 65 8b 15 RSP: 0018:ffff8800985afa20 EFLAGS: 00000202 ORIG_RAX: ffffffffffffff13 RAX: 0000000000000003 RBX: 1ffff100130b5f48 RCX: ffff8800985afa60 RDX: 0000000000000001 RSI: 0000000000000008 RDI: ffff8800aea2e000 RBP: ffff8800985afae8 R08: ffffed0015d45c01 R09: ffffed0015d45c00 R10: ffffed0015d45c00 R11: ffff8800aea2e007 R12: 0000000000000000 R13: ffffffff8152ca80 R14: 0000000000000000 R15: 0000000000000001 smp_call_function_many+0x520/0x7a0 kernel/smp.c:434 smp_call_function+0x36/0x60 kernel/smp.c:492 on_each_cpu+0x2a/0x180 kernel/smp.c:604 clock_was_set+0x17/0x20 kernel/time/hrtimer.c:861 timekeeping_inject_offset+0x269/0x3e0 kernel/time/timekeeping.c:1315 do_adjtimex+0x1b2/0x550 kernel/time/timekeeping.c:2357 posix_clock_realtime_adj+0xc/0x10 kernel/time/posix-timers.c:205 __do_sys_clock_adjtime kernel/time/posix-timers.c:1089 [inline] __se_sys_clock_adjtime+0xf1/0x190 kernel/time/posix-timers.c:1074 __x64_sys_clock_adjtime+0x4f/0x70 kernel/time/posix-timers.c:1074 do_syscall_64+0xd0/0x4d0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f0c4d4d31b7 Code: 73 01 c3 48 8b 0d e1 fc 2a 00 f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 31 01 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d b1 fc 2a 00 f7 d8 64 89 01 48 RSP: 002b:00007ffc47824e68 EFLAGS: 00000246 ORIG_RAX: 0000000000000131 RAX: ffffffffffffffda RBX: 000055d46a9da630 RCX: 00007f0c4d4d31b7 RDX: fffffffffffffff1 RSI: 00007ffc47824f30 RDI: 0000000000000000 RBP: 00007ffc47824f30 R08: 0000000000000020 R09: 000000000000000d R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 00007ffc47825020 R14: 0000000000000002 R15: 0000000000000001